Function at 0x42f887
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d139e
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x512f18]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x24], 1
call fcn.00423a00
mov esi, dword [ebp + 8]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x1c], ebx
push 0x3b
push ecx
lea eax, [esi + 0xe0]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
lea edi, [esp + 0x28]
call fcn.004235f2
lea eax, [esp + 0x1c]
push eax
call fcn.004685a0
add esp, 0xc
mov byte [esp + 0xa8], 1
cmp dword [esp + 0x1c], 0xffffffff
je 0x42f960
lea eax, [esp + 0x14]
call fcn.0042374d
push eax
lea ecx, [esp + 0x18]
call fcn.00423d5a
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x42f942
mov byte [esp + 0xa8], bl
lea ecx, [eax - 0x10]
call fcn.0042101a
jmp 0x42f8e0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x70]
call fcn.004239a1
mov byte [esp + 0xa8], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
jmp 0x42f93b
mov byte [esp + 0xa8], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
lea eax, [esp + 0x84]
push eax
call fcn.00423a00
mov byte [esp + 0xa8], 2
mov dword [esp + 0x1c], ebx
push 0x3b
push ecx
lea eax, [esi + 0xe4]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
lea edi, [esp + 0x28]
call fcn.004235f2
lea eax, [esp + 0x1c]
push eax
call fcn.004685a0
add esp, 0xc
mov byte [esp + 0xa8], 3
cmp dword [esp + 0x1c], 0xffffffff
je 0x42fa11
lea eax, [esp + 0x14]
call fcn.0042374d
push eax
lea ecx, [esp + 0x18]
call fcn.00423d5a
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x42f9ef
mov byte [esp + 0xa8], 2
lea ecx, [eax - 0x10]
call fcn.0042101a
jmp 0x42f98c
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x88]
call fcn.004239a1
mov byte [esp + 0xa8], 2
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
jmp 0x42f9e8
mov byte [esp + 0xa8], 2
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
lea eax, [esp + 0x54]
push eax
call fcn.00423a00
mov byte [esp + 0xa8], 4
cmp dword [esi + 0xec], 1
jne 0x42fade
mov dword [esp + 0x1c], ebx
push 0x3b
push ecx
lea eax, [esi + 0xf0]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
lea edi, [esp + 0x28]
call fcn.004235f2
lea eax, [esp + 0x1c]
push eax
call fcn.004685a0
add esp, 0xc
mov byte [esp + 0xa8], 5
cmp dword [esp + 0x1c], 0xffffffff
je 0x42faca
lea eax, [esp + 0x14]
call fcn.0042374d
push eax
lea ecx, [esp + 0x18]
call fcn.00423d5a
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x42faab
mov byte [esp + 0xa8], 4
lea ecx, [eax - 0x10]
call fcn.0042101a
jmp 0x42fa48
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
call fcn.004239a1
mov byte [esp + 0xa8], 4
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
jmp 0x42faa4
mov byte [esp + 0xa8], 4
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
mov edx, dword [esp + 0x7c]
sub edx, dword [esp + 0x78]
sar ecx, 2
push ecx
mov edi, esp
mov dword [esp + 0x1c], esp
push dword [esi + 0xec]
sar eax, 2
push eax
push ecx
sar edx, 2
push edx
push str.DoAuthenticate:__d_allowed_groups___d_denied_groups___d_allowed_domains_mode_d_
push edi
call fcn.00464a80
add esp, 0x18
call fcn.0042ef08
pop ecx
lea eax, [esp + 0x34]
push 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
call fcn.0049e7e2
pop ecx
cmp eax, ebx
je 0x42fb4d
lea ecx, [esp + 0x34]
mov dword [eax], ecx
jmp 0x42fb4f
xor eax, eax
mov dword [esp + 0x34], eax
mov byte [esp + 0xa8], 6
call fcn.0042a734
mov dword [esp + 0x4c], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x4c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [eax], eax
mov eax, dword [esp + 0x4c]
mov dword [eax + 8], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0xa8], 7
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
sar eax, 2
test eax, eax
jbe 0x42fcac
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x30], esp
lea ecx, [esp + 0x6c]
push ecx
push eax
mov dword [esp + 0x40], ebx
call fcn.0042a897
lea eax, [esp + 0x38]
push eax
call fcn.0042b91f
push ecx
mov edi, eax
and edi, 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
cmp dword [esp + 0x28], ebx
je 0x42fc02
push str.DoAuthenticate_AllowedDomains_:_connected_to_a_white_listed_domain._Allowing._bOk_d
push ecx
call fcn.00464a80
add esp, 0xc
call fcn.0042ef08
mov esi, dword [ebp + 0xc]
pop ecx
mov dword [esi], 1
jmp 0x42fcb3
push str._DoAuthenticate_AllowedDomain_:_denied__domain_not_in_AllowedDomains___bOk_d
push ecx
call fcn.00464a80
add esp, 0xc
call fcn.0042ef08
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov byte [esp + 0xac], 4
pop ecx
cmp dword [esp + 0x24], ebx
je 0x42fc4f
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], ebx
je 0x42fc3f
push dword [esp + 0x2c]
call fcn.004add25
pop ecx
cmp dword [esp + 0x30], ebx
je 0x42fc4f
push dword [esp + 0x30]
call fcn.004add25
pop ecx
lea eax, [esp + 0x34]
push eax
call fcn.0042c719
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xac], 2
call fcn.00423975
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0xac], bl
call fcn.00423975
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x6c]
push eax
call fcn.00423975
xor eax, eax
inc eax
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x90]
sar eax, 2
test eax, eax
jbe 0x42fd59
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x30], esp
lea ecx, [esp + 0x9c]
push ecx
push eax
call fcn.0042a897
xor eax, eax
cmp dword [0x518fe8], 1
lea edx, [esp + 0x2c]
sete al
lea ecx, [esp + 0x34]
lea ebx, [esp + 0x3c]
push eax
call fcn.0042bc04
xor ebx, ebx
and edi, eax
push ecx
mov dword [esp + 0x1c], esp
cmp dword [esp + 0x18], ebx
jne 0x42fd2b
mov eax, esp
push str._DoAuthenticate_DeniedGroups_:_not_connected_to_domain._Authentication_failed.
push eax
call fcn.00464a80
pop ecx
pop ecx
call fcn.0042ef08
mov dword [esi], ebx
jmp 0x42fc1a
cmp dword [esp + 0x20], ebx
je 0x42fd3a
mov eax, esp
push str._DoAuthenticate_DeniedGroups_:_denied__user_in_DeniedGroups_
jmp 0x42fd17
mov ecx, esp
push eax
push str.DoAuthenticate_DeniedGroups_:_not_black_listed_group._Allowing__but_proceeding_with_more_checks_._bOk_d
push ecx
call fcn.00464a80
add esp, 0xc
call fcn.0042ef08
pop ecx
mov dword [esi], 1
xor ebx, ebx
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x78]
sar eax, 2
test eax, eax
jbe 0x42fe8e
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x30], esp
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.0042a897
xor eax, eax
cmp dword [0x518fe8], 1
lea edx, [esp + 0x2c]
sete al
lea ecx, [esp + 0x34]
lea ebx, [esp + 0x3c]
push eax
call fcn.0042bc04
xor ebx, ebx
and edi, eax
push ecx
mov dword [esp + 0x1c], esp
cmp dword [esp + 0x18], ebx
jne 0x42fdbc
mov eax, esp
push str._DoAuthenticate_AllowedGroups_:_not_connected_to_domain._Authentication_failed.
jmp 0x42fd17
cmp dword [esp + 0x20], ebx
jne 0x42fdce
mov eax, esp
push str._DoAuthenticate_AllowedGroups_:_denied__user_not_in_AllowedGroups_
jmp 0x42fd17
cmp eax, ebx
jne 0x42fe6f
mov eax, esp
push str._DoAuthenticate_AllowedGroups_:_failed__general_error_in_AllowedGroups_check_._Denying_by_safety.
push eax
call fcn.00464a80
pop ecx
pop ecx
call fcn.0042ef08
mov byte [esp + 0xac], 4
pop ecx
mov dword [esi], ebx
cmp dword [esp + 0x24], ebx
je 0x42fe21
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], ebx
je 0x42fe11
push dword [esp + 0x2c]
call fcn.004add25
pop ecx
cmp dword [esp + 0x30], ebx
je 0x42fe21
push dword [esp + 0x30]
call fcn.004add25
pop ecx
xor edi, edi
inc edi
xor ebx, ebx
lea eax, [esp + 0x34]
push eax
call fcn.0042c719
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xac], 2
call fcn.00423975
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0xac], bl
call fcn.00423975
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x6c]
push eax
call fcn.00423975
mov eax, edi
jmp 0x42fc94
mov ecx, esp
push eax
push str.DoAuthenticate_AllowedGroups_:_white_listed_group._Allowing__but_proceeding_with_more_checks_._bOk_d
push ecx
call fcn.00464a80
add esp, 0xc
call fcn.0042ef08
pop ecx
mov dword [esi], 1
xor ebx, ebx
mov byte [esp + 0xa8], 4
cmp dword [esp + 0x24], ebx
je 0x42fe26
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], ebx
je 0x42feb2
push dword [esp + 0x2c]
call fcn.004add25
pop ecx
cmp dword [esp + 0x30], ebx
je 0x42fe26
push dword [esp + 0x30]
call fcn.004add25
pop ecx
jmp 0x42fe26