Function at 0x4034f5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x934]
sub esp, 0x9b4
mov eax, dword [0x42b094]
xor eax, ebp
mov dword [ebp + 0x930], eax
mov eax, dword [ebp + 0x93c]
push ebx
push esi
push edi
mov dword [ebp - 0x7c], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x130], ax
lea eax, [ebp + 0x132]
mov edi, ecx
push eax
mov dword [ebp - 0x80], edi
mov esi, edx
call fcn.004125c0
add esp, 0xc
lea ebx, [ebp + 0x130]
test esi, esi
je 0x40354d
mov ebx, esi
xor eax, eax
and dword [ebp - 0x78], eax
and dword [ebp - 0x74], eax
mov word [ebx], ax
lea eax, [ebp - 0x70]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4035b9
mov eax, 0x426c2c
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x403574
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x403586
dec ebx
mov esi, 0x426c4c
dec ebx
movsd dword es:[edi], dword [esi]
mov edi, ebx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x40359b
push 0xf
pop ecx
mov esi, 0x426c50
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
jmp 0x403696
push 6
push 1
push 2
pop esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x40360b
mov eax, 0x426c2c
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, esi
test cx, cx
jne 0x4035d7
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
add edi, esi
test ax, ax
jne 0x4035e9
dec ebx
mov esi, 0x426c4c
dec ebx
movsd dword es:[edi], dword [esi]
mov edi, ebx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x4035fe
jmp 0x4035a6
push dword [ebp - 0x7c]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4036b0
push dword [ebp - 0x7c]
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [ebp - 0x78], eax
push 4
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x4036b0
mov eax, 0x426c2c
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, esi
test cx, cx
jne 0x403642
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
add edi, esi
test ax, ax
jne 0x403654
dec ebx
mov esi, 0x426c4c
dec ebx
movsd dword es:[edi], dword [esi]
mov edi, ebx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x403669
push 0xf
pop ecx
mov esi, 0x426c50
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x80]
mov eax, dword [esi]
test eax, eax
je 0x403693
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], 0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp + 0x930]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004105a8
add ebp, 0x934
leave
ret 8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push dword [ebp + 0x940]
mov dword [ebp + 0x124], eax
mov eax, esi
mov word [ebp + 0x120], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + 0x122], ax
push 0x10
lea eax, [ebp + 0x120]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40372e
mov eax, 0x426c90
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, esi
test cx, cx
jne 0x4036f7
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
add edi, esi
test ax, ax
jne 0x403709
dec ebx
mov esi, 0x426c4c
dec ebx
movsd dword es:[edi], dword [esi]
mov edi, ebx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x40371e
jmp 0x403674
mov dword [ebp - 0x74], 1
jmp 0x403693