Function at 0x433e70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7231
mov eax, dword fs:[0]
push eax
mov eax, 0x79e4
call fcn.0057c630
mov eax, dword [0x630490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x79a4], edx
mov ebx, ecx
mov dword [ebp - 0x799c], ebx
mov dword [ebp - 0x79ec], 0
lea ecx, [ebp - 0x7888]
mov dword [ebp - 4], 1
call fcn.0040a1b0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x79a0], 0x50
xorps xmm0, xmm0
lea eax, [ebp + 8]
movlpd qword [ebp - 0x79e8], xmm0
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
movlpd qword [ebp - 0x79e0], xmm0
mov byte [ecx], 0
call fcn.00404770
lea edx, [ebp - 0x79a0]
lea ecx, [ebp - 0x7840]
call fcn.00434cd0
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7828]
push 0
push 0x603ccb
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
call fcn.00404ba0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7840]
mov esi, dword [ebp - 0x782c]
mov edx, 0x603cea
mov edi, dword [ebp - 0x7840]
cmp esi, 0x10
push 0
cmovae ecx, edi
call fcn.00405e80
add esp, 4
test eax, eax
jne 0x433f8f
cmp dword [ebp - 0x7830], eax
setne al
test eax, eax
sete al
test al, al
jne 0x434b82
cmp word [ebp - 0x79a0], 0
je 0x434b82
cmp esi, 0x10
lea ecx, [ebp - 0x7840]
cmovae ecx, edi
call fcn.004352b0
test al, al
je 0x433fd8
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7840]
push eax
lea ecx, [ebp - 0x7828]
call fcn.00404770
jmp 0x434080
xorps xmm0, xmm0
mov dword [ebp - 0x78a8], 0
movq qword [ebp - 0x78b0], xmm0
mov dword [ebp - 0x78b0], 0
mov dword [ebp - 0x78ac], 0
mov dword [ebp - 0x78a8], 0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
lea eax, [ebp - 0x7840]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404770
lea ecx, [ebp - 0x78b0]
call fcn.00435060
mov esi, dword [ebp - 0x78b0]
add esp, 0x18
test al, al
je 0x434063
lea eax, [ebp - 0x7828]
cmp eax, esi
je 0x434063
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00404770
mov byte [ebp - 4], 4
test esi, esi
je 0x434080
push dword [ebp - 0x78ac]
push esi
call fcn.00406d40
push esi
call fcn.0044f301
add esp, 4
mov edx, 0x603ceb
lea ecx, [ebp - 0x7828]
call fcn.00406d80
test al, al
je 0x43419b
push 0x604b8c
lea edx, [ebp - 0x7840]
mov byte [ebp - 0x7888], 0
lea ecx, [ebp - 0x78bc]
call fcn.00409930
mov esi, eax
add esp, 4
lea eax, [ebp - 0x7884]
cmp eax, esi
je 0x434102
cmp dword [ebp - 0x7870], 0x10
jb 0x4340db
push dword [ebp - 0x7884]
call fcn.0044f301
add esp, 4
push esi
lea ecx, [ebp - 0x7884]
mov dword [ebp - 0x7870], 0xf
mov dword [ebp - 0x7874], 0
mov byte [ebp - 0x7884], 0
call fcn.00404560
cmp dword [ebp - 0x78a8], 0x10
jb 0x434119
push dword [ebp - 0x78bc]
call fcn.0044f301
add esp, 4
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413130
cmp dword [ebp - 0x7814], 0x10
jb 0x43413e
push dword [ebp - 0x7828]
call fcn.0044f301
add esp, 4
cmp dword [ebp - 0x782c], 0x10
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
jb 0x434170
push dword [ebp - 0x7840]
call fcn.0044f301
add esp, 4
lea ecx, [ebp - 0x7888]
mov dword [ebp - 0x782c], 0xf
mov dword [ebp - 0x7830], 0
mov byte [ebp - 0x7840], 0
call fcn.004066d0
jmp 0x434c71
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
push 4
lea eax, [ebp - 0x78a4]
mov dword [ebp - 0x7994], edi
push eax
push 0x1005
push 0xffff
push edi
mov dword [ebp - 0x78a4], 0x1388
call esi
push 4
lea eax, [ebp - 0x78a4]
push eax
push 0x1006
push 0xffff
push edi
call esi
mov esi, dword [ebp - 0x79a0]
xorps xmm0, xmm0
mov eax, 2
movq qword [ebp - 0x78e2], xmm0
push esi
mov dword [ebp - 0x78da], 0
mov word [ebp - 0x78d6], 0
mov word [ebp - 0x78e4], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x7814], 0x10
mov word [ebp - 0x78e2], ax
lea eax, [ebp - 0x7828]
cmovae eax, dword [ebp - 0x7828]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x78e0], eax
lea eax, [ebp - 0x78e4]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x434305
mov byte [ebp - 0x7888], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x79bc]
call fcn.004185f0
push eax
mov edx, 0x604b9c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x78bc]
call fcn.00405a10
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409810
lea ecx, [ebp - 0x78bc]
call fcn.00404500
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 4
call fcn.00404500
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413130
lea ecx, [ebp - 0x7828]
call fcn.00404500
lea ecx, [ebp - 0x7840]
call fcn.00404500
lea ecx, [ebp - 0x7888]
call fcn.004066d0
lea ecx, [ebp + 8]
call fcn.00404500
lea ecx, [ebp + 0x20]
call fcn.00404500
jmp 0x434ca5
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7840]
mov dword [ebp - 0x78c0], 0xf
push eax
lea ecx, [ebp - 0x78d4]
mov dword [ebp - 0x78c4], 0
mov byte [ebp - 0x78d4], 0
call fcn.00404770
mov byte [ebp - 4], 7
cmp si, 0x50
je 0x4343a7
movzx edx, si
lea ecx, [ebp - 0x79d4]
call fcn.00405780
mov esi, eax
push 0x604bb0
lea edx, [ebp - 0x78d4]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x78bc]
call fcn.00409930
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x79bc]
call fcn.00405b40
add esp, 4
lea ecx, [ebp - 0x79bc]
call fcn.00404500
lea ecx, [ebp - 0x78bc]
call fcn.00404500
lea ecx, [ebp - 0x79d4]
mov byte [ebp - 4], 7
call fcn.00404500
push 0x603d0a
lea ecx, [ebp - 0x78a0]
call fcn.00404430
push 0x604bb4
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404770
lea ecx, [ebp - 0x78bc]
call fcn.00433cf0
push eax
mov edx, 0x604bc0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x79bc]
call fcn.00405a10
add esp, 0x1c
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x79d4]
call fcn.00405aa0
add esp, 4
lea ecx, [ebp - 0x78a0]
push eax
call fcn.00409810
lea ecx, [ebp - 0x79d4]
call fcn.00404500
lea ecx, [ebp - 0x79bc]
call fcn.00404500
lea ecx, [ebp - 0x78bc]
mov byte [ebp - 4], 0xa
call fcn.00404500
lea eax, [ebp - 0x78d4]
mov edx, 0x604bcc
push eax
lea ecx, [ebp - 0x79bc]
call fcn.00408140
add esp, 4
push 0x604bc8
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x79d4]
call fcn.00405aa0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x78a0]
mov byte [ebp - 4], 0xe
call fcn.004045c0
lea ecx, [ebp - 0x79d4]
call fcn.00404500
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0xa
call fcn.00404500
push 0x604bd4
lea ecx, [ebp - 0x78a0]
call fcn.00408230
push 0x604be8
lea ecx, [ebp - 0x78a0]
call fcn.00408230
push 0x604c20
lea ecx, [ebp - 0x78a0]
call fcn.00408230
push 0x604c78
lea ecx, [ebp - 0x78a0]
call fcn.00408230
push 0x604c04
lea ecx, [ebp - 0x78a0]
call fcn.00408230
push 0x604cf4
lea ecx, [ebp - 0x78a0]
call fcn.00408230
push 0x604d18
lea ecx, [ebp - 0x78a0]
call fcn.00408230
cmp dword [ebp - 0x788c], 0x10
lea eax, [ebp - 0x78a0]
push 0
push dword [ebp - 0x7890]
cmovae eax, dword [ebp - 0x78a0]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x4345cf
mov byte [ebp - 0x7888], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x79bc]
call fcn.004185f0
push eax
mov edx, 0x604d1c
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x79d4]
call fcn.00405a10
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409810
lea ecx, [ebp - 0x79d4]
call fcn.00404500
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0xa
call fcn.00404500
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413130
lea ecx, [ebp - 0x78a0]
call fcn.00404500
lea ecx, [ebp - 0x78d4]
call fcn.00404500
jmp 0x4342cf
push 0x7800
lea eax, [ebp - 0x7810]
push 0
push eax
call fcn.0057b5c0
add esp, 0xc
lea eax, [ebp - 0x7990]
xor edi, edi
push 0xa8
push edi
push eax
call fcn.0057b5c0
add esp, 8
lea ecx, [ebp - 0x7990]
call fcn.00432ad0
push edi
push 0x7800
lea eax, [ebp - 0x7810]
mov byte [ebp - 4], 0x10
push eax
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x434b41
mov ebx, dword [ebp - 0x79dc]
mov esi, dword [ebp - 0x79e0]
jmp 0x434640
add edi, eax
lea eax, [ebp - 0x7810]
push str._r_n_r_n
push eax
call fcn.0057a380
add esp, 8
mov dword [ebp - 0x79a0], eax
test eax, eax
je 0x434787
lea eax, [ebp - 0x7810]
push 0x604d44
push eax
call fcn.0057a380
add esp, 8
test eax, eax
je 0x4349df
cmp eax, dword [ebp - 0x79a0]
ja 0x43494d
add eax, 0xf
push eax
call fcn.0057a600
mov ebx, edx
add esp, 4
mov esi, eax
test ebx, ebx
jl 0x4348bb
jg 0x4346ae
test esi, esi
je 0x4348bb
mov eax, dword [ebp - 0x79a4]
test eax, eax
je 0x4346c3
push 0
push 0
push ebx
push esi
call eax
add esp, 0x10
mov eax, dword [ebp - 0x79a0]
lea ecx, [ebp - 0x7810]
sub eax, ecx
add eax, 4
cmp edi, eax
jle 0x434793
sub edi, eax
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov eax, edi
cdq
cmovae ecx, dword [ebp + 0x20]
mov edi, eax
push ecx
push 0x22
push ecx
lea ecx, [ebp - 0x7990]
mov dword [ebp - 0x7998], edx
call fcn.00432c70
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x4347ce
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604dac
lea ecx, [ebp - 0x79bc]
call fcn.00408140
add esp, 4
mov byte [ebp - 4], 0x11
push 0x604da4
mov edx, eax
lea ecx, [ebp - 0x79d4]
call fcn.00405aa0
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409810
lea ecx, [ebp - 0x79d4]
call fcn.00404500
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0x10
call fcn.00404500
lea ecx, [ebp - 0x7990]
call fcn.00432cd0
jmp 0x434964
cmp edi, 0x7800
jge 0x434b31
push 0
mov eax, 0x7800
sub eax, edi
push eax
lea eax, [ebp - 0x7810]
add eax, edi
push eax
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x434640
mov ecx, dword [ebp - 0x79e4]
mov edi, dword [ebp - 0x79e8]
mov dword [ebp - 0x7998], ecx
jmp 0x434847
push dword [ebp - 0x7998]
mov eax, dword [ebp - 0x79a0]
lea ecx, [ebp - 0x7990]
push edi
add eax, 4
push eax
call fcn.00431d80
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x434829
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604dc0
lea ecx, [ebp - 0x79bc]
call fcn.00408140
add esp, 4
mov byte [ebp - 4], 0x12
push 0x604db8
jmp 0x434741
mov edx, dword [ebp - 0x79a4]
test edx, edx
je 0x434841
push dword [ebp - 0x7998]
push edi
push ebx
push esi
call edx
add esp, 0x10
mov ecx, dword [ebp - 0x7998]
cmp dword [ebp - 0x79a0], 0
je 0x434b3b
mov eax, edi
or eax, ecx
jne 0x4349e9
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x7990]
push 0x22
push eax
call fcn.00432c70
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x4349e9
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604e48
lea ecx, [ebp - 0x79bc]
call fcn.00408140
add esp, 4
mov byte [ebp - 4], 0x13
push 0x604e40
jmp 0x434741
push 0x604d7c
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.004059d0
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x799c]
lea eax, [ebp - 0x7888]
push eax
call fcn.00413130
lea ecx, [ebp - 0x7990]
call fcn.004308f0
lea ecx, [ebp - 0x78a0]
call fcn.00404500
lea ecx, [ebp - 0x78d4]
call fcn.00404500
lea ecx, [ebp - 0x7828]
call fcn.00404500
lea ecx, [ebp - 0x7840]
call fcn.00404500
lea ecx, [ebp - 0x7888]
call fcn.004066d0
lea ecx, [ebp + 8]
call fcn.00404500
lea ecx, [ebp + 0x20]
call fcn.00404500
mov eax, dword [ebp - 0x799c]
jmp 0x434ca7
push 0x604d54
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.004059d0
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x799c]
lea eax, [ebp - 0x7888]
push eax
call fcn.00413130
lea ecx, [ebp - 0x7990]
call fcn.004308f0
lea ecx, [ebp - 0x78a0]
call fcn.00404500
lea ecx, [ebp - 0x78d4]
call fcn.00404500
lea ecx, [ebp - 0x7828]
call fcn.00404500
lea ecx, [ebp - 0x7840]
call fcn.00404500
lea ecx, [ebp - 0x7888]
call fcn.004066d0
lea ecx, [ebp + 8]
call fcn.00404500
lea ecx, [ebp + 0x20]
call fcn.00404500
mov eax, dword [ebp - 0x799c]
jmp 0x434ca7
push 0x604dc8
jmp 0x434952
push 0
push 0x7800
lea eax, [ebp - 0x7810]
push eax
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x434a9c
jmp 0x434a10
cdq
mov ecx, eax
mov eax, dword [ebp - 0x7998]
add edi, ecx
adc eax, edx
mov dword [ebp - 0x7998], eax
cmp eax, ebx
jg 0x434aa2
jl 0x434a2d
cmp edi, esi
ja 0x434aa2
push edx
push ecx
lea eax, [ebp - 0x7810]
push eax
lea ecx, [ebp - 0x7990]
call fcn.00431d80
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
jne 0x434aba
mov eax, dword [ebp - 0x79a4]
test eax, eax
je 0x434a6c
push dword [ebp - 0x7998]
push edi
push ebx
push esi
call eax
add esp, 0x10
cmp edi, esi
jne 0x434a7a
mov eax, dword [ebp - 0x7998]
cmp ebx, eax
je 0x434aa8
push 0
push 0x7800
lea eax, [ebp - 0x7810]
push eax
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x434a10
mov eax, dword [ebp - 0x7998]
cmp ebx, eax
jl 0x434ae6
jg 0x434aac
cmp esi, edi
jbe 0x434ae6
mov byte [ebp - 0x7888], 0
push 0x604e64
jmp 0x434b0a
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604e5c
lea ecx, [ebp - 0x79bc]
call fcn.00408140
add esp, 4
mov byte [ebp - 4], 0x14
push 0x604e54
jmp 0x434741
cmp eax, ebx
jl 0x434afe
jg 0x434af0
cmp edi, esi
jbe 0x434afe
mov byte [ebp - 0x7888], 0
push 0x604e8c
jmp 0x434b0a
mov byte [ebp - 0x7888], 1
push 0x604eb4
lea ecx, [ebp - 0x7884]
call fcn.004059d0
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x7990]
call fcn.00432cd0
jmp 0x434970
push 0x604de8
jmp 0x434952
mov ebx, dword [ebp - 0x799c]
push 0x604e14
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.004059d0
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413130
lea ecx, [ebp - 0x7990]
call fcn.004308f0
jmp 0x4345b4
push 7
push 0x604b84
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00404ba0
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413130
cmp dword [ebp - 0x7814], 0x10
jb 0x434bc0
push dword [ebp - 0x7828]
call fcn.0044f301
add esp, 4
cmp dword [ebp - 0x782c], 0x10
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
jb 0x434bf2
push dword [ebp - 0x7840]
call fcn.0044f301
add esp, 4
cmp dword [ebp - 0x7858], 0x10
mov dword [ebp - 0x782c], 0xf
mov dword [ebp - 0x7830], 0
mov byte [ebp - 0x7840], 0
jb 0x434c24
push dword [ebp - 0x786c]
call fcn.0044f301
add esp, 4
cmp dword [ebp - 0x7870], 0x10
mov dword [ebp - 0x7858], 0xf
mov dword [ebp - 0x785c], 0
mov byte [ebp - 0x786c], 0
jb 0x434c56
push dword [ebp - 0x7884]
call fcn.0044f301
add esp, 4
mov dword [ebp - 0x7870], 0xf
mov dword [ebp - 0x7874], 0
mov byte [ebp - 0x7884], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x434c82
push dword [ebp + 8]
call fcn.0044f301
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov byte [ebp + 8], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
jb 0x434ca5
push dword [ebp + 0x20]
call fcn.0044f301
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005771f5
mov esp, ebp
pop ebp
ret