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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x46e36c]
xor eax, esp
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov edx, dword [ecx + 8]
mov ebp, dword [esp + 0x5c]
push esi
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx + 0xc]
lea esi, [edx + 0x10]
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], esi
nop
mov byte [eax], 0
lea eax, [esp + 0x38]
push eax
call fcn.00412970
add esp, 4
mov dword [esp + 0x18], esi
xor ebx, ebx
mov ecx, esi
movups xmm0, xmmword [eax]
xor eax, eax
xor edi, edi
mov dword [esp + 0x1c], eax
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x10], edi
nop dword [eax]
mov esi, dword [ecx]
test esi, esi
je 0x41ee64
cmp byte [esi + 0x45], 0
jne 0x41ee64
cmp byte [esi + 0x44], 0
jne 0x41eda4
inc eax
mov dword [esp + 0x1c], eax
jmp 0x41ee64
mov edx, dword [esp + 0x14]
mov al, byte [esi + 0x46]
mov byte [edx], al
cmp dword [esi + 0x3c], 0
jne 0x41ef6e
test al, al
jne 0x41ee4c
push edx
push 0
push ebp
push dword [esi + 0x10]
call fcn.0041cd30
mov edx, dword [esp + 0x24]
add esp, 0x10
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x41ee48
cmp byte [edx], al
je 0x41ede5
mov word [esi + 0x45], 0x101
jmp 0x41ee48
mov eax, dword [esi + 0x34]
sub esp, 0x10
movups xmm0, xmmword [esi + 0x20]
mov edi, dword [esi + 0x30]
mov dword [esp + 0x40], eax
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x68]
movups xmmword [eax], xmm0
call fcn.00412a20
mov ecx, eax
add esp, 0x20
mov eax, dword [esp + 0x30]
cmp edx, eax
jl 0x41ee40
jg 0x41ee20
cmp ecx, edi
jb 0x41ee40
push eax
push edi
push dword [esi]
push str._s_connect_timeout_after__I64dms__move_on_
push ebp
call fcn.0041d880
add esp, 0x14
mov dword [esi + 0x40], 0x274c
mov dword [esi + 0x3c], 0x1c
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x3c], 0
jne 0x41ef6e
cmp byte [edx], 0
jne 0x41f013
inc ebx
mov eax, dword [esp + 0x1c]
inc edi
add ecx, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
cmp edi, 2
jb 0x41ed80
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x18], 0
jne 0x41f15b
mov esi, dword [esp + 0x1c]
test ebx, ebx
jne 0x41ee9b
test esi, esi
je 0x41f027
push 1
lea eax, [esp + 0x4c]
push eax
push ebp
call fcn.0041e750
add esp, 0xc
test edx, edx
jl 0x41f112
jg 0x41eebd
test eax, eax
jb 0x41f112
mov ecx, dword [esp + 0x20]
test esi, esi
jle 0x41f027
xor ebp, ebp
mov dword [esp + 0x10], 2
lea edi, [ecx + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x41ef47
cmp byte [esi + 0x44], 0
jne 0x41ef47
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41eeef
cmp byte [eax + 0x45], 0
jne 0x41ef1c
movups xmm0, xmmword [ecx + 0x20]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x68]
movups xmmword [eax], xmm0
call fcn.00412a20
add esp, 0x20
cmp edx, dword [esi + 0x1c]
jl 0x41ef47
jg 0x41ef1c
cmp eax, dword [esi + 0x18]
jb 0x41ef47
push 1
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x30]
call fcn.0041e750
push edx
push eax
push esi
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.0041e8f0
add esp, 0x20
cmp byte [esi + 0x45], 0
jne 0x41ef47
inc ebx
inc ebp
mov ecx, dword [esp + 0x20]
add edi, 4
sub dword [esp + 0x10], 1
jne 0x41eed6
mov eax, dword [esp + 0x14]
test ebp, ebp
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
jg 0x41ed50
jmp 0x41f02b
cmp byte [esi + 0x45], 0
jne 0x41ee60
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41ef8e
mov dword [ebp + 0x930], eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
lea eax, [esp + 0x4c]
push eax
push ebp
call fcn.0041e750
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x10], 0
jne 0x41efe3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41efcc
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x41efc8
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 8]
jne 0x41efb3
mov eax, dword [esp + 0x10]
jmp 0x41efce
mov eax, dword [esp + 0x10]
xor ecx, ecx
push edx
push eax
push esi
push ebp
push dword [esp + 0x34]
mov dword [esi + 4], ecx
call fcn.0041e8f0
add esp, 0x14
jmp 0x41effb
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 + 0x18]
mov eax, dword [esp + 0x1c]
jne 0x41ee64
inc ebx
jmp 0x41ee64
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x18], esi
mov dword [ecx + edi*4 + 0x10], 0
jmp 0x41ee81
mov eax, dword [esp + 0x14]
test ebx, ebx
jle 0x41f047
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045b78a
add esp, 0x4c
ret
mov edx, dword [esp + 0x2c]
mov edi, 7
xor ecx, ecx
mov eax, dword [edx]
test eax, eax
je 0x41f065
cmp byte [eax + 0x44], 0
je 0x41f065
mov eax, dword [eax + 0x3c]
test eax, eax
jne 0x41f070
inc ecx
add edx, 4
cmp ecx, 2
jb 0x41f052
jmp 0x41f072
mov edi, eax
mov ebx, dword [esp + 0x34]
cmp byte [ebx + 0x1c9], 0
je 0x41f084
mov esi, dword [ebx + 0x78]
jmp 0x41f0a6
cmp byte [ebx + 0x1c8], 0
je 0x41f095
mov esi, dword [ebx + 0x98]
jmp 0x41f0a6
cmp byte [ebx + 0x1d1], 0
je 0x41f0a3
mov esi, dword [ebx + 0x68]
jmp 0x41f0a6
mov esi, dword [ebx + 0x50]
push edi
call fcn.0042ee30
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 + 0x6c]
movups xmmword [eax], xmm0
call fcn.00412a20
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.0041d7b0
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 + 0x48]
xor ecx, esp
call fcn.0045b78a
add esp, 0x4c
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 + 0x68]
movups xmmword [eax], xmm0
call fcn.00412a20
push edx
push eax
push str.Connection_timeout_after__ld_ms
push ebp
call fcn.0041d7b0
add esp, 0x30
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045b78a
add esp, 0x4c
ret
mov ecx, dword [esp + 0x58]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov byte [edx], 1
call fcn.0045b78a
add esp, 0x4c
ret