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

Disassembly:
sub esp, 0x7c
mov edx, dword [esp + 0x84]
push ebx
push ebp
xor ebp, ebp
push esi
mov ecx, edx
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005629f
sub ecx, esi
je 0x100565da
cmp byte [edx], 0x3d
je 0x100565da
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push edx
call fcn.1004d49d
add esp, 0xc
test eax, eax
jne 0x100565f0
cmp dword [esp + 0x10], ebp
je 0x100565da
mov ebx, dword [esp + 0x98]
lea eax, [esp + 0x40]
push eax
mov eax, dword [0x1009ad70]
push ebp
push dword [ebx + 4]
call dword [eax + 0x2c]
test eax, eax
je 0x100562ff
push 0x1b
jmp 0x10056395
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x1009ad70]
xor esi, esi
inc esi
push esi
push dword [ebx]
call dword [eax + 8]
test eax, eax
je 0x1005631a
push 0x38
jmp 0x10056395
push dword [esp + 0x14]
lea eax, [esp + 0x54]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 2
mov dword [esp + 0x58], 0xa
mov dword [esp + 0x5c], eax
call fcn.1000cad8
pop ecx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x18]
push eax
push ebp
lea eax, [esp + 0x30]
push eax
push dword [ebx + 4]
mov eax, dword [0x1009ad70]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x6c], ebp
call dword [eax + 0x68]
test eax, eax
je 0x10056379
push str.GSSAPI_handshake_failure__empty_security_message__n
jmp 0x10056385
cmp dword [esp + 0x5c], 4
je 0x100563a8
push str.GSSAPI_handshake_failure__invalid_security_data__n
push dword [esp + 0x94]
call fcn.10029490
pop ecx
pop ecx
push 0x3d
pop esi
push dword [esp + 0x10]
call dword [0x1008d09c]
pop ecx
mov eax, esi
jmp 0x100565f0
mov eax, dword [esp + 0x64]
push eax
mov ebx, dword [eax]
mov eax, dword [0x1009ad70]
call dword [eax + 0x40]
push dword [esp + 0x10]
call dword [0x1008d09c]
movzx eax, bl
pop ecx
mov dword [esp + 0x20], eax
test eax, reloc.WS2_32.dll_accept
jne 0x100563da
push str.GSSAPI_handshake_failure__invalid_security_layer__n
jmp 0x100565df
and ebx, 0xffffff00
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x4c]
mov ebp, eax
xor eax, eax
test ebp, ebp
cmovne ebp, eax
call dword [0x1008d098]
mov edi, eax
pop ecx
test edi, edi
jne 0x10056408
push 0x1b
jmp 0x100565ef
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x1005641a
push edi
call dword [0x1008d09c]
pop ecx
jmp 0x10056401
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005641f
sub ecx, edx
lea eax, [ecx + 5]
push eax
mov dword [esp + 0x28], eax
call dword [0x1008d098]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10056410
push ebp
call dword [sym.imp.WS2_32.dll_htonl]
or eax, dword [esp + 0x20]
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 0x1005644f
push dword [esp + 0x48]
call dword [0x1008d098]
mov ebp, eax
pop ecx
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x1005647f
push ebx
call dword [0x1008d09c]
push edi
call dword [0x1008d09c]
pop ecx
jmp 0x10056417
push dword [esp + 0x24]
and dword [esp + 0x38], 0
lea eax, [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], 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.1000cad8
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
pop ecx
mov dword [esp + 0x80], eax
push 0
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0xa0]
push reloc.WS2_32.dll_accept
push dword [eax + 4]
mov eax, dword [0x1009ad70]
mov dword [esp + 0x94], 9
mov dword [esp + 0x98], ebp
call dword [eax + 0x64]
test eax, eax
je 0x10056521
push ebp
call dword [0x1008d09c]
push ebx
call dword [0x1008d09c]
push edi
call dword [0x1008d09c]
add esp, 0xc
jmp 0x10056401
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x74]
add eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x28], eax
call dword [0x1008d098]
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x10056547
push 0x1b
pop esi
jmp 0x100565ba
push dword [esp + 0x68]
push dword [esp + 0x74]
push ebp
call fcn.1005b1c0
push dword [esp + 0x80]
mov esi, dword [esp + 0x78]
push dword [esp + 0x8c]
lea eax, [esi + ebp]
push eax
call fcn.1005b1c0
push dword [esp + 0x98]
mov eax, dword [esp + 0x90]
push dword [esp + 0xa4]
add eax, ebp
add eax, esi
push eax
call fcn.1005b1c0
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push dword [esp + 0x50]
push ebp
push dword [esp + 0xc4]
call fcn.1004d574
push ebp
mov esi, eax
call dword [0x1008d09c]
add esp, 0x3c
push dword [esp + 0x20]
call dword [0x1008d09c]
push ebx
call dword [0x1008d09c]
push edi
call dword [0x1008d09c]
add esp, 0xc
jmp 0x100563a1
push 0x10098db0
push dword [esp + 0x94]
call fcn.10029490
pop ecx
pop ecx
push 0x3d
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret