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

Disassembly:
sub esp, 0x90
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
xor edi, edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xb4]
mov ecx, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100588ef
sub ecx, esi
je 0x10058c33
cmp byte [edx], 0x3d
je 0x10058c33
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push edx
call fcn.10043056
add esp, 0xc
test eax, eax
jne 0x10058c43
cmp dword [esp + 0x10], edi
je 0x10058c33
lea eax, [esp + 0x68]
push eax
mov eax, dword [0x1009a3b4]
push edi
push dword [ebx + 4]
call dword [eax + 0x2c]
test eax, eax
je 0x10058948
push 0x1b
jmp 0x100589d8
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x1009a3b4]
xor esi, esi
inc esi
push esi
push dword [ebx]
call dword [eax + 8]
test eax, eax
je 0x10058963
push 0x38
jmp 0x100589d8
push dword [esp + 0x20]
lea eax, [esp + 0x3c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 2
mov dword [esp + 0x40], 0xa
mov dword [esp + 0x44], eax
call fcn.1003de2b
pop ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
push edi
lea eax, [esp + 0x58]
push eax
push dword [ebx + 4]
mov eax, dword [0x1009a3b4]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], edi
call dword [eax + 0x68]
test eax, eax
je 0x100589c2
push str.GSSAPI_handshake_failure__empty_security_message__n
jmp 0x100589ce
cmp dword [esp + 0x44], 4
je 0x100589eb
push str.GSSAPI_handshake_failure__invalid_security_data__n
push ebp
call fcn.100346c5
pop ecx
pop ecx
push 0x3d
pop esi
push dword [esp + 0x10]
call dword [0x10098344]
pop ecx
mov eax, esi
jmp 0x10058c43
mov eax, dword [esp + 0x4c]
push eax
mov ebx, dword [eax]
mov eax, dword [0x1009a3b4]
call dword [eax + 0x40]
push dword [esp + 0x10]
call dword [0x10098344]
movzx eax, bl
pop ecx
mov dword [esp + 0x1c], eax
test eax, reloc.WS2_32.dll_accept
jne 0x10058a1d
push str.GSSAPI_handshake_failure__invalid_security_layer__n
jmp 0x10058c38
and ebx, 0xffffff00
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x74]
xor ecx, ecx
test eax, eax
cmovne eax, ecx
mov dword [esp + 0x18], eax
call dword [0x10098340]
mov edi, eax
pop ecx
test edi, edi
jne 0x10058a4d
push 0x1b
jmp 0x10058c42
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x10058a5f
push edi
call dword [0x10098344]
pop ecx
jmp 0x10058a46
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058a64
sub ecx, edx
lea eax, [ecx + 5]
push eax
mov dword [esp + 0x28], eax
call dword [0x10098340]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10058a55
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_htonl]
or eax, dword [esp + 0x1c]
lea ecx, [ebx + 4]
mov dword [ebx], eax
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x10058a97
push dword [esp + 0x70]
call dword [0x10098340]
mov esi, eax
pop ecx
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x10058ac7
push ebx
call dword [0x10098344]
push edi
call dword [0x10098344]
pop ecx
jmp 0x10058a5c
push dword [esp + 0x24]
and dword [esp + 0x60], 0
lea eax, [esp + 0x7c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x64], 3
mov dword [esp + 0x80], 2
mov dword [esp + 0x84], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], 1
mov dword [esp + 0x90], ebx
call fcn.1003de2b
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x74]
pop ecx
mov dword [esp + 0x90], eax
push 0
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x20]
push reloc.WS2_32.dll_accept
push dword [eax + 4]
mov eax, dword [0x1009a3b4]
mov dword [esp + 0xa4], 9
mov dword [esp + 0xa8], esi
call dword [eax + 0x64]
test eax, eax
je 0x10058b72
push esi
call dword [0x10098344]
push ebx
call dword [0x10098344]
push edi
call dword [0x10098344]
add esp, 0xc
jmp 0x10058a46
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0x84]
add eax, dword [esp + 0x78]
push eax
mov dword [esp + 0x1c], eax
call dword [0x10098340]
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10058b9d
push 0x1b
pop ebp
jmp 0x10058c17
push dword [esp + 0x78]
push dword [esp + 0x84]
push eax
call fcn.1005e620
push dword [esp + 0x90]
mov esi, dword [esp + 0x88]
push dword [esp + 0x9c]
mov eax, dword [esp + 0x28]
add eax, esi
push eax
call fcn.1005e620
push dword [esp + 0xa8]
mov eax, dword [esp + 0xa0]
add eax, dword [esp + 0x30]
push dword [esp + 0xb4]
add eax, esi
push eax
call fcn.1005e620
push dword [esp + 0x4c]
mov esi, dword [esp + 0x3c]
push dword [esp + 0x58]
push dword [esp + 0x44]
push esi
push ebp
call fcn.1004312d
push esi
mov ebp, eax
call dword [0x10098344]
mov esi, dword [esp + 0x58]
add esp, 0x3c
push esi
call dword [0x10098344]
push ebx
call dword [0x10098344]
push edi
call dword [0x10098344]
add esp, 0xc
mov eax, ebp
jmp 0x10058c43
push str.GSSAPI_handshake_failure__empty_security_message__n
push ebp
call fcn.100346c5
pop ecx
pop ecx
push 0x3d
pop eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x90
ret