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

Disassembly:
sub esp, 0x4c
push ebx
push esi
mov esi, dword [esp + 0x74]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x78], edi
cmp dword [esi + 8], edi
jne 0x4a1665
push edi
push dword [esp + 0x70]
push dword [esp + 0x70]
call fcn.004a09b0
add esp, 0xc
mov dword [esi + 8], eax
test eax, eax
je 0x4a1884
cmp dword [esi + 0x30], edi
jne 0x4a16ba
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x5a17a0]
push str.Kerberos
mov eax, dword [eax + 0x44]
call eax
test eax, eax
je 0x4a168e
pop edi
pop esi
mov eax, 4
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [ecx + 8]
mov dword [esi + 0x2c], eax
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x40]
call eax
push dword [esi + 0x2c]
call dword [0x59c9a4]
add esp, 4
mov dword [esi + 0x30], eax
test eax, eax
je 0x4a1884
cmp dword [esi], edi
jne 0x4a1753
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4a16ed
cmp byte [eax], 0
je 0x4a16ed
lea ebx, [esi + 0xc]
push ebx
push dword [esp + 0x68]
push eax
call fcn.00497210
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4a16ef
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
xor ebx, ebx
push 8
push 1
mov dword [esi + 0x28], ebx
call dword [0x59c9b4]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4a1884
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [0x5a17a0]
push 0
push 0
push dword [esi + 0x28]
mov eax, dword [eax + 0xc]
push 0
push 2
push str.Kerberos
push 0
call eax
test eax, eax
je 0x4a173b
pop edi
pop esi
mov eax, 0x43
pop ebx
add esp, 0x4c
ret
push 8
push 1
call dword [0x59c9b4]
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x4a1884
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4a17e3
mov cl, byte [eax]
test cl, cl
je 0x4a17e3
cmp cl, 0x3d
je 0x4a1787
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x7c]
push ecx
push eax
call fcn.0048b5d0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4a192f
cmp dword [esp + 0x78], 0
jne 0x4a17ab
push str.GSSAPI_handshake_failure__empty_challenge_message__n
push dword [esp + 0x60]
call fcn.00477080
add esp, 8
mov eax, 0x3d
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
push dword [esp + 0xc]
lea eax, [esp + 0x38]
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x54], 1
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], eax
call fcn.00479470
add esp, 4
mov dword [esp + 0x34], eax
push dword [esi + 0x2c]
lea eax, [esp + 0x2c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x48], 1
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], eax
call fcn.00479470
mov dword [esp + 0x2c], eax
add esp, 4
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4a1826
mov ecx, dword [esi + 4]
jmp 0x4a1828
xor ecx, ecx
lea edx, [esp + 0x20]
neg eax
push edx
lea edx, [esp + 0x18]
sbb eax, eax
push edx
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x24]
push edx
push 0
lea edx, [esp + 0x60]
and eax, edx
push eax
movzx eax, byte [esp + 0x88]
neg eax
push 0x10
sbb eax, eax
push 0
and eax, 2
push eax
push dword [esi + 8]
mov eax, dword [0x5a17a0]
push ecx
push dword [esi]
mov eax, dword [eax + 0x18]
call eax
push dword [esp + 0x78]
mov ebx, eax
call dword [0x59c9a8]
add esp, 4
cmp ebx, 0x80090300
jne 0x4a1890
pop edi
pop esi
mov eax, 0x1b
pop ebx
add esp, 0x4c
ret
test ebx, ebx
je 0x4a18a8
cmp ebx, 0x90312
je 0x4a18a8
pop edi
pop esi
mov eax, 0x5e
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4a18bd
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
je 0x4a18d8
mov eax, dword [0x5a17a0]
push ecx
mov eax, dword [eax + 0x24]
call eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a1908
push dword [esp + 0x80]
push dword [esp + 0x80]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x6c]
call fcn.0048b7a0
add esp, 0x14
mov edi, eax
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
cmp byte [esp + 0x70], 0
je 0x4a192f
push 0x4e16c0
call dword [0x59c9b0]
mov ecx, dword [esp + 0x80]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x4a192f
mov edi, 0x1b
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x4c
ret