Function at 0x412308
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, 0x4f01fc
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
push esi
lea edi, [ebp - 0x140]
mov esi, 0x4f00f8
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
pop esi
test ebx, ebx
mov dword [ebp - 0x28], 0xa
mov dword [esi], 0xffffffff
jne 0x41236b
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4126d6
mov cl, byte [ebx]
test cl, cl
jne 0x412382
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4126d6
call fcn.004120fc
mov cl, byte [0x4f00dc]
test cl, cl
je 0x4123b5
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5e5b8a
call fcn.00403134
add esp, 0x20
xor eax, eax
mov dl, byte [ebx + eax]
mov byte [ebp + eax - 0x140], dl
movsx ecx, dl
cmp ecx, 0x3a
jne 0x4123e5
mov byte [ebp + eax - 0x140], 0
lea eax, [eax + ebx + 1]
push eax
call fcn.004db08c
pop ecx
test eax, eax
je 0x4123ef
mov dword [ebp + 0x10], eax
jmp 0x4123ef
mov dl, byte [ebx + eax]
test dl, dl
je 0x4123ef
inc eax
jmp 0x4123b7
mov dword [ebp - 0x28], 0x14
lea ecx, [ebp - 0x140]
push ecx
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
je 0x41243d
mov al, byte [0x4f00dc]
test al, al
je 0x412436
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5e5b96
call fcn.00403134
add esp, 0x20
mov bl, 1
jmp 0x412564
mov al, byte [0x4f00dc]
test al, al
je 0x41246a
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5e5ba6
call fcn.00403134
add esp, 0x20
mov dword [ebp - 0x28], 0x1e
mov bl, 1
lea eax, [ebp - 0x140]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x4124a8
push 2
call fcn.00411f84
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4126d6
mov dword [ebp - 0x28], 0x32
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x38], ecx
mov al, byte [ebp - 0x38]
cmp al, 0x7f
jne 0x4124f8
mov dl, byte [ebp - 0x37]
test dl, dl
jne 0x4124f8
mov cl, byte [ebp - 0x36]
cmp cl, 0x35
jne 0x4124f8
mov al, byte [ebp - 0x35]
cmp al, 0x35
jne 0x4124f8
push 2
call fcn.00411f84
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4126d6
mov dword [ebp - 0x28], 0x46
xor ecx, ecx
xor eax, eax
mov cl, byte [ebp - 0x35]
xor edx, edx
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x36]
push eax
lea eax, [ebp - 0x140]
mov dl, byte [ebp - 0x37]
push edx
mov cl, byte [ebp - 0x38]
push ecx
push 0x5e5bb6
push eax
call fcn.004d75f8
add esp, 0x18
lea edx, [ebp - 0x140]
mov dword [ebp - 0x28], 0x5a
push edx
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x412564
push 2
call fcn.00411f84
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4126d6
mov dword [ebp - 0x28], 0x6e
mov cl, byte [0x4f00dc]
test cl, cl
je 0x412599
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5e5bc2
call fcn.00403134
add esp, 0x20
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4125c6
push 3
call fcn.00411f84
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4126d6
mov dword [ebp - 0x28], 0x78
mov cl, byte [0x4f00dc]
test cl, cl
je 0x4125fb
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5e5bcb
call fcn.00403134
add esp, 0x20
mov dword [ebp - 0x28], 0x8c
test bl, bl
jne 0x412615
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
jmp 0x412618
mov dword [ebp - 0x38], edi
mov word [ebp - 0x3c], 2
mov dx, word [ebp + 0x10]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x3a], ax
mov cl, byte [0x4f00dc]
test cl, cl
je 0x41265a
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5e5bda
call fcn.00403134
add esp, 0x20
mov dword [ebp - 0x28], 0x96
push 0x10
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [esi]
push edx
call sub.WSOCK32.dll_connect
inc eax
jne 0x412696
push 4
call fcn.00411f84
pop ecx
mov ecx, dword [esi]
push ecx
call sub.WSOCK32.dll_closesocket
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4126d6
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4126d6
mov esp, ebp
mov edi, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x144]
pop ebp
ret