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

Disassembly:
sub esp, 0x80
mov eax, dword [0x1008602c]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
mov esi, dword [esp + 0x90]
push edi
mov edi, dword [esp + 0x98]
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0
call fcn.100507a0
add esp, 4
test eax, eax
je 0x1005183b
lea eax, [esp + 0x58]
push eax
mov eax, dword [0x10086c9c]
push 0
push dword [ebx + 4]
mov eax, dword [eax + 0x2c]
call eax
cmp eax, 0x80090300
je 0x10051620
test eax, eax
jne 0x1005176b
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x10086c9c]
push 1
push dword [ebx]
mov eax, dword [eax + 8]
call eax
cmp eax, 0x80090300
je 0x10051620
test eax, eax
jne 0x1005176b
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push edi
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], 0xa
call fcn.1000da90
push edi
mov dword [esp + 0x38], eax
call fcn.100507a0
push eax
call fcn.1001a440
add esp, 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0
push eax
push 0
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x10086c9c]
push dword [ebx + 4]
mov eax, dword [eax + 0x68]
call eax
test eax, eax
jne 0x1005183b
cmp dword [esp + 0x34], 4
je 0x100515b2
push str.GSSAPI_handshake_failure__invalid_security_data__n
jmp 0x10051840
mov eax, dword [esp + 0x3c]
push eax
mov ebx, dword [eax]
mov eax, dword [0x10086c9c]
mov eax, dword [eax + 0x40]
call eax
movzx eax, bl
mov dword [esp + 0x10], eax
test eax, reloc.WS2_32.dll_accept
jne 0x100515db
push str.GSSAPI_handshake_failure__invalid_security_layer__n
jmp 0x10051840
and ebx, 0xffffff00
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x64]
mov ebp, eax
xor eax, eax
test ebp, ebp
cmovne ebp, eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x10051620
push dword [esp + 0x1c]
call fcn.10062892
mov esi, eax
add esp, 4
test esi, esi
jne 0x1005162a
push edi
call dword [0x10086004]
add esp, 4
mov eax, 0x1b
jmp 0x1005184e
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051630
sub ecx, edx
lea eax, [ecx + 5]
push eax
mov dword [esp + 0x24], eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10051665
push edi
call dword [0x10086004]
push esi
call fcn.100577ad
lea eax, [ebx + 0x1b]
jmp 0x1005184b
push ebp
call dword [sym.imp.WS2_32.dll_htonl]
or eax, dword [esp + 0x10]
mov edx, ebx
mov dword [ebx], eax
mov ecx, esi
sub edx, esi
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 3], al
test al, al
jne 0x10051680
push esi
call fcn.100577ad
push dword [esp + 0x64]
call dword [section..data]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x100516bc
push ebx
call dword [0x10086004]
push edi
call dword [0x10086004]
lea eax, [ebp + 0x1b]
jmp 0x1005184b
push dword [esp + 0x20]
lea eax, [esp + 0x6c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x54], 3
mov dword [esp + 0x70], 2
mov dword [esp + 0x74], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], ebx
call fcn.1001a440
add esp, 4
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x84], 9
push 0
push eax
mov eax, dword [esp + 0x1c]
push reloc.WS2_32.dll_accept
mov dword [esp + 0x94], ebp
push dword [eax + 4]
mov eax, dword [0x10086c9c]
mov eax, dword [eax + 0x64]
call eax
mov esi, eax
test esi, esi
je 0x10051775
push ebp
call dword [0x10086004]
push ebx
call dword [0x10086004]
push edi
call dword [0x10086004]
add esp, 0xc
cmp esi, 0x80090300
je 0x10051620
mov eax, 0x5e
jmp 0x1005184e
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x74]
add eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x18], eax
call dword [section..data]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100517bc
push ebp
call dword [0x10086004]
push ebx
call dword [0x10086004]
push edi
call dword [0x10086004]
add esp, 0xc
mov eax, 0x1b
jmp 0x1005184e
push dword [esp + 0x68]
push dword [esp + 0x74]
push eax
call fcn.10053f90
push dword [esp + 0x80]
mov esi, dword [esp + 0x78]
push dword [esp + 0x8c]
mov eax, dword [esp + 0x24]
add eax, esi
push eax
call fcn.10053f90
push dword [esp + 0x98]
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0x2c]
push dword [esp + 0xa4]
add eax, esi
push eax
call fcn.10053f90
push ebp
call dword [0x10086004]
push ebx
call dword [0x10086004]
push edi
call dword [0x10086004]
push fcn.1000acf0
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x60]
call fcn.10050820
add esp, 0x40
xor eax, eax
jmp 0x1005184e
push str.GSSAPI_handshake_failure__empty_security_message__n
push esi
call fcn.10017c70
mov eax, 0x3d
add esp, 8
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10052640
add esp, 0x80
ret