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

Disassembly:
sub esp, 0x7c
mov edx, dword [esp + 0x84]
mov ecx, edx
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a11d8
sub ecx, esi
je 0x4a160c
cmp byte [edx], 0x3d
je 0x4a160c
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
push edx
call fcn.0048b5d0
add esp, 0xc
test eax, eax
jne 0x4a143c
cmp dword [esp + 4], eax
je 0x4a160c
push ebx
mov ebx, dword [esp + 0x90]
lea eax, [esp + 0x38]
push ebp
push eax
mov eax, dword [0x5a17a0]
push 0
push dword [ebx + 4]
mov eax, dword [eax + 0x2c]
call eax
mov esi, eax
test esi, esi
jne 0x4a1251
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x5a17a0]
push 1
push dword [ebx]
mov eax, dword [eax + 8]
call eax
mov esi, eax
test esi, esi
je 0x4a1276
push dword [esp + 0xc]
call dword [0x59c9a8]
add esp, 4
cmp esi, 0x80090300
je 0x4a1600
pop ebp
pop ebx
mov eax, 0x5e
pop esi
add esp, 0x7c
ret
push dword [esp + 0x14]
lea eax, [esp + 0x50]
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], 2
mov dword [esp + 0x54], 0xa
mov dword [esp + 0x58], eax
call fcn.00479470
add esp, 4
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
push eax
push 0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x5a17a0]
push dword [ebx + 4]
mov eax, dword [eax + 0x68]
call eax
test eax, eax
je 0x4a130d
push str.GSSAPI_handshake_failure__empty_security_message__n
push dword [esp + 0x90]
call fcn.00477080
push dword [esp + 0x14]
call dword [0x59c9a8]
add esp, 0xc
mov eax, 0x3d
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret
cmp dword [esp + 0x58], 4
je 0x4a133e
push str.GSSAPI_handshake_failure__invalid_security_data__n
push dword [esp + 0x90]
call fcn.00477080
push dword [esp + 0x14]
call dword [0x59c9a8]
add esp, 0xc
mov eax, 0x3d
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret
mov eax, dword [esp + 0x60]
push eax
mov ebx, dword [eax]
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x40]
call eax
push dword [esp + 0xc]
call dword [0x59c9a8]
movzx eax, bl
add esp, 4
mov dword [esp + 0x10], eax
test eax, reloc.WS2_32.dll_accept
jne 0x4a138a
push str.GSSAPI_handshake_failure__invalid_security_layer__n
push dword [esp + 0x90]
call fcn.00477080
add esp, 8
mov eax, 0x3d
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret
and ebx, 0xffffff00
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x48]
xor ecx, ecx
cmp ecx, eax
sbb ebp, ebp
not ebp
and ebp, eax
call dword [0x59c9a4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a1600
mov esi, dword [esp + 0x1c]
push edi
test esi, esi
je 0x4a15e9
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a13d0
sub ecx, edx
lea eax, [ecx + 5]
push eax
mov dword [esp + 0x28], eax
call dword [0x59c9a4]
mov edi, eax
add esp, 4
test edi, edi
je 0x4a15e9
push ebp
call dword [sym.imp.WS2_32.dll_htonl]
or eax, dword [esp + 0x14]
mov ecx, edi
mov dword [edi], eax
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi + 3], al
test al, al
jne 0x4a1405
push dword [esp + 0x48]
call dword [0x59c9a4]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4a1441
push edi
call dword [0x59c9a8]
push ebx
call dword [0x59c9a8]
add esp, 8
lea eax, [ebp + 0x1b]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret
push dword [esp + 0x24]
lea eax, [esp + 0x6c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], 3
mov dword [esp + 0x70], 2
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], edi
call fcn.00479470
add esp, 4
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x84], 9
push 0
push eax
mov eax, dword [esp + 0xa0]
push reloc.WS2_32.dll_accept
mov dword [esp + 0x94], ebp
push dword [eax + 4]
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x64]
call eax
mov esi, eax
test esi, esi
je 0x4a14ff
push ebp
call dword [0x59c9a8]
push edi
call dword [0x59c9a8]
push ebx
call dword [0x59c9a8]
add esp, 0xc
sub esi, 0x80090300
neg esi
sbb esi, esi
pop edi
and esi, 0x43
pop ebp
pop ebx
lea eax, [esi + 0x1b]
pop esi
add esp, 0x7c
ret
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x74]
add eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x28], eax
call dword [0x59c9a4]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4a1549
push ebp
call dword [0x59c9a8]
push edi
call dword [0x59c9a8]
push ebx
call dword [0x59c9a8]
add esp, 0xc
mov eax, 0x1b
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret
push dword [esp + 0x68]
push dword [esp + 0x74]
push eax
call fcn.00439170
push dword [esp + 0x80]
mov esi, dword [esp + 0x78]
push dword [esp + 0x8c]
mov eax, dword [esp + 0x28]
add eax, esi
push eax
call fcn.00439170
push dword [esp + 0x98]
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0x30]
push dword [esp + 0xa4]
add eax, esi
push eax
call fcn.00439170
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push dword [esp + 0x50]
push dword [esp + 0x44]
push dword [esp + 0xc4]
call fcn.0048b7a0
push dword [esp + 0x4c]
mov esi, eax
call dword [0x59c9a8]
push ebp
call dword [0x59c9a8]
add esp, 0x40
push edi
call dword [0x59c9a8]
push ebx
call dword [0x59c9a8]
add esp, 8
mov eax, esi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret
push ebx
call dword [0x59c9a8]
add esp, 4
mov eax, 0x1b
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret
pop ebp
pop ebx
mov eax, 0x1b
pop esi
add esp, 0x7c
ret
push str.GSSAPI_handshake_failure__empty_security_message__n
push dword [esp + 0x88]
call fcn.00477080
add esp, 8
mov eax, 0x3d
pop esi
add esp, 0x7c
ret