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

Disassembly:
sub esp, 0x94
mov eax, dword [0x4b8914]
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 0x46d590
sub eax, esi
je 0x46d5c1
cmp byte [ecx], 0x3d
je 0x46d5c1
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x14]
push edx
push ecx
call fcn.0044af20
add esp, 0xc
cmp eax, edi
jne 0x46d981
cmp dword [esp + 0x10], edi
jne 0x46d5d6
push str.GSSAPI_handshake_failure__empty_security_message__n
push ebp
call fcn.00441850
mov eax, 0x3d
jmp 0x46d97e
mov ecx, dword [ebx + 4]
mov edx, dword [0x4bb33c]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edx + 0x2c]
push edi
push ecx
call eax
test eax, eax
je 0x46d607
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x4b859c]
add esp, 4
mov eax, 0x1b
jmp 0x46d981
mov eax, dword [ebx]
mov ecx, dword [0x4bb33c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [ecx + 8]
push 1
push eax
call edx
test eax, eax
je 0x46d638
mov eax, dword [esp + 0x10]
push eax
call dword [0x4b859c]
add esp, 4
mov eax, 0x38
jmp 0x46d981
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.004453a0
add esp, 4
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [0x4bb33c]
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 0x46d6be
push str.GSSAPI_handshake_failure__empty_security_message__n
push ebp
call fcn.00441850
mov eax, dword [esp + 0x18]
push eax
call dword [0x4b859c]
add esp, 0xc
mov eax, 0x3d
jmp 0x46d981
cmp dword [esp + 0x48], 4
je 0x46d6e8
push str.GSSAPI_handshake_failure__invalid_security_data__n
push ebp
call fcn.00441850
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4b859c]
add esp, 0xc
mov eax, 0x3d
jmp 0x46d981
mov eax, dword [esp + 0x50]
mov edx, dword [0x4bb33c]
mov ebx, dword [eax]
push eax
mov eax, dword [edx + 0x40]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x4b859c]
movzx eax, bl
add esp, 4
mov dword [esp + 0x1c], eax
test eax, reloc.WS2_32.dll_accept
jne 0x46d72b
push str.GSSAPI_handshake_failure__invalid_security_layer__n
push ebp
call fcn.00441850
mov eax, 0x3d
jmp 0x46d97e
and ebx, 0xffffff00
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x20], eax
cmp eax, edi
jbe 0x46d744
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x78]
push edx
call dword [0x4b8598]
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
cmp ebp, edi
je 0x46d5fd
mov eax, dword [esp + 0x34]
mov ebx, eax
cmp eax, edi
jne 0x46d77e
push ebp
call dword [0x4b859c]
add esp, 4
mov eax, 0x1b
jmp 0x46d981
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d781
sub eax, edx
lea esi, [eax + 5]
push esi
call dword [0x4b8598]
mov edi, eax
add esp, 4
test edi, edi
je 0x46d76a
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 0x46d7b5
mov ecx, dword [esp + 0x74]
push ecx
call dword [0x4b8598]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x46d7e9
push edi
call dword [0x4b859c]
push ebp
call dword [0x4b859c]
lea eax, [ebx + 0x1b]
jmp 0x46d97e
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.004453a0
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 [0x4bb33c]
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 0x46d8a2
push ebx
call dword [0x4b859c]
push edi
call dword [0x4b859c]
push ebp
call dword [0x4b859c]
add esp, 0xc
mov eax, 0x1b
jmp 0x46d981
mov ebp, dword [esp + 0x94]
add ebp, dword [esp + 0x88]
add ebp, dword [esp + 0x7c]
push ebp
call dword [0x4b8598]
mov esi, eax
add esp, 4
test esi, esi
jne 0x46d8e8
push ebx
call dword [0x4b859c]
push edi
call dword [0x4b859c]
mov eax, dword [esp + 0x20]
push eax
call dword [0x4b859c]
add esp, 0xc
lea eax, [esi + 0x1b]
jmp 0x46d981
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
push ecx
push edx
push esi
call fcn.00471540
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.00471540
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.00471540
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.0044b1e0
push esi
mov ebp, eax
call dword [0x4b859c]
push ebx
call dword [0x4b859c]
add esp, 0x40
push edi
call dword [0x4b859c]
mov eax, dword [esp + 0x1c]
push eax
call dword [0x4b859c]
mov eax, ebp
add esp, 8
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471528
add esp, 0x94
ret