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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62fe5a
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 0x46db24
lea eax, [esp + 0x20]
push eax
call fcn.0046f7a1
mov dword [esp + 0x24c], esi
push dword [ebp + 0xc]
lea esi, [edi + 0x3c]
call fcn.0046f7d9
cmp dword [eax + 8], 0
mov dword [esp + 0x18], eax
je 0x46dad5
cmp dword [eax + 0x14], 0
je 0x46dad5
lea eax, [edi + 0x54]
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x34], eax
jb 0x46d5d0
mov eax, dword [eax + 4]
jmp 0x46d5d3
add eax, 4
push eax
push str.connecting_to__s
mov esi, 0xc8
lea edi, [esp + 0xb8]
call fcn.0043cd05
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, dword [ebp + 0x10]
push ebx
call fcn.0046b96d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x46d84d
cmp dword [eax + 0x18], 5
jg 0x46db00
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [eax], esi
je 0x46d62c
mov esi, eax
call fcn.004475b7
mov edi, eax
call fcn.004b7b50
xor esi, esi
push 0x2d0
call fcn.005b29ce
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x24c], 1
cmp eax, esi
je 0x46d775
movzx eax, byte [0x719f1a]
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.0046f7a1
mov byte [esp + 0x26c], 2
push edi
mov byte [esp + 0x270], 1
call fcn.00471af8
add esp, 0x14
mov byte [esp + 0x25c], 3
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x260], 1
call fcn.00471c12
mov byte [esp + 0x24c], 4
movzx eax, byte [0x719f1b]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x38], esp
push eax
push dword [ebp + 0xc]
movzx eax, byte [0x719f19]
push dword [ebp + 8]
mov dword [esp + 0x2c], 1
push eax
movzx eax, byte [0x719f1a]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x44], esp
push eax
mov ecx, ebx
call fcn.0046f7a1
mov dword [esp + 0x274], 5
push 0x46ead4
push edi
mov byte [esp + 0x27c], 4
call fcn.00471a4d
add esp, 0x20
mov dword [esp + 0x25c], 6
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x260], 4
call fcn.00471b9f
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.0046b279
jmp 0x46d777
xor eax, eax
mov dword [esp + 0x24c], 0xc
mov edi, dword [esp + 0x14]
mov ecx, eax
call fcn.0047191f
mov dword [esp + 0x24c], 0xb
test byte [esp + 0x10], 4
je 0x46d7ae
and dword [esp + 0x10], 0xfffffffb
lea eax, [esp + 0x58]
push eax
call fcn.0046b4b2
push 0xa
pop ebx
mov dword [esp + 0x24c], ebx
test byte [esp + 0x10], 2
je 0x46d7ce
and dword [esp + 0x10], 0xfffffffd
lea eax, [esp + 0x38]
push eax
call fcn.00445a15
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 1
je 0x46d7eb
and dword [esp + 0x10], 0xfffffffe
lea eax, [esp + 0x78]
push eax
call fcn.0046b4b2
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.0041926a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0043c323
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.00402c8d
mov byte [esp + 0x24c], 0xd
xor edi, edi
push edi
push ebx
jmp 0x46da84
cmp ecx, 2
jne 0x46dacf
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x46d86b
call fcn.004475b7
mov edi, eax
call fcn.004b7b50
push 0x2d0
call fcn.005b29ce
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x24c], 0xe
push 0x18
pop esi
test eax, eax
je 0x46d9b1
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.0046f7a1
mov byte [esp + 0x268], 0xf
push edi
mov byte [esp + 0x26c], 0xe
call fcn.00471c85
add esp, 0x10
mov byte [esp + 0x25c], 0x10
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x260], 0xe
call fcn.00471d29
mov byte [esp + 0x24c], 0x11
movzx eax, byte [0x719f1b]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x38], esp
push eax
push dword [ebp + 0xc]
movzx eax, byte [0x719f19]
push dword [ebp + 8]
mov dword [esp + 0x2c], 8
push eax
movzx eax, byte [0x719f1a]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x44], esp
push eax
mov ecx, ebx
call fcn.0046f7a1
mov dword [esp + 0x274], 0x12
push 0x46f037
push edi
mov byte [esp + 0x27c], 0x11
call fcn.00471a4d
add esp, 0x20
mov dword [esp + 0x25c], 0x13
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x260], 0x11
call fcn.00471b9f
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.0046b279
jmp 0x46d9b3
xor eax, eax
mov dword [esp + 0x24c], 0x19
mov edi, dword [esp + 0x14]
mov ecx, eax
call fcn.0047191f
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 0x20
je 0x46d9e6
and dword [esp + 0x10], 0xffffffdf
lea eax, [esp + 0x58]
push eax
call fcn.0046b4b2
mov dword [esp + 0x24c], 0x17
test byte [esp + 0x10], 0x10
je 0x46da07
and dword [esp + 0x10], 0xffffffef
lea eax, [esp + 0x38]
push eax
call fcn.00445a15
xor esi, esi
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 8
je 0x46da26
and dword [esp + 0x10], 0xfffffff7
lea eax, [esp + 0x78]
push eax
call fcn.0046b4b2
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.0041926a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0043c323
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.00402c8d
mov byte [esp + 0x24c], 0x1a
xor edi, edi
push edi
push 0xa
lea esi, [esp + 0x30]
call fcn.0042d38b
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.004475b7
push eax
call fcn.004b73a7
mov byte [esp + 0x24c], 0
push edi
push 1
lea ecx, [esp + 0x60]
call fcn.00403b67
mov eax, dword [esp + 0x18]
and dword [eax + 8], 0
jmp 0x46db13
push dword [ebp + 0xc]
mov esi, 0xc8
push str.mapping__u_does_not_need_updating__skipping
lea edi, [esp + 0x180]
call fcn.0043cd05
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, dword [ebp + 0x10]
push ebx
call fcn.0046b96d
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.0046d498
or dword [esp + 0x24c], 0xffffffff
lea eax, [esp + 0x20]
call fcn.00447753
mov ecx, dword [esp + 0x244]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc