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

Disassembly:
sub esp, 0xfc
mov eax, dword [0x100892c0]
xor eax, esp
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x104]
xor ecx, ecx
mov edx, dword [esp + 0x108]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10c]
mov dword [esp + 0x10], eax
add eax, 0x29a
add eax, esi
mov dword [esp + 0x30], edx
push edi
mov ebp, dword [esi]
xor edi, edi
mov byte [edx], cl
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
cmp byte [eax], cl
je 0x1004551e
mov byte [edx], 1
xor eax, eax
jmp 0x10045aa4
lea eax, [esp + 0x48]
push eax
call fcn.1004ca90
mov edx, dword [ebp + 0x63c]
mov ebx, eax
mov eax, dword [ebp + 0x638]
xor ecx, ecx
add esp, 4
mov dword [esp + 0x1c], 0x493e0
test eax, eax
mov dword [esp + 0x18], edi
movups xmm0, xmmword [ebx]
setg cl
movups xmmword [esp + 0x38], xmm0
test edx, edx
jle 0x1004555b
or ecx, 2
sub ecx, 1
je 0x10045573
sub ecx, 1
je 0x10045571
sub ecx, 1
jne 0x1004557c
cmp eax, edx
cmovge eax, edx
jmp 0x10045573
mov eax, edx
cdq
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
movups xmm0, xmmword [ebp + 0xb38]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
call fcn.1004cb40
mov ecx, dword [esp + 0x3c]
add esp, 0x20
mov ebx, dword [esp + 0x18]
sub ecx, eax
mov eax, ecx
mov dword [esp + 0x1c], ecx
sbb ebx, edx
or eax, ebx
mov dword [esp + 0x18], ebx
je 0x10045a91
test ebx, ebx
jl 0x10045a91
jg 0x100455ce
test ecx, ecx
jb 0x10045a91
xor ebx, ebx
mov eax, ebx
xor eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esi + ebx*4 + 0x1c8]
cmp eax, 0xffffffff
je 0x10045865
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.10047750
add esp, 0x14
test eax, eax
jne 0x100456d1
mov eax, dword [esi + 0x2bc]
sub esp, 0x10
movups xmm0, xmmword [esi + 0x2a0]
mov ebp, dword [esi + 0x2b8]
xor edi, edi
mov dword [esp + 0x20], eax
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x58]
movups xmmword [eax], xmm0
call fcn.1004cb40
mov ecx, eax
add esp, 0x20
mov eax, dword [esp + 0x10]
cmp edx, eax
jl 0x10045663
jg 0x10045648
cmp ecx, ebp
jb 0x10045663
push eax
push ebp
mov ebp, dword [esp + 0x2c]
push str.After__I64dms_connect_time__move_on__n
push ebp
call fcn.100447a0
add esp, 0x10
mov edi, 0x274c
jmp 0x10045667
mov ebp, dword [esp + 0x24]
test ebx, ebx
jne 0x100457b0
cmp dword [esi + 0x58], ebx
jne 0x100457b0
movups xmm0, xmmword [esi + 0x2a0]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x58]
movups xmmword [eax], xmm0
call fcn.1004cb40
mov dword [esp + 0x30], eax
mov ecx, edx
mov eax, dword [ebp + 0x644]
add esp, 0x20
cdq
cmp ecx, edx
jl 0x100457b0
jg 0x100456bd
cmp dword [esp + 0x10], eax
jb 0x100457b0
push 1
push dword [esp + 0x18]
push esi
call fcn.100469f0
add esp, 0xc
jmp 0x100457b0
cmp eax, 2
je 0x1004573a
test dword [esi + 0x29c], 0x2000000
jne 0x1004573a
test al, 4
je 0x100457b0
mov edi, dword [esi + ebx*4 + 0x1c8]
push 0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 4
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
push 0x1007
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x10045734
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x100457b0
mov edi, dword [esp + 0x10]
jmp 0x100457b0
mov edi, dword [esi + ebx*4 + 0x1c8]
push 0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 4
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
push 0x1007
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x10045784
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x10045788
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10045798
cmp edi, 0x2748
je 0x10045798
xor al, al
jmp 0x1004579a
mov al, 1
test al, al
jne 0x100458b7
push str.Connection_failed_n
push ebp
call fcn.100447a0
add esp, 8
test edi, edi
je 0x10045865
push edi
mov dword [ebp + 0xca4], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esi + ebx*4 + 0x54]
test eax, eax
je 0x10045865
push 0x2e
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.1004db50
push 0x80
lea eax, [esp + 0x98]
push eax
push edi
call fcn.10032900
push eax
push dword [esi + 0xfc]
lea eax, [esp + 0x78]
push eax
push str.connect_to__s_port__ld_failed:__s_n
push ebp
call fcn.100447a0
mov eax, dword [esi + ebx*4 + 0x54]
add esp, 0x2c
cmp dword [eax + 0x1c], 0
jne 0x1004581f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x10045830
push 0
push 2
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.10067c40
push ebx
push dword [esp + 0x18]
mov dword [esi + 0x2b8], eax
push esi
mov dword [esi + 0x2bc], edx
call fcn.100469f0
add esp, 0xc
cmp eax, 7
jne 0x1004585d
mov ecx, dword [esp + 0x2c]
cmp dword [esi + ecx*4 + 0x1c8], 0xffffffff
jne 0x10045865
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x10045869
mov ecx, dword [esp + 0x20]
inc ebx
cmp ebx, 2
jl 0x100455d0
test ecx, ecx
je 0x10045a8d
cmp dword [esi + 0x58], 0
jne 0x1004589e
push 1
push dword [esp + 0x18]
push esi
call fcn.100469f0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x10045517
mov eax, dword [esi + 0x29c]
test al, al
jns 0x10045a42
mov ebx, dword [esi + 0xc4]
jmp 0x10045a60
mov eax, dword [esi + ebx*4 + 0x1c8]
mov edx, 0x800
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0x1c0], eax
xor ecx, ecx
mov eax, dword [esi + ebx*4 + 0x54]
mov dword [esi + 0x50], eax
mov dword [esi + ebx*4 + 0x1c8], 0xffffffff
mov eax, dword [esi + 0x50]
mov ebx, dword [esp + 0x2c]
cmp dword [eax + 4], 0x17
mov eax, dword [esi + 0x29c]
cmove ecx, edx
and eax, 0xfffff7ff
or ecx, eax
mov dword [esi + 0x29c], ecx
mov eax, dword [esi + ebx*4 + 0x1c8]
cmp eax, 0xffffffff
je 0x1004592a
push eax
push esi
call fcn.10045170
mov dword [esi + ebx*4 + 0x1c8], 0xffffffff
add esp, 8
mov ecx, dword [esi + 0x29c]
test cl, cl
jns 0x10045a07
mov ebx, dword [esp + 0x14]
mov eax, ecx
and eax, 0x40
je 0x10045945
mov edi, dword [esi + 0xe4]
jmp 0x10045965
test cl, 8
je 0x10045952
mov edi, dword [esi + 0xb4]
jmp 0x10045965
cmp ebx, 1
jne 0x1004595f
mov edi, dword [esi + 0xa8]
jmp 0x10045965
mov edi, dword [esi + 0x9c]
test eax, eax
je 0x10045971
mov edx, dword [esi + 0xec]
jmp 0x10045992
cmp ebx, 1
jne 0x1004597f
movzx edx, word [esi + 0x108]
jmp 0x10045992
test cl, 0x10
je 0x1004598c
mov edx, dword [esi + 0x104]
jmp 0x10045992
mov edx, dword [esi + 0x100]
mov eax, dword [esi + 0xd0]
or ecx, 0x10000000
add eax, 0xfffffffc
mov dword [esi + 0x29c], ecx
cmp eax, 3
ja case.default.0x100459ac
jmp dword [eax*4 + 0x10045ac0]
push esi
push ebx
push edx
push edi
push dword [esi + 0xd8]
push dword [esi + 0xd4]
call fcn.1005c750
add esp, 0x18
jmp 0x100459f5
push esi
push ebx
push edx
push edi
push dword [esi + 0xd4]
call fcn.1005c280
add esp, 0x14
jmp 0x100459f5
push str.unknown_proxytype_option_given
push dword [esi]
call fcn.100446b0
add esp, 8
mov eax, 7
and dword [esi + 0x29c], 0xefffffff
test eax, eax
jne 0x10045aa4
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
mov byte [eax], 1
mov eax, dword [esp + 0x34]
mov byte [eax], 1
test ebx, ebx
jne 0x10045a28
push 4
push ebp
call fcn.100533d0
add esp, 8
push dword [esi + ebx*4 + 0x1c0]
push esi
call fcn.10045cd0
push esi
call fcn.10040c90
add esp, 0xc
xor eax, eax
jmp 0x10045aa4
test al, 0x40
je 0x10045a4e
mov ebx, dword [esi + 0xe4]
jmp 0x10045a60
test al, 8
je 0x10045a5a
mov ebx, dword [esi + 0xb4]
jmp 0x10045a60
mov ebx, dword [esi + 0x9c]
push 0x80
lea eax, [esp + 0x8c]
push eax
push edi
call fcn.10032900
push eax
push dword [esi + 0xfc]
push ebx
push str.Failed_to_connect_to__s_port__ld:__s
push ebp
call fcn.100446b0
mov ecx, dword [esp + 0x40]
add esp, 0x20
mov eax, ecx
jmp 0x10045aa4
push str.Connection_time_out
push ebp
call fcn.100446b0
add esp, 8
mov eax, 0x1c
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10067186
add esp, 0xfc
ret