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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x90]
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0x9c]
xor ebx, ebx
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
call fcn.10050900
add esp, 4
test eax, eax
jne 0x1005ba4e
push str.GSSAPI_handshake_failure__empty_security_message_
mov edx, dword [esp + 0x14]
push edx
call fcn.1001ccc0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x3d
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1005cc54
add esp, 0x7c
ret
mov ecx, dword [edi + 4]
mov edx, dword [0x100c0b08]
lea eax, [esp + 0x54]
push eax
mov eax, dword [edx + 0x2c]
push ebx
push ecx
call eax
cmp eax, 0x80090300
je 0x1005bbbd
cmp eax, ebx
je 0x1005ba8a
pop edi
pop esi
pop ebp
mov eax, 0x5e
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1005cc54
add esp, 0x7c
ret
lea ecx, [esp + 0x24]
push esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], ecx
mov dword [esp + 0x2c], 0xa
call fcn.100508f0
push esi
mov dword [esp + 0x34], eax
call fcn.10050900
push eax
call fcn.1001c090
mov ecx, dword [edi + 4]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov edx, dword [0x100c0b08]
mov dword [esp + 0x28], eax
push ebx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [edx + 0x68]
push ecx
call eax
test eax, eax
je 0x1005bb1b
mov ecx, dword [esp + 0x10]
push str.GSSAPI_handshake_failure__empty_security_message_
push ecx
call fcn.1001ccc0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x3d
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1005cc54
add esp, 0x7c
ret
mov edi, 4
cmp dword [esp + 0x30], edi
je 0x1005bb30
push str.GSSAPI_handshake_failure__invalid_security_data_
jmp 0x1005ba29
mov eax, dword [esp + 0x38]
movzx ebx, byte [eax + 1]
movzx ecx, byte [eax + 2]
movzx edx, byte [eax + 3]
movzx esi, byte [eax]
shl ebx, 8
or ebx, ecx
push eax
mov eax, dword [0x100c0b08]
mov ecx, dword [eax + 0x40]
shl ebx, 8
or ebx, edx
call ecx
and esi, reloc.WS2_32.dll_accept
mov dword [esp + 0x1c], esi
jne 0x1005bb6e
push str.GSSAPI_handshake_failure__invalid_security_layer_
jmp 0x1005ba29
test ebx, ebx
je 0x1005bb74
xor ebx, ebx
mov eax, dword [esp + 0x60]
push eax
call dword [section..data]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x1005bbbd
test ebp, ebp
je 0x1005bb9f
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bb93
sub eax, edx
lea edi, [eax + 4]
push edi
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1005bbd5
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x100a3004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1005cc54
add esp, 0x7c
ret
mov dl, byte [esp + 0x1c]
mov eax, ebx
mov ecx, ebx
shr eax, 0x10
shr ecx, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov byte [esi + 2], cl
mov byte [esi + 3], bl
test ebp, ebp
je 0x1005bc09
cmp byte [ebp], 0
je 0x1005bc09
lea edx, [edi - 4]
push edx
lea eax, [esi + 4]
push ebp
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x5c]
push ecx
call dword [section..data]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1005bc48
push esi
call dword [0x100a3004]
mov edx, dword [esp + 0x14]
push edx
call dword [0x100a3004]
add esp, 8
pop edi
pop esi
lea eax, [ebp + 0x1b]
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1005cc54
add esp, 0x7c
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x64]
push edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], esi
call fcn.1001c090
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [0x100c0b08]
mov dword [esp + 0x84], eax
mov eax, dword [edx + 4]
push reloc.WS2_32.dll_accept
mov dword [esp + 0x8c], 9
mov dword [esp + 0x90], ebp
mov edx, dword [ecx + 0x64]
push eax
call edx
mov ebx, eax
test ebx, ebx
je 0x1005bd12
push ebp
call dword [0x100a3004]
push esi
call dword [0x100a3004]
mov eax, dword [esp + 0x18]
push eax
call dword [0x100a3004]
add esp, 0xc
lea eax, [ebx + 0x7ff6fd00]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x43
pop ebp
add eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1005cc54
add esp, 0x7c
ret
mov ebx, dword [esp + 0x7c]
add ebx, dword [esp + 0x70]
add ebx, dword [esp + 0x64]
push ebx
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1005bd60
push ebp
call dword [0x100a3004]
push esi
call dword [0x100a3004]
mov eax, dword [esp + 0x18]
push eax
call dword [0x100a3004]
add esp, 0xc
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1005cc54
add esp, 0x7c
ret
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
push ecx
push edx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
push ecx
mov dword [esp + 0x24], eax
push edx
add eax, edi
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x9c]
push eax
add edx, edi
add edx, dword [esp + 0x30]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
push ebp
call dword [0x100a3004]
push esi
call dword [0x100a3004]
mov eax, dword [esp + 0x3c]
push eax
call dword [0x100a3004]
mov ecx, dword [esp + 0x48]
push fcn.1001cdf0
push ebx
push edi
push ecx
call fcn.100508c0
mov ecx, dword [esp + 0xc8]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1005cc54
add esp, 0x7c
ret