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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e6e05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [edi + 0x98]
mov dword [esp + 0x10], esi
mov ebx, ecx
mov dword [esp + 0x14], eax
cmp dword [eax], esi
jne 0x46be73
lea eax, [esp + 0x20]
push eax
call fcn.0046dbcc
mov dword [esp + 0x24c], esi
push dword [ebp + 0xc]
lea esi, [edi + 0x3c]
call fcn.0046836d
cmp dword [eax + 8], 0
mov dword [esp + 0x18], eax
je 0x46be24
cmp dword [eax + 0x14], 0
je 0x46be24
lea eax, [edi + 0x54]
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x34], eax
jb 0x46b91f
mov eax, dword [eax + 4]
jmp 0x46b922
add eax, 4
push eax
push str.connecting_to__s
mov esi, 0xc8
lea edi, [esp + 0xb8]
call fcn.0043aa27
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, dword [ebp + 0x10]
push ebx
call fcn.00469c84
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x46bb9c
cmp dword [eax + 0x18], 5
jg 0x46be4f
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [eax], esi
je 0x46b97b
mov esi, eax
call fcn.004453fc
mov edi, eax
call fcn.004b60db
xor esi, esi
push 0x2d0
call fcn.005740d0
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x24c], 1
cmp eax, esi
je 0x46bac4
movzx eax, byte [0x6b3eee]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x2c], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
push eax
mov ecx, ebx
call fcn.0046dbcc
mov byte [esp + 0x26c], 2
push edi
mov byte [esp + 0x270], 1
call fcn.0046fcc3
add esp, 0x14
mov byte [esp + 0x25c], 3
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x260], 1
call fcn.0046fddd
mov byte [esp + 0x24c], 4
movzx eax, byte [0x6b3eef]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x38], esp
push eax
push dword [ebp + 0xc]
movzx eax, byte [0x6b3eed]
push dword [ebp + 8]
mov dword [esp + 0x2c], 1
push eax
movzx eax, byte [0x6b3eee]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x44], esp
push eax
mov ecx, ebx
call fcn.0046dbcc
mov dword [esp + 0x274], 5
push 0x46cee0
push edi
mov byte [esp + 0x27c], 4
call fcn.0046fc18
add esp, 0x20
mov dword [esp + 0x25c], 6
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x260], 4
call fcn.0046fd6a
push 7
pop eax
mov dword [esp + 0x24c], eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x58], esi
mov dword [esp + 0x24c], 9
mov dword [esp + 0x10], eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push dword [ebx + 0x19c]
lea ecx, [esp + 0x44]
push dword [ebx + 0x84]
push dword [esp + 0x34]
call fcn.0046966f
jmp 0x46bac6
xor eax, eax
mov dword [esp + 0x24c], 0xc
mov edi, dword [esp + 0x14]
mov ecx, eax
call fcn.0046faea
mov dword [esp + 0x24c], 0xb
test byte [esp + 0x10], 4
je 0x46bafd
and dword [esp + 0x10], 0xfffffffb
lea eax, [esp + 0x58]
push eax
call fcn.004a5e16
push 0xa
pop ebx
mov dword [esp + 0x24c], ebx
test byte [esp + 0x10], 2
je 0x46bb1d
and dword [esp + 0x10], 0xfffffffd
lea eax, [esp + 0x38]
push eax
call fcn.0042db35
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 1
je 0x46bb3a
and dword [esp + 0x10], 0xfffffffe
lea eax, [esp + 0x78]
push eax
call fcn.004a5e16
push esi
call dword [sym.imp.WS2_32.dll_htonl]
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
call fcn.00415985
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0043a044
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0x9b]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x9b]
push eax
lea ecx, [esp + 0x5c]
movsb byte es:[edi], byte [esi]
call fcn.00402b00
mov byte [esp + 0x24c], 0xd
xor edi, edi
push edi
push ebx
jmp 0x46bdd3
cmp ecx, 2
jne 0x46be1e
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x46bbba
call fcn.004453fc
mov edi, eax
call fcn.004b60db
push 0x2d0
call fcn.005740d0
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x24c], 0xe
push 0x18
pop esi
test eax, eax
je 0x46bd00
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x38], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push eax
mov ecx, ebx
call fcn.0046dbcc
mov byte [esp + 0x268], 0xf
push edi
mov byte [esp + 0x26c], 0xe
call fcn.0046fe50
add esp, 0x10
mov byte [esp + 0x25c], 0x10
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x260], 0xe
call fcn.0046fef4
mov byte [esp + 0x24c], 0x11
movzx eax, byte [0x6b3eef]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x38], esp
push eax
push dword [ebp + 0xc]
movzx eax, byte [0x6b3eed]
push dword [ebp + 8]
mov dword [esp + 0x2c], 8
push eax
movzx eax, byte [0x6b3eee]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x44], esp
push eax
mov ecx, ebx
call fcn.0046dbcc
mov dword [esp + 0x274], 0x12
push 0x46d442
push edi
mov byte [esp + 0x27c], 0x11
call fcn.0046fc18
add esp, 0x20
mov dword [esp + 0x25c], 0x13
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x260], 0x11
call fcn.0046fd6a
mov dword [esp + 0x24c], 0x14
and dword [esp + 0x58], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x24c], 0x16
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push dword [ebx + 0x19c]
lea ecx, [esp + 0x44]
push dword [ebx + 0x84]
mov dword [esp + 0x20], 0x38
push dword [esp + 0x34]
call fcn.0046966f
jmp 0x46bd02
xor eax, eax
mov dword [esp + 0x24c], 0x19
mov edi, dword [esp + 0x14]
mov ecx, eax
call fcn.0046faea
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 0x20
je 0x46bd35
and dword [esp + 0x10], 0xffffffdf
lea eax, [esp + 0x58]
push eax
call fcn.004a5e16
mov dword [esp + 0x24c], 0x17
test byte [esp + 0x10], 0x10
je 0x46bd56
and dword [esp + 0x10], 0xffffffef
lea eax, [esp + 0x38]
push eax
call fcn.0042db35
xor esi, esi
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 8
je 0x46bd75
and dword [esp + 0x10], 0xfffffff7
lea eax, [esp + 0x78]
push eax
call fcn.004a5e16
push esi
call dword [sym.imp.WS2_32.dll_htonl]
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
call fcn.00415985
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0043a044
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0x9b]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x9b]
push eax
lea ecx, [esp + 0x5c]
movsb byte es:[edi], byte [esi]
call fcn.00402b00
mov byte [esp + 0x24c], 0x1a
xor edi, edi
push edi
push 0xa
lea esi, [esp + 0x30]
call fcn.0042af65
pop ecx
mov esi, dword [esp + 0x18]
pop ecx
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x40]
push eax
push 5
push edi
push edi
push 1
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x54]
call fcn.004453fc
push eax
call fcn.004b58d9
mov byte [esp + 0x24c], 0
push edi
push 1
lea ecx, [esp + 0x60]
call fcn.004034fc
mov eax, dword [esp + 0x18]
and dword [eax + 8], 0
jmp 0x46be62
push dword [ebp + 0xc]
mov esi, 0xc8
push str.mapping__u_does_not_need_updating__skipping
lea edi, [esp + 0x180]
call fcn.0043aa27
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, dword [ebp + 0x10]
push ebx
call fcn.00469c84
mov eax, dword [esp + 0x18]
push dword [ebp + 0x10]
and dword [eax + 8], 0
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
call fcn.0046b7d5
or dword [esp + 0x24c], 0xffffffff
lea eax, [esp + 0x20]
call fcn.00445538
mov ecx, dword [esp + 0x244]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc