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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x635a35
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 0x490af4
lea eax, [esp + 0x20]
push eax
call fcn.00492762
mov dword [esp + 0x24c], esi
push dword [ebp + 0xc]
lea esi, [edi + 0x3c]
call fcn.0048cf4d
cmp dword [eax + 8], 0
mov dword [esp + 0x18], eax
je 0x490aa5
cmp dword [eax + 0x14], 0
je 0x490aa5
lea eax, [edi + 0x54]
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x34], eax
jb 0x4905a0
mov eax, dword [eax + 4]
jmp 0x4905a3
add eax, 4
push eax
push str.connecting_to__s
mov esi, 0xc8
lea edi, [esp + 0xb8]
call fcn.004208ad
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, dword [ebp + 0x10]
push ebx
call fcn.0048e919
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x49081d
cmp dword [eax + 0x18], 5
jg 0x490ad0
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [eax], esi
je 0x4905fc
mov esi, eax
call fcn.00439c27
mov edi, eax
call fcn.004af6e4
xor esi, esi
push 0x2d0
call fcn.005a6b1c
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x24c], 1
cmp eax, esi
je 0x490745
movzx eax, byte [0x72323c]
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.00492762
mov byte [esp + 0x26c], 2
push edi
mov byte [esp + 0x270], 1
call fcn.00494abb
add esp, 0x14
mov byte [esp + 0x25c], 3
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x260], 1
call fcn.00494bd5
mov byte [esp + 0x24c], 4
movzx eax, byte [0x72323d]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x38], esp
push eax
push dword [ebp + 0xc]
movzx eax, byte [0x723233]
push dword [ebp + 8]
mov dword [esp + 0x2c], 1
push eax
movzx eax, byte [0x72323c]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x44], esp
push eax
mov ecx, ebx
call fcn.00492762
mov dword [esp + 0x274], 5
push 0x491adb
push edi
mov byte [esp + 0x27c], 4
call fcn.00494a10
add esp, 0x20
mov dword [esp + 0x25c], 6
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x260], 4
call fcn.00494b62
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.0048e2df
jmp 0x490747
xor eax, eax
mov dword [esp + 0x24c], 0xc
mov edi, dword [esp + 0x14]
mov ecx, eax
call fcn.004948e2
mov dword [esp + 0x24c], 0xb
test byte [esp + 0x10], 4
je 0x49077e
and dword [esp + 0x10], 0xfffffffb
lea eax, [esp + 0x58]
push eax
call fcn.0042ec64
push 0xa
pop ebx
mov dword [esp + 0x24c], ebx
test byte [esp + 0x10], 2
je 0x49079e
and dword [esp + 0x10], 0xfffffffd
lea eax, [esp + 0x38]
push eax
call fcn.00432a8f
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 1
je 0x4907bb
and dword [esp + 0x10], 0xfffffffe
lea eax, [esp + 0x78]
push eax
call fcn.0042ec64
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.0040fed3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0041fecb
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.0040188e
mov byte [esp + 0x24c], 0xd
xor edi, edi
push edi
push ebx
jmp 0x490a54
cmp ecx, 2
jne 0x490a9f
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x49083b
call fcn.00439c27
mov edi, eax
call fcn.004af6e4
push 0x2d0
call fcn.005a6b1c
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x24c], 0xe
push 0x18
pop esi
test eax, eax
je 0x490981
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.00492762
mov byte [esp + 0x268], 0xf
push edi
mov byte [esp + 0x26c], 0xe
call fcn.00494c48
add esp, 0x10
mov byte [esp + 0x25c], 0x10
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x260], 0xe
call fcn.00494cec
mov byte [esp + 0x24c], 0x11
movzx eax, byte [0x72323d]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x38], esp
push eax
push dword [ebp + 0xc]
movzx eax, byte [0x723233]
push dword [ebp + 8]
mov dword [esp + 0x2c], 8
push eax
movzx eax, byte [0x72323c]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x44], esp
push eax
mov ecx, ebx
call fcn.00492762
mov dword [esp + 0x274], 0x12
push 0x49203e
push edi
mov byte [esp + 0x27c], 0x11
call fcn.00494a10
add esp, 0x20
mov dword [esp + 0x25c], 0x13
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x260], 0x11
call fcn.00494b62
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.0048e2df
jmp 0x490983
xor eax, eax
mov dword [esp + 0x24c], 0x19
mov edi, dword [esp + 0x14]
mov ecx, eax
call fcn.004948e2
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 0x20
je 0x4909b6
and dword [esp + 0x10], 0xffffffdf
lea eax, [esp + 0x58]
push eax
call fcn.0042ec64
mov dword [esp + 0x24c], 0x17
test byte [esp + 0x10], 0x10
je 0x4909d7
and dword [esp + 0x10], 0xffffffef
lea eax, [esp + 0x38]
push eax
call fcn.00432a8f
xor esi, esi
mov dword [esp + 0x24c], esi
test byte [esp + 0x10], 8
je 0x4909f6
and dword [esp + 0x10], 0xfffffff7
lea eax, [esp + 0x78]
push eax
call fcn.0042ec64
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.0040fed3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
cdq
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0041fecb
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.0040188e
mov byte [esp + 0x24c], 0x1a
xor edi, edi
push edi
push 0xa
lea esi, [esp + 0x30]
call fcn.0041d1be
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.00439c27
push eax
call fcn.004aee94
mov byte [esp + 0x24c], 0
push edi
push 1
lea ecx, [esp + 0x60]
call fcn.00401ac6
mov eax, dword [esp + 0x18]
and dword [eax + 8], 0
jmp 0x490ae3
push dword [ebp + 0xc]
mov esi, 0xc8
push str.mapping__u_does_not_need_updating__skipping
lea edi, [esp + 0x180]
call fcn.004208ad
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, dword [ebp + 0x10]
push ebx
call fcn.0048e919
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.00490468
or dword [esp + 0x24c], 0xffffffff
lea eax, [esp + 0x20]
call fcn.00439e64
mov ecx, dword [esp + 0x244]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc