Function at 0x434610
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 0x5b76e1
mov eax, dword fs:[0]
push eax
mov eax, 0x79e4
call fcn.0057c9c0
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.0040a1f0
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.004047b0
lea edx, [ebp - 0x79a0]
lea ecx, [ebp - 0x7840]
call fcn.00435470
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7828]
push 0
push 0x603ce2
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
call fcn.00404be0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7840]
mov esi, dword [ebp - 0x782c]
mov edx, 0x603ce3
mov edi, dword [ebp - 0x7840]
cmp esi, 0x10
push 0
cmovae ecx, edi
call fcn.00405ec0
add esp, 4
test eax, eax
jne 0x43472f
cmp dword [ebp - 0x7830], eax
setne al
test eax, eax
sete al
test al, al
jne 0x435322
cmp word [ebp - 0x79a0], 0
je 0x435322
cmp esi, 0x10
lea ecx, [ebp - 0x7840]
cmovae ecx, edi
call fcn.00435a50
test al, al
je 0x434778
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7840]
push eax
lea ecx, [ebp - 0x7828]
call fcn.004047b0
jmp 0x434820
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.004047b0
lea ecx, [ebp - 0x78b0]
call fcn.00435800
mov esi, dword [ebp - 0x78b0]
add esp, 0x18
test al, al
je 0x434803
lea eax, [ebp - 0x7828]
cmp eax, esi
je 0x434803
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004047b0
mov byte [ebp - 4], 4
test esi, esi
je 0x434820
push dword [ebp - 0x78ac]
push esi
call fcn.00406d80
push esi
call fcn.0044f658
add esp, 4
mov edx, 0x603d02
lea ecx, [ebp - 0x7828]
call fcn.00406dc0
test al, al
je 0x43493b
push 0x604b8c
lea edx, [ebp - 0x7840]
mov byte [ebp - 0x7888], 0
lea ecx, [ebp - 0x78bc]
call fcn.00409970
mov esi, eax
add esp, 4
lea eax, [ebp - 0x7884]
cmp eax, esi
je 0x4348a2
cmp dword [ebp - 0x7870], 0x10
jb 0x43487b
push dword [ebp - 0x7884]
call fcn.0044f658
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.004045a0
cmp dword [ebp - 0x78a8], 0x10
jb 0x4348b9
push dword [ebp - 0x78bc]
call fcn.0044f658
add esp, 4
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
cmp dword [ebp - 0x7814], 0x10
jb 0x4348de
push dword [ebp - 0x7828]
call fcn.0044f658
add esp, 4
cmp dword [ebp - 0x782c], 0x10
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
jb 0x434910
push dword [ebp - 0x7840]
call fcn.0044f658
add esp, 4
lea ecx, [ebp - 0x7888]
mov dword [ebp - 0x782c], 0xf
mov dword [ebp - 0x7830], 0
mov byte [ebp - 0x7840], 0
call fcn.00406710
jmp 0x435411
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 0x434aa5
mov byte [ebp - 0x7888], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x79bc]
call fcn.004187f0
push eax
mov edx, 0x604b9c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x78bc]
call fcn.00405a50
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409850
lea ecx, [ebp - 0x78bc]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 4
call fcn.00404540
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
lea ecx, [ebp - 0x7828]
call fcn.00404540
lea ecx, [ebp - 0x7840]
call fcn.00404540
lea ecx, [ebp - 0x7888]
call fcn.00406710
lea ecx, [ebp + 8]
call fcn.00404540
lea ecx, [ebp + 0x20]
call fcn.00404540
jmp 0x435445
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.004047b0
mov byte [ebp - 4], 7
cmp si, 0x50
je 0x434b47
movzx edx, si
lea ecx, [ebp - 0x79d4]
call fcn.004057c0
mov esi, eax
push 0x604bb0
lea edx, [ebp - 0x78d4]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x78bc]
call fcn.00409970
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x79bc]
call fcn.00405b80
add esp, 4
lea ecx, [ebp - 0x79bc]
call fcn.00404540
lea ecx, [ebp - 0x78bc]
call fcn.00404540
lea ecx, [ebp - 0x79d4]
mov byte [ebp - 4], 7
call fcn.00404540
push 0x603d03
lea ecx, [ebp - 0x78a0]
call fcn.00404470
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.004047b0
lea ecx, [ebp - 0x78bc]
call fcn.00434490
push eax
mov edx, str.GET
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x79bc]
call fcn.00405a50
add esp, 0x1c
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x79d4]
call fcn.00405ae0
add esp, 4
lea ecx, [ebp - 0x78a0]
push eax
call fcn.00409850
lea ecx, [ebp - 0x79d4]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
call fcn.00404540
lea ecx, [ebp - 0x78bc]
mov byte [ebp - 4], 0xa
call fcn.00404540
lea eax, [ebp - 0x78d4]
mov edx, 0x604bcc
push eax
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
push 0x604bc8
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x79d4]
call fcn.00405ae0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x78a0]
mov byte [ebp - 4], 0xe
call fcn.00404600
lea ecx, [ebp - 0x79d4]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0xa
call fcn.00404540
push 0x604bd4
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604be8
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604c20
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604c78
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604c04
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604cf4
lea ecx, [ebp - 0x78a0]
call fcn.00408270
push 0x604d18
lea ecx, [ebp - 0x78a0]
call fcn.00408270
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 0x434d6f
mov byte [ebp - 0x7888], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x79bc]
call fcn.004187f0
push eax
mov edx, 0x604d1c
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x79d4]
call fcn.00405a50
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409850
lea ecx, [ebp - 0x79d4]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0xa
call fcn.00404540
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
lea ecx, [ebp - 0x78a0]
call fcn.00404540
lea ecx, [ebp - 0x78d4]
call fcn.00404540
jmp 0x434a6f
push 0x7800
lea eax, [ebp - 0x7810]
push 0
push eax
call fcn.0057b950
add esp, 0xc
lea eax, [ebp - 0x7990]
xor edi, edi
push 0xa8
push edi
push eax
call fcn.0057b950
add esp, 8
lea ecx, [ebp - 0x7990]
call fcn.00433270
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 0x4352e1
mov ebx, dword [ebp - 0x79dc]
mov esi, dword [ebp - 0x79e0]
jmp 0x434de0
add edi, eax
lea eax, [ebp - 0x7810]
push str._r_n_r_n
push eax
call fcn.0057a710
add esp, 8
mov dword [ebp - 0x79a0], eax
test eax, eax
je 0x434f27
lea eax, [ebp - 0x7810]
push 0x604d44
push eax
call fcn.0057a710
add esp, 8
test eax, eax
je 0x43517f
cmp eax, dword [ebp - 0x79a0]
ja 0x4350ed
add eax, 0xf
push eax
call fcn.0057a990
mov ebx, edx
add esp, 4
mov esi, eax
test ebx, ebx
jl 0x43505b
jg 0x434e4e
test esi, esi
je 0x43505b
mov eax, dword [ebp - 0x79a4]
test eax, eax
je 0x434e63
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 0x434f33
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.00433410
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x434f6e
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604dac
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
mov byte [ebp - 4], 0x11
push 0x604da4
mov edx, eax
lea ecx, [ebp - 0x79d4]
call fcn.00405ae0
add esp, 4
lea ecx, [ebp - 0x7884]
push eax
call fcn.00409850
lea ecx, [ebp - 0x79d4]
call fcn.00404540
lea ecx, [ebp - 0x79bc]
mov byte [ebp - 4], 0x10
call fcn.00404540
lea ecx, [ebp - 0x7990]
call fcn.00433470
jmp 0x435104
cmp edi, 0x7800
jge 0x4352d1
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 0x434de0
mov ecx, dword [ebp - 0x79e4]
mov edi, dword [ebp - 0x79e8]
mov dword [ebp - 0x7998], ecx
jmp 0x434fe7
push dword [ebp - 0x7998]
mov eax, dword [ebp - 0x79a0]
lea ecx, [ebp - 0x7990]
push edi
add eax, 4
push eax
call fcn.00432520
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x434fc9
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604dc0
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
mov byte [ebp - 4], 0x12
push 0x604db8
jmp 0x434ee1
mov edx, dword [ebp - 0x79a4]
test edx, edx
je 0x434fe1
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 0x4352db
mov eax, edi
or eax, ecx
jne 0x435189
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.00433410
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
je 0x435189
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604e48
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
mov byte [ebp - 4], 0x13
push 0x604e40
jmp 0x434ee1
push 0x604d7c
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00405a10
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.00413320
lea ecx, [ebp - 0x7990]
call fcn.00431090
lea ecx, [ebp - 0x78a0]
call fcn.00404540
lea ecx, [ebp - 0x78d4]
call fcn.00404540
lea ecx, [ebp - 0x7828]
call fcn.00404540
lea ecx, [ebp - 0x7840]
call fcn.00404540
lea ecx, [ebp - 0x7888]
call fcn.00406710
lea ecx, [ebp + 8]
call fcn.00404540
lea ecx, [ebp + 0x20]
call fcn.00404540
mov eax, dword [ebp - 0x799c]
jmp 0x435447
push 0x604d54
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00405a10
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.00413320
lea ecx, [ebp - 0x7990]
call fcn.00431090
lea ecx, [ebp - 0x78a0]
call fcn.00404540
lea ecx, [ebp - 0x78d4]
call fcn.00404540
lea ecx, [ebp - 0x7828]
call fcn.00404540
lea ecx, [ebp - 0x7840]
call fcn.00404540
lea ecx, [ebp - 0x7888]
call fcn.00406710
lea ecx, [ebp + 8]
call fcn.00404540
lea ecx, [ebp + 0x20]
call fcn.00404540
mov eax, dword [ebp - 0x799c]
jmp 0x435447
push 0x604dc8
jmp 0x4350f2
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 0x43523c
jmp 0x4351b0
cdq
mov ecx, eax
mov eax, dword [ebp - 0x7998]
add edi, ecx
adc eax, edx
mov dword [ebp - 0x7998], eax
cmp eax, ebx
jg 0x435242
jl 0x4351cd
cmp edi, esi
ja 0x435242
push edx
push ecx
lea eax, [ebp - 0x7810]
push eax
lea ecx, [ebp - 0x7990]
call fcn.00432520
mov eax, dword [ebp - 0x7990]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x7984], 6
jne 0x43525a
mov eax, dword [ebp - 0x79a4]
test eax, eax
je 0x43520c
push dword [ebp - 0x7998]
push edi
push ebx
push esi
call eax
add esp, 0x10
cmp edi, esi
jne 0x43521a
mov eax, dword [ebp - 0x7998]
cmp ebx, eax
je 0x435248
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 0x4351b0
mov eax, dword [ebp - 0x7998]
cmp ebx, eax
jl 0x435286
jg 0x43524c
cmp esi, edi
jbe 0x435286
mov byte [ebp - 0x7888], 0
push 0x604e64
jmp 0x4352aa
lea eax, [ebp + 0x20]
mov byte [ebp - 0x7888], 0
push eax
mov edx, 0x604e5c
lea ecx, [ebp - 0x79bc]
call fcn.00408180
add esp, 4
mov byte [ebp - 4], 0x14
push 0x604e54
jmp 0x434ee1
cmp eax, ebx
jl 0x43529e
jg 0x435290
cmp edi, esi
jbe 0x43529e
mov byte [ebp - 0x7888], 0
push 0x604e8c
jmp 0x4352aa
mov byte [ebp - 0x7888], 1
push 0x604eb4
lea ecx, [ebp - 0x7884]
call fcn.00405a10
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x7990]
call fcn.00433470
jmp 0x435110
push 0x604de8
jmp 0x4350f2
mov ebx, dword [ebp - 0x799c]
push 0x604e14
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00405a10
push dword [ebp - 0x7994]
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
lea ecx, [ebp - 0x7990]
call fcn.00431090
jmp 0x434d54
push 7
push 0x604b84
lea ecx, [ebp - 0x7884]
mov byte [ebp - 0x7888], 0
call fcn.00404be0
lea eax, [ebp - 0x7888]
mov ecx, ebx
push eax
call fcn.00413320
cmp dword [ebp - 0x7814], 0x10
jb 0x435360
push dword [ebp - 0x7828]
call fcn.0044f658
add esp, 4
cmp dword [ebp - 0x782c], 0x10
mov dword [ebp - 0x7814], 0xf
mov dword [ebp - 0x7818], 0
mov byte [ebp - 0x7828], 0
jb 0x435392
push dword [ebp - 0x7840]
call fcn.0044f658
add esp, 4
cmp dword [ebp - 0x7858], 0x10
mov dword [ebp - 0x782c], 0xf
mov dword [ebp - 0x7830], 0
mov byte [ebp - 0x7840], 0
jb 0x4353c4
push dword [ebp - 0x786c]
call fcn.0044f658
add esp, 4
cmp dword [ebp - 0x7870], 0x10
mov dword [ebp - 0x7858], 0xf
mov dword [ebp - 0x785c], 0
mov byte [ebp - 0x786c], 0
jb 0x4353f6
push dword [ebp - 0x7884]
call fcn.0044f658
add esp, 4
mov dword [ebp - 0x7870], 0xf
mov dword [ebp - 0x7874], 0
mov byte [ebp - 0x7884], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x435422
push dword [ebp + 8]
call fcn.0044f658
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov byte [ebp + 8], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
jb 0x435445
push dword [ebp + 0x20]
call fcn.0044f658
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.00577543
mov esp, ebp
pop ebp
ret