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

Disassembly:
sub esp, 0x54
mov eax, dword [0x509040]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0xc]
push esi
mov dword [esp + 0x38], eax
lea esi, [ecx + 0x10]
lea eax, [ecx + 0x18]
mov dword [esp + 0x20], ebp
push edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], esi
nop word [eax + eax]
lea eax, [esp + 0x40]
mov byte [edi], 0
push eax
call fcn.004914f0
add esp, 4
mov dword [esp + 0x18], esi
xor ebx, ebx
mov edx, esi
movups xmm0, xmmword [eax]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x10], eax
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x14], ecx
nop dword [eax]
mov esi, dword [edx]
test esi, esi
je 0x49e2df
cmp byte [esi + 0x45], 0
jne 0x49e2df
cmp byte [esi + 0x44], 0
jne 0x49e224
inc eax
mov dword [esp + 0x10], eax
jmp 0x49e2df
mov al, byte [esi + 0x46]
mov byte [edi], al
cmp dword [esi + 0x3c], 0
jne 0x49e2c4
test al, al
jne 0x49e2c4
push edi
push 0
push ebp
push dword [esi + 0x10]
call fcn.0049c190
add esp, 0x10
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x49e2bc
cmp byte [edi], al
je 0x49e25d
mov word [esi + 0x45], 0x101
jmp 0x49e2bc
mov eax, dword [esi + 0x34]
sub esp, 0x10
movups xmm0, xmmword [esi + 0x20]
mov edi, dword [esi + 0x30]
mov dword [esp + 0x44], eax
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x70]
movups xmmword [eax], xmm0
call fcn.004915a0
mov ecx, eax
add esp, 0x20
mov eax, dword [esp + 0x34]
cmp edx, eax
jl 0x49e2b8
jg 0x49e298
cmp ecx, edi
jb 0x49e2b8
push eax
push edi
push dword [esi]
push str._s_connect_timeout_after__I64dms__move_on_
push ebp
call fcn.0049ccf0
add esp, 0x14
mov dword [esi + 0x40], 0x274c
mov dword [esi + 0x3c], 0x1c
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x49e407
cmp byte [edi], al
jne 0x49e4b1
inc ebx
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
inc ecx
add edx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp ecx, 2
jb 0x49e200
mov eax, dword [esp + 0x2c]
cmp dword [eax], 0
jne 0x49e5e9
mov esi, dword [esp + 0x10]
test ebx, ebx
jne 0x49e315
test esi, esi
je 0x49e4ce
push 1
lea eax, [esp + 0x54]
push eax
push ebp
call fcn.0049dbc0
add esp, 0xc
test edx, edx
jl 0x49e5a0
jg 0x49e337
test eax, eax
jb 0x49e5a0
test esi, esi
jle 0x49e3e3
mov edi, dword [esp + 0x28]
xor ebp, ebp
mov dword [esp + 0x10], 2
nop dword [eax]
mov esi, dword [edi]
test esi, esi
je 0x49e3c5
cmp byte [esi + 0x44], 0
jne 0x49e3c5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49e369
cmp byte [eax + 0x45], 0
jne 0x49e39a
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x70]
movups xmmword [eax], xmm0
call fcn.004915a0
add esp, 0x20
cmp edx, dword [esi + 0x1c]
jl 0x49e3c5
jg 0x49e39a
cmp eax, dword [esi + 0x18]
jb 0x49e3c5
push 1
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x2c]
call fcn.0049dbc0
push edx
push eax
push esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.0049dd60
add esp, 0x20
cmp byte [esi + 0x45], 0
jne 0x49e3c5
inc ebx
inc ebp
add edi, 4
sub dword [esp + 0x10], 1
jne 0x49e350
mov edi, dword [esp + 0x1c]
test ebp, ebp
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
jg 0x49e1d0
test ebx, ebx
jle 0x49e4ce
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004870f9
add esp, 0x54
ret
cmp byte [esi + 0x45], 0
jne 0x49e2db
mov eax, dword [esi + 0x40]
test eax, eax
je 0x49e427
mov dword [ebp + 0x930], eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
lea eax, [esp + 0x54]
push eax
push ebp
call fcn.0049dbc0
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x10], 0
jne 0x49e47d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x49e469
nop word [eax + eax]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x49e465
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 8]
jne 0x49e450
mov eax, dword [esp + 0x20]
jmp 0x49e46b
mov eax, dword [esp + 0x20]
xor ecx, ecx
push edx
push edi
push esi
push ebp
push eax
mov dword [esi + 4], ecx
call fcn.0049dd60
add esp, 0x14
jmp 0x49e495
mov dword [esi + 0x40], 0
mov word [esi + 0x45], 1
mov byte [esi + 0x44], 1
mov dword [esi + 0x3c], 7
cmp byte [esi + 0x45], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
jne 0x49e2df
inc ebx
jmp 0x49e2df
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov dword [edx], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, edx
mov dword [esp + 0x2c], eax
jmp 0x49e2fc
mov edx, dword [esp + 0x28]
mov edi, 7
xor ecx, ecx
nop dword [eax]
mov eax, dword [edx]
test eax, eax
je 0x49e4f3
cmp byte [eax + 0x44], 0
je 0x49e4f3
mov eax, dword [eax + 0x3c]
test eax, eax
jne 0x49e4fe
inc ecx
add edx, 4
cmp ecx, 2
jb 0x49e4e0
jmp 0x49e500
mov edi, eax
mov ebx, dword [esp + 0x3c]
cmp byte [ebx + 0x1c9], 0
je 0x49e512
mov esi, dword [ebx + 0x78]
jmp 0x49e534
cmp byte [ebx + 0x1c8], 0
je 0x49e523
mov esi, dword [ebx + 0x98]
jmp 0x49e534
cmp byte [ebx + 0x1d1], 0
je 0x49e531
mov esi, dword [ebx + 0x68]
jmp 0x49e534
mov esi, dword [ebx + 0x50]
push edi
call fcn.004ae680
movups xmm0, xmmword [ebp + 0x798]
add esp, 4
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x74]
movups xmmword [eax], xmm0
call fcn.004915a0
add esp, 0x20
push edx
push eax
push dword [ebx + 0x440]
push esi
push str.Failed_to_connect_to__s_port__u_after__I64d_ms:__s
push ebp
call fcn.0049cc20
add esp, 0x1c
mov eax, 0x1c
cmp dword [ebp + 0x930], 0x274c
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004870f9
add esp, 0x54
ret
movups xmm0, xmmword [ebp + 0x798]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x70]
movups xmmword [eax], xmm0
call fcn.004915a0
push edx
push eax
push str.Connection_timeout_after__ld_ms
push ebp
call fcn.0049cc20
add esp, 0x30
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004870f9
add esp, 0x54
ret
mov ecx, dword [esp + 0x60]
xor eax, eax
mov byte [edi], 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004870f9
add esp, 0x54
ret