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

Disassembly:
sub esp, 0x94
mov eax, dword [0x4bcad4]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xa4]
push ebp
mov ebp, dword [esp + 0xa0]
push esi
push edi
xor edi, edi
mov dword [esp + 0x2c], eax
mov eax, ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], edi
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4705d0
sub eax, esi
je 0x470601
cmp byte [ecx], 0x3d
je 0x470601
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x14]
push edx
push ecx
call fcn.0044df50
add esp, 0xc
cmp eax, edi
jne 0x4709c1
cmp dword [esp + 0x10], edi
jne 0x470616
push str.GSSAPI_handshake_failure__empty_security_message__n
push ebp
call fcn.00444880
mov eax, 0x3d
jmp 0x4709be
mov ecx, dword [ebx + 4]
mov edx, dword [0x4bf35c]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edx + 0x2c]
push edi
push ecx
call eax
test eax, eax
je 0x470647
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x4bc59c]
add esp, 4
mov eax, 0x1b
jmp 0x4709c1
mov eax, dword [ebx]
mov ecx, dword [0x4bf35c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [ecx + 8]
push 1
push eax
call edx
test eax, eax
je 0x470678
mov eax, dword [esp + 0x10]
push eax
call dword [0x4bc59c]
add esp, 4
mov eax, 0x38
jmp 0x4709c1
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], ecx
mov dword [esp + 0x44], 0xa
mov dword [esp + 0x48], edx
call fcn.004483b0
add esp, 4
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [0x4bf35c]
push edi
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], edi
mov edx, dword [ecx + 0x68]
push eax
call edx
test eax, eax
je 0x4706fe
push str.GSSAPI_handshake_failure__empty_security_message__n
push ebp
call fcn.00444880
mov eax, dword [esp + 0x18]
push eax
call dword [0x4bc59c]
add esp, 0xc
mov eax, 0x3d
jmp 0x4709c1
cmp dword [esp + 0x48], 4
je 0x470728
push str.GSSAPI_handshake_failure__invalid_security_data__n
push ebp
call fcn.00444880
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4bc59c]
add esp, 0xc
mov eax, 0x3d
jmp 0x4709c1
mov eax, dword [esp + 0x50]
mov edx, dword [0x4bf35c]
mov ebx, dword [eax]
push eax
mov eax, dword [edx + 0x40]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x4bc59c]
movzx eax, bl
add esp, 4
mov dword [esp + 0x1c], eax
test eax, reloc.WS2_32.dll_accept
jne 0x47076b
push str.GSSAPI_handshake_failure__invalid_security_layer__n
push ebp
call fcn.00444880
mov eax, 0x3d
jmp 0x4709be
and ebx, 0xffffff00
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x20], eax
cmp eax, edi
jbe 0x470784
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x78]
push edx
call dword [0x4bc598]
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
cmp ebp, edi
je 0x47063d
mov eax, dword [esp + 0x34]
mov ebx, eax
cmp eax, edi
jne 0x4707be
push ebp
call dword [0x4bc59c]
add esp, 4
mov eax, 0x1b
jmp 0x4709c1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4707c1
sub eax, edx
lea esi, [eax + 5]
push esi
call dword [0x4bc598]
mov edi, eax
add esp, 4
test edi, edi
je 0x4707aa
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
or eax, dword [esp + 0x1c]
lea edx, [edi + 4]
mov dword [edi], eax
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4707f5
mov ecx, dword [esp + 0x74]
push ecx
call dword [0x4bc598]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x470829
push edi
call dword [0x4bc59c]
push ebp
call dword [0x4bc59c]
lea eax, [ebx + 0x1b]
jmp 0x4709be
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x7c]
push esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 3
mov dword [esp + 0x6c], edx
mov dword [esp + 0x84], 2
mov dword [esp + 0x88], ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], edi
call fcn.004483b0
mov ecx, dword [esp + 0x78]
add esp, 4
push 0
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x64]
push edx
mov edx, dword [0x4bf35c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax + 4]
push reloc.WS2_32.dll_accept
mov dword [esp + 0xa4], 9
mov dword [esp + 0xa8], ebx
mov eax, dword [edx + 0x64]
push ecx
call eax
test eax, eax
je 0x4708e2
push ebx
call dword [0x4bc59c]
push edi
call dword [0x4bc59c]
push ebp
call dword [0x4bc59c]
add esp, 0xc
mov eax, 0x1b
jmp 0x4709c1
mov ebp, dword [esp + 0x94]
add ebp, dword [esp + 0x88]
add ebp, dword [esp + 0x7c]
push ebp
call dword [0x4bc598]
mov esi, eax
add esp, 4
test esi, esi
jne 0x470928
push ebx
call dword [0x4bc59c]
push edi
call dword [0x4bc59c]
mov eax, dword [esp + 0x20]
push eax
call dword [0x4bc59c]
add esp, 0xc
lea eax, [esi + 0x1b]
jmp 0x4709c1
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
push ecx
push edx
push esi
call fcn.00475200
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x9c]
push ecx
mov dword [esp + 0x24], eax
push edx
add eax, esi
push eax
call fcn.00475200
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb4]
push eax
add edx, esi
add edx, dword [esp + 0x30]
push ecx
push edx
call fcn.00475200
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push ebp
push esi
push edx
call fcn.0044e210
push esi
mov ebp, eax
call dword [0x4bc59c]
push ebx
call dword [0x4bc59c]
add esp, 0x40
push edi
call dword [0x4bc59c]
mov eax, dword [esp + 0x1c]
push eax
call dword [0x4bc59c]
mov eax, ebp
add esp, 8
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004751f1
add esp, 0x94
ret