Function at 0x434e40
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, dword [ebp + 0x18]
mov ecx, 0x58ae30
call fcn.004330e0
mov esi, eax
test eax, eax
je 0x434f07
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x48], ecx
call fcn.00434520
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x30]
push dword [ebp + 0xc]
push 0x58aef5
push 0x10
push eax
call fcn.00433200
add esp, 0x10
mov dword [esp + 0x28], 0
lea eax, [ebx + 1]
test byte [ebx], 1
mov dword [esp + 0xc], eax
je 0x434eb4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x434f24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov eax, dword [ebp + 8]
test byte [eax], 1
je 0x434ee5
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0x10], 1
je 0x434fb0
mov eax, dword [esp + 0x18]
jmp 0x434fb4
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call fcn.00439f20
add esp, 4
mov ecx, edi
push eax
call fcn.00555b20
jmp 0x43504c
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x28], 0
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], ebx
je 0x43505e
mov dword [esi + 0xc], eax
push dword [ebx + 0x10]
push dword [ebx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x435081
cmp esi, 0x5d9150
mov edi, 0xffffffff
jae 0x435210
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
cmp esi, 0x5c1150
jb 0x435216
mov eax, dword [esi + 4]
test eax, eax
je 0x435216
mov eax, 0x5c1150
mov ecx, esi
sub ecx, eax
sar ecx, 4
imul edi, ecx, 0xaaaaaaab
add edi, 0x800
jmp 0x435216
lea eax, [esp + 0x11]
mov ecx, esp
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
push str.cannot_resolve_host__s_and_port__s:__s
push ecx
call fcn.004deac0
add esp, 0x14
test byte [edi], 1
jne 0x434fda
mov word [edi], 0
jmp 0x434ffd
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x434ffd
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0x10], 1
je 0x435037
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x4352d9
mov ecx, ebx
call fcn.00433dc0
mov edi, 0xffffffff
test esi, esi
jne 0x43525b
jmp 0x4352cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0x10], 1
je 0x4350c1
mov eax, dword [esp + 0x18]
jmp 0x4350c5
mov ebx, esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0xc]
test byte [eax], 1
je 0x43509c
mov esi, dword [eax + 8]
lea eax, [esp + 0x10]
push dword [esp + 0x20]
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0x10], 1
je 0x43516a
mov eax, dword [esp + 0x18]
jmp 0x43516e
lea eax, [esp + 0x11]
mov ecx, esp
push eax
push str.cannot_create_socket:__s
push ecx
call fcn.004deac0
add esp, 0xc
test byte [edi], 1
jne 0x4350e2
mov word [edi], 0
jmp 0x435105
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x435105
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0x10], 1
je 0x43513f
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x435343
mov ecx, ebx
call fcn.00433dc0
mov eax, dword [esp + 0x1c]
mov edi, 0xffffffff
test eax, eax
jne 0x435250
jmp 0x435257
lea eax, [esp + 0x11]
mov ecx, esp
push eax
lea eax, [esp + 0x34]
push eax
push esi
push str.cannot_connect_to__s:_s:__s
push ecx
call fcn.004deac0
add esp, 0x14
test byte [edi], 1
jne 0x435193
mov word [edi], 0
mov esi, ebx
jmp 0x4351b8
mov eax, dword [edi + 8]
mov esi, ebx
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x4351b8
push dword [edi + 8]
call fcn.004fc300
add esp, 4
mov dword [edi], 0
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esp]
movsd qword [edi], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
test byte [esp + 0x10], 1
je 0x4351f2
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x435398
mov ecx, dword [esp + 0x20]
call fcn.00433dc0
mov edi, 0xffffffff
jmp 0x43524c
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
add esi, 0x10
cmp edx, 1
mov eax, str.udp:
mov ecx, 0x58aedb
cmovne ecx, eax
push ebx
push ecx
push edi
push str._d_net_client:_s_d_
push 0x20
push esi
call fcn.00433200
add esp, 0x18
mov eax, dword [0x5bc570]
xor esi, esi
cmp byte [eax], 0
js 0x43532e
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4352cf
mov dword [esp + 0xc], edi
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [0x5c1138]
mov edi, dword [eax]
mov ecx, ebx
call fcn.004fb4c0
mov eax, 0x5c1150
mov edx, esi
sub esi, eax
sar esi, 4
imul eax, esi, 0xaaaaaaab
cmp dword [0x5c114c], eax
jle 0x435293
mov dword [0x5c114c], eax
cmp dword [edx + 4], 0
je 0x4352bc
mov eax, dword [edx]
mov esi, edx
push edx
call dword [eax + 4]
add esp, 4
mov byte [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov ecx, ebx
call fcn.004fb560
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
mov edi, dword [esp + 0xc]
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ddb30
cmp eax, 1
jg 0x435045
mov dword [esp + 0xc], esi
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea esi, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x1c], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x39e
push 0x58acc4
call fcn.004ddb50
mov ecx, esi
call fcn.004ddb40
test byte [edi], 1
mov dword [esp + 0x20], eax
jne 0x43540c
inc edi
jmp 0x43540f
call fcn.004ddb30
cmp eax, 1
jle 0x435478
xor esi, esi
jmp 0x43524c
call fcn.004ddb30
cmp eax, 1
jg 0x43514d
mov dword [esp + 0xc], esi
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea esi, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x3ad
push 0x58acc4
call fcn.004ddb50
mov ecx, esi
call fcn.004ddb40
test byte [edi], 1
mov dword [esp + 0x24], eax
jne 0x43552f
inc edi
jmp 0x435532
call fcn.004ddb30
cmp eax, 1
jg 0x435200
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea esi, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x2c], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x3bb
push 0x58acc4
call fcn.004ddb50
mov ecx, esi
call fcn.004ddb40
cmp dword [ebp + 0x10], 1
mov edx, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov ecx, 0x58aebf
mov eax, 0x58aebb
cmove eax, ecx
test byte [edx], 1
je 0x4353fd
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc], ecx
test byte [edi], 1
jne 0x43559b
inc edi
jmp 0x43559e
mov edi, dword [edi + 8]
push edi
push 0x58ae7d
lea eax, [esp + 8]
push eax
call fcn.004deac0
add esp, 0xc
movzx eax, byte [esp]
test al, 1
je 0x435434
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x43543a
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push dword [esp + 0x28]
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x43545a
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x435045
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
lea ebx, [esp + 0x10]
mov ecx, ebx
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x3c4
push 0x58acc4
call fcn.004ddb50
mov ecx, ebx
call fcn.004ddb40
mov ecx, dword [ebp + 8]
mov ebx, eax
test byte [ecx], 1
je 0x4354b8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
cmp dword [ebp + 0x10], 1
mov eax, 0x58aebb
mov ecx, 0x58aebf
cmovne ecx, eax
mov eax, esp
push edi
push ecx
push dword [ebp + 0xc]
push dword [esp + 0x18]
push str.host__s_port__d_type__s___fd__d
push eax
call fcn.004deac0
add esp, 0x18
movzx eax, byte [esp]
test al, 1
je 0x4354f4
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x4354fa
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push ebx
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x435517
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
xor esi, esi
jmp 0x43524c
mov edi, dword [edi + 8]
push edi
push 0x58ae7d
lea eax, [esp + 8]
push eax
call fcn.004deac0
add esp, 0xc
movzx eax, byte [esp]
test al, 1
je 0x435557
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x43555d
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push dword [esp + 0x2c]
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x43557d
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x43514d
mov edi, dword [edi + 8]
push edi
lea ecx, [esp + 0x34]
push ecx
push dword [esp + 0x14]
push eax
push str.could_not_connect_to__s:_s:_s:__s
lea eax, [esp + 0x14]
push eax
call fcn.004deac0
add esp, 0x18
movzx eax, byte [esp]
test al, 1
je 0x4355cd
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x4355d3
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push dword [esp + 0x2c]
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x4355f3
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x2c]
mov esi, ebx
mov dword [eax], ecx
jmp 0x435200