Function at 0x427890
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x495993
mov eax, dword fs:[0]
push eax
mov eax, 0x131c
call fcn.00465940
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x1318], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x1330]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1340]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x1338], ebx
xor edx, edx
mov eax, ecx
mov dword [esp + 0x2a0], 7
mov dword [esp + 0x29c], ebx
mov word [esp + 0x28c], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x427904
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x290]
call fcn.00405e40
mov byte [esp + 0x1338], 1
lea esp, [esp]
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x290]
lea esi, [edi + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x28], ebx
mov dword [edi + 0x7c], 0xffffffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
call fcn.00406060
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x134c]
push ecx
lea ebp, [edi + 0x30]
mov ecx, ebp
call fcn.00406060
cmp dword [edi + 0x44], ebx
jne 0x427a26
mov ebx, 1
mov eax, esi
call fcn.00429ee0
mov edi, eax
cmp edi, 0xffffffff
je 0x427a20
lea edx, [edi + 1]
mov ecx, esi
lea eax, [esp + 0x250]
call fcn.00433160
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x1344], 2
call fcn.00406060
mov byte [esp + 0x1338], bl
mov ebx, 8
cmp dword [esp + 0x268], ebx
jb 0x4279db
mov edx, dword [esp + 0x254]
push edx
call fcn.00442458
add esp, 4
mov ecx, edi
mov edx, esi
lea eax, [esp + 0x250]
call fcn.00433100
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [esp + 0x1344], 3
call fcn.00406060
mov byte [esp + 0x1338], 1
cmp dword [esp + 0x268], ebx
jb 0x427a20
mov eax, dword [esp + 0x254]
push eax
call fcn.00442458
add esp, 4
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [edi + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x427a42
mov dword [esp + 0x1c], 1
jmp 0x428928
mov eax, 7
xor edx, edx
mov dword [esp + 0x24c], eax
mov dword [esp + 0x248], ebx
mov word [esp + 0x238], dx
xor ecx, ecx
mov dword [esp + 0x188], eax
mov dword [esp + 0x184], ebx
mov word [esp + 0x174], cx
mov dword [esp + 0x1a4], eax
mov dword [esp + 0x1a0], ebx
mov word [esp + 0x190], dx
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x23c]
push edx
lea edx, [esp + 0x58]
lea edi, [esp + 0x4c]
mov ecx, esi
mov byte [esp + 0x1344], 6
call fcn.00427740
mov dword [esp + 0x2c4], 0xffffffff
cmp byte [0x4bef10], bl
jne 0x427adf
call fcn.004338e0
test al, al
je 0x427adf
mov byte [0x4bef10], 1
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1338], 7
mov ecx, dword [eax + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push ecx
call edi
test eax, eax
jne 0x427b9e
mov esi, 8
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x1a4], esi
jb 0x427b26
mov edx, dword [esp + 0x190]
push edx
call fcn.00442458
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x1a4], edi
mov dword [esp + 0x1a0], ebx
mov word [esp + 0x190], ax
cmp dword [esp + 0x188], esi
jb 0x427b5c
mov ecx, dword [esp + 0x174]
push ecx
call fcn.00442458
add esp, 4
xor edx, edx
mov byte [esp + 0x1338], 1
mov dword [esp + 0x188], edi
mov dword [esp + 0x184], ebx
mov word [esp + 0x174], dx
cmp dword [esp + 0x24c], esi
jb 0x428928
mov eax, dword [esp + 0x238]
push eax
call fcn.00442458
add esp, 4
jmp 0x428928
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x427bca
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._connectAndSendData_:_socket_error__d.__r_n
call fcn.00461b30
add esp, 8
jmp 0x428874
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
push ebx
push ecx
call edi
test eax, eax
jne 0x427c73
mov dword [esp + 0x1c], 1
mov esi, 8
cmp dword [esp + 0x1a4], esi
jb 0x427c03
mov edx, dword [esp + 0x190]
push edx
call fcn.00442458
add esp, 4
xor eax, eax
mov edi, 7
mov word [esp + 0x190], ax
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x1a4], edi
cmp dword [esp + 0x188], esi
jb 0x427c39
mov ecx, dword [esp + 0x174]
push ecx
call fcn.00442458
add esp, 4
xor edx, edx
mov byte [esp + 0x1338], 1
mov dword [esp + 0x188], edi
mov dword [esp + 0x184], ebx
mov word [esp + 0x174], dx
cmp dword [esp + 0x24c], esi
jb 0x428901
mov eax, dword [esp + 0x238]
push eax
jmp 0x4288f9
mov ecx, esi
lea esi, [esp + 0x1fc]
call fcn.00426740
lea ecx, [esp + 0x234]
lea esi, [esp + 0x1a8]
mov byte [esp + 0x1338], 8
call fcn.00426740
mov ecx, ebp
lea esi, [esp + 0x1e0]
mov byte [esp + 0x1338], 9
call fcn.00426740
mov eax, dword [esp + 0x1ac]
mov edi, 0x10
cmp dword [esp + 0x1c0], edi
jae 0x427cce
lea eax, [esp + 0x1ac]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
cmp esi, ebx
jne 0x427d10
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._gethostbyname_:_socket_error__d.__r_n
call fcn.00461b30
add esp, 8
cmp dword [esp + 0x1f8], edi
jb 0x427d06
mov ecx, dword [esp + 0x1e4]
push ecx
call fcn.00442458
add esp, 4
mov esi, 0xf
jmp 0x428803
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x427dc3
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x1f8], edi
jb 0x427d48
mov edx, dword [esp + 0x1e4]
push edx
call fcn.00442458
add esp, 4
mov esi, 0xf
mov byte [esp + 0x1e4], bl
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x1f8], esi
cmp dword [esp + 0x1c0], edi
jb 0x427d7b
mov eax, dword [esp + 0x1ac]
push eax
call fcn.00442458
add esp, 4
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1bc], ebx
mov byte [esp + 0x1ac], bl
cmp dword [esp + 0x214], edi
jb 0x427da9
mov ecx, dword [esp + 0x200]
push ecx
call fcn.00442458
add esp, 4
mov dword [esp + 0x214], esi
mov dword [esp + 0x210], ebx
mov byte [esp + 0x200], bl
jmp 0x427be5
mov ecx, 2
mov word [esp + 0x2a4], cx
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov esi, dword [esp + 0x40]
push esi
mov dword [esp + 0x2ac], ecx
mov dword [esp + 0x2b0], ebx
mov dword [esp + 0x2b4], ebx
call sub.WS2_32.dll_htons
mov ebp, dword [esp + 0x2c]
push edi
lea edx, [esp + 0x2a8]
push edx
push ebp
mov word [esp + 0x2b2], ax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x427e69
mov ebp, dword [esp + 0x1ac]
cmp dword [esp + 0x1c0], edi
jae 0x427e2d
lea ebp, [esp + 0x1ac]
call sub.WS2_32.dll_WSAGetLastError
push eax
movzx eax, si
push eax
push ebp
push str._connectAndSendData_:_connect__s:_d_error__d.__r_n
call fcn.00461b30
add esp, 0x10
cmp dword [esp + 0x1f8], edi
jb 0x427d06
mov ecx, dword [esp + 0x1e4]
push ecx
call fcn.00442458
mov esi, 0xf
jmp 0x428800
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x427ea8
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x1f8], edi
jb 0x427d06
mov ecx, dword [esp + 0x1e4]
push ecx
call fcn.00442458
mov esi, 0xf
jmp 0x428800
mov dword [esp + 0x230], 0xf
mov dword [esp + 0x22c], ebx
mov byte [esp + 0x21c], bl
mov byte [esp + 0x1338], 0xb
lea ecx, [esp + 0x218]
cmp dword [esp + 0x1f4], ebx
jne 0x427ee2
push 4
push str.GET
jmp 0x427ee9
push 5
push str.POST
call fcn.004023a0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x204]
push eax
lea ecx, [esp + 0x224]
call fcn.004027b0
push 0xb
push str._HTTP_1.1_r_n
lea ecx, [esp + 0x220]
call fcn.004023a0
push 6
push str.Host:
lea ecx, [esp + 0x220]
call fcn.004023a0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1b0]
push ecx
lea ecx, [esp + 0x224]
call fcn.004027b0
push 2
push 0x4a7468
lea ecx, [esp + 0x220]
call fcn.004023a0
push 0xd
push str.Accept:___r_n
lea ecx, [esp + 0x220]
call fcn.004023a0
push 0x73
push str.User_Agent:_Mozilla_5.0__Windows_NT_5.1__AppleWebKit_537.31__KHTML__like_Gecko__Chrome_26.0.1410.64_Safari_537.31_r_n
lea ecx, [esp + 0x220]
call fcn.004023a0
push 0x18
push str.Connection:_Keep_Alive_r_n
lea ecx, [esp + 0x220]
call fcn.004023a0
push 0x31
push 0x4a7510
lea ecx, [esp + 0x220]
call fcn.004023a0
mov eax, dword [esp + 0x1f4]
cmp eax, ebx
je 0x427fee
push eax
lea edx, [esp + 0x2cc]
push str.Content_Length:__d_r_n
push edx
call fcn.00461e38
lea eax, [esp + 0x2d4]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x427fd0
sub eax, edx
push eax
lea eax, [esp + 0x2cc]
push eax
lea ecx, [esp + 0x220]
call fcn.004023a0
push 2
push 0x4a7468
lea ecx, [esp + 0x220]
call fcn.004023a0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1e8]
push ecx
lea ecx, [esp + 0x224]
call fcn.004027b0
mov eax, dword [esp + 0x21c]
cmp dword [esp + 0x230], edi
jae 0x42802f
lea eax, [esp + 0x21c]
mov edx, dword [esp + 0x22c]
push ebx
push edx
push eax
push ebp
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x42807a
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._connectAndSendData_:_send_error__d.__r_n
call fcn.00461b30
add esp, 8
cmp dword [esp + 0x230], edi
jb 0x428070
mov eax, dword [esp + 0x21c]
push eax
call fcn.00442458
add esp, 4
mov esi, 0xf
jmp 0x4287d5
mov eax, dword [esi + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4280e6
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x230], edi
jb 0x4280aa
mov ecx, dword [esp + 0x21c]
push ecx
call fcn.00442458
add esp, 4
mov esi, 0xf
mov dword [esp + 0x230], esi
mov dword [esp + 0x22c], ebx
mov byte [esp + 0x21c], bl
cmp dword [esp + 0x1f8], edi
jb 0x427d4d
mov edx, dword [esp + 0x1e4]
push edx
call fcn.00442458
add esp, 4
jmp 0x427d4d
mov dword [esp + 0x284], 0xf
mov dword [esp + 0x280], ebx
mov byte [esp + 0x270], bl
add esi, 0x64
mov byte [esp + 0x1338], 0xc
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x42811d
push eax
call fcn.00442458
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x5c]
add esi, 0x54
cmp eax, ebx
je 0x42813a
push eax
call fcn.00442458
add esp, 4
mov dword [esi + 8], ebx
push 0xfff
lea ecx, [esp + 0x331]
push ebx
push ecx
mov dword [esi + 4], ebx
mov byte [esp + 0x338], bl
call fcn.004660c0
add esp, 0xc
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x30], ebx
lea ebx, [ebx]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
push ebx
push ebx
lea eax, [esp + 0x78]
push eax
lea eax, [esi + 1]
push eax
mov dword [esp + 0x58], 0xa
mov dword [esp + 0x5c], 0x3e8
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], 1
call sub.WS2_32.dll_select
cmp eax, ebx
jle 0x428784
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add edi, 0xc
push ebx
push ecx
call ebp
test eax, eax
je 0x4289c5
lea edx, [esp + 0x6c]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x428784
mov eax, dword [edi]
push ebx
push eax
call ebp
test eax, eax
je 0x4289c5
push 0x1000
lea ecx, [esp + 0x330]
push ebx
push ecx
call fcn.004660c0
add esp, 0xc
push ebx
push 0x1000
lea edx, [esp + 0x334]
push edx
mov eax, esi
push eax
call sub.WS2_32.dll_recv
mov ebp, eax
cmp ebp, ebx
jle 0x428784
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
add eax, 0xc
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4289c5
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
lea edi, [edx + ebp]
add esi, 0x64
call fcn.0042a2c0
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x6c]
mov edx, dword [esp + 0x34]
push ebp
lea ecx, [esp + 0x330]
push ecx
add eax, edx
push eax
call fcn.0046a6a0
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov dword [esp + 0x34], edi
mov edi, esi
cmp ecx, ebx
je 0x428290
fldz
mov eax, dword [ecx]
mov edx, dword [eax + 4]
sub esp, 8
fstp qword [esp]
push ebx
push edi
call edx
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x34]
lea esi, [eax + ecx]
push str._r_n_r_n
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], esi
call fcn.00462ac0
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x42871f
cmp ebp, esi
jae 0x42871f
add ebp, 4
cmp dword [edi + 0x7c], 0xffffffff
mov dword [esp + 0x30], ebp
jne 0x42837b
mov edx, dword [esp + 0x28]
push str.HTTP_1.1
push edx
call fcn.00462ac0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42837b
cmp esi, dword [esp + 0x20]
jae 0x42837b
add esi, 9
push 0x4a7598
push esi
call fcn.00462ac0
add esp, 8
cmp eax, ebx
je 0x42837b
cmp eax, dword [esp + 0x20]
jae 0x42837b
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x1e4], 0xf
mov dword [esp + 0x1e0], ebx
mov byte [esp + 0x1d0], bl
call fcn.004024b0
cmp dword [esp + 0x1dc], 0x10
mov eax, dword [esp + 0x1c8]
jae 0x428355
lea eax, [esp + 0x1c8]
push eax
call fcn.00462b5c
add esp, 4
cmp dword [esp + 0x1dc], 0x10
mov dword [edi + 0x7c], eax
jb 0x42837b
mov eax, dword [esp + 0x1c8]
push eax
call fcn.00442458
add esp, 4
mov eax, dword [edi + 0x7c]
cmp eax, 0x12e
je 0x428390
cmp eax, 0x12d
jne 0x428448
cmp dword [esp + 0x280], ebx
jne 0x4289d2
mov ecx, dword [esp + 0x28]
push str.Location:
push ecx
call fcn.00462ac0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x428448
cmp esi, dword [esp + 0x20]
jae 0x428448
add esi, 0xa
push 0x4a7468
push esi
call fcn.00462ac0
add esp, 8
cmp eax, ebx
je 0x428448
cmp eax, dword [esp + 0x20]
jae 0x428448
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x1e4], 0xf
mov dword [esp + 0x1e0], ebx
mov byte [esp + 0x1d0], bl
call fcn.004024b0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1cc]
push edx
lea ecx, [esp + 0x278]
mov byte [esp + 0x1344], 0xd
call fcn.00402090
mov byte [esp + 0x1338], 0xc
cmp dword [esp + 0x1dc], 0x10
jb 0x428448
mov eax, dword [esp + 0x1c8]
push eax
call fcn.00442458
add esp, 4
cmp dword [esp + 0x280], ebx
jne 0x4289d2
cmp dword [esp + 0x18], 0xffffffff
jne 0x42871f
mov ecx, dword [esp + 0x28]
push str.Content_Length:
push ecx
call fcn.00462ac0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42850c
mov edi, dword [esp + 0x20]
cmp esi, edi
jae 0x42850c
add esi, 0x10
push 0x4a7468
push esi
call fcn.00462ac0
add esp, 8
cmp eax, ebx
je 0x42850c
cmp eax, edi
jae 0x42850c
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x1e4], 0xf
mov dword [esp + 0x1e0], ebx
mov byte [esp + 0x1d0], bl
call fcn.004024b0
mov eax, dword [esp + 0x1c8]
mov esi, 0x10
cmp dword [esp + 0x1dc], esi
jae 0x4284e6
lea eax, [esp + 0x1c8]
push eax
call fcn.00462b5c
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1dc], esi
jb 0x42850c
mov edx, dword [esp + 0x1c8]
push edx
call fcn.00442458
add esp, 4
cmp dword [esp + 0x18], 0xffffffff
jne 0x42871f
push 0x4a7468
push ebp
call fcn.00462ac0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4285bb
cmp esi, dword [esp + 0x20]
jae 0x4285bb
sub eax, ebp
push eax
push ebp
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x1e4], 0xf
mov dword [esp + 0x1e0], ebx
mov byte [esp + 0x1d0], bl
call fcn.004024b0
mov eax, dword [esp + 0x1c8]
mov edi, 0x10
cmp dword [esp + 0x1dc], edi
jae 0x42857e
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x18]
push ecx
push 0x4a75bc
push eax
call fcn.0046272d
add esp, 0xc
cmp eax, 1
jne 0x4285a2
add dword [esp + 0x18], 7
add esi, 2
mov dword [esp + 0x30], esi
cmp dword [esp + 0x1dc], edi
jb 0x4285bb
mov edx, dword [esp + 0x1c8]
push edx
call fcn.00442458
add esp, 4
cmp dword [esp + 0x18], 0xffffffff
jne 0x42871f
mov eax, dword [esp + 0x28]
push str.Connection:
push eax
call fcn.00462ac0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42871f
cmp esi, dword [esp + 0x20]
jae 0x42871f
add esi, 0xc
push 0x4a7468
push esi
call fcn.00462ac0
add esp, 8
cmp eax, ebx
je 0x42871f
cmp eax, dword [esp + 0x20]
jae 0x42871f
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x1e4], 0xf
mov dword [esp + 0x1e0], ebx
mov byte [esp + 0x1d0], bl
call fcn.004024b0
mov byte [esp + 0x1338], 0xf
mov eax, dword [esp + 0x1c8]
mov edi, 0x10
cmp dword [esp + 0x1dc], edi
jae 0x42865c
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x250]
call fcn.00426700
mov byte [esp + 0x1338], 0x10
xor ecx, ecx
push 5
mov word [esp + 0x58], cx
mov ebp, 7
push str.CLOSE
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
call fcn.00405e40
lea eax, [esp + 0x50]
lea esi, [esp + 0x250]
call fcn.00433030
test eax, eax
mov esi, 8
sete byte [esp + 0x27]
cmp dword [esp + 0x68], esi
jb 0x4286c3
mov edx, dword [esp + 0x54]
push edx
call fcn.00442458
add esp, 4
cmp byte [esp + 0x27], bl
je 0x4286cd
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x268], esi
jb 0x4286e6
mov eax, dword [esp + 0x254]
push eax
call fcn.00442458
add esp, 4
xor ecx, ecx
mov byte [esp + 0x1338], 0xc
mov dword [esp + 0x268], ebp
mov dword [esp + 0x264], ebx
mov word [esp + 0x254], cx
cmp dword [esp + 0x1dc], edi
jb 0x42871f
mov edx, dword [esp + 0x1c8]
push edx
call fcn.00442458
add esp, 4
cmp dword [esp + 0x30], ebx
je 0x428170
mov edi, dword [esp + 0x18]
cmp edi, ebx
jle 0x428170
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, ebp
sub eax, edx
sub ecx, edx
add eax, edi
cmp ecx, eax
jl 0x428170
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x7c], 0xc8
jne 0x428766
mov dword [esp + 0x3c], 1
lea esi, [eax + 0x54]
call fcn.0042a2c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x5c]
push ecx
push ebp
push eax
call fcn.0046a6a0
add esp, 0xc
mov edi, 0x10
cmp dword [esp + 0x284], edi
jb 0x4287a2
mov edx, dword [esp + 0x270]
push edx
call fcn.00442458
add esp, 4
mov esi, 0xf
mov dword [esp + 0x284], esi
mov dword [esp + 0x280], ebx
mov byte [esp + 0x270], bl
cmp dword [esp + 0x230], edi
jb 0x4287d5
mov eax, dword [esp + 0x21c]
push eax
call fcn.00442458
add esp, 4
mov byte [esp + 0x21c], bl
mov dword [esp + 0x22c], ebx
mov dword [esp + 0x230], esi
cmp dword [esp + 0x1f8], edi
jb 0x428803
mov ecx, dword [esp + 0x1e4]
push ecx
call fcn.00442458
add esp, 4
mov dword [esp + 0x1f8], esi
mov dword [esp + 0x1f4], ebx
mov byte [esp + 0x1e4], bl
cmp dword [esp + 0x1c0], edi
jb 0x428831
mov edx, dword [esp + 0x1ac]
push edx
call fcn.00442458
add esp, 4
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1bc], ebx
mov byte [esp + 0x1ac], bl
cmp dword [esp + 0x214], edi
jb 0x42885f
mov eax, dword [esp + 0x200]
push eax
call fcn.00442458
add esp, 4
mov dword [esp + 0x214], esi
mov dword [esp + 0x210], ebx
mov byte [esp + 0x200], bl
mov esi, 8
cmp dword [esp + 0x1a4], esi
jb 0x428892
mov ecx, dword [esp + 0x190]
push ecx
call fcn.00442458
add esp, 4
xor edx, edx
mov edi, 7
mov word [esp + 0x190], dx
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x1a4], edi
cmp dword [esp + 0x188], esi
jb 0x4288c8
mov eax, dword [esp + 0x174]
push eax
call fcn.00442458
add esp, 4
mov byte [esp + 0x1338], 1
xor ecx, ecx
mov word [esp + 0x174], cx
mov dword [esp + 0x184], ebx
mov dword [esp + 0x188], edi
cmp dword [esp + 0x24c], esi
jb 0x428901
mov edx, dword [esp + 0x238]
push edx
call fcn.00442458
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x428928
push eax
call sub.WS2_32.dll_closesocket
cmp eax, 0xffffffff
jne 0x428928
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._connectAndSendData_:_closesocket_error__d.__r_n
call fcn.00461b30
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
je 0x428a45
cmp dword [esp + 0x1c], ebx
jne 0x428a45
cmp dword [esp + 0x38], ebx
jne 0x427930
mov edi, dword [esp + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx]
mov esi, eax
lea eax, [esi + 0xc]
push eax
cmp edi, ebx
sete al
movzx eax, al
push eax
push esi
lea eax, [esp + 0x25c]
push eax
call edx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x294]
mov byte [esp + 0x1344], 0x11
call fcn.00406060
mov ebp, 8
mov byte [esp + 0x1338], 1
cmp dword [esp + 0x268], ebp
jb 0x4289ab
mov eax, dword [esp + 0x254]
push eax
call fcn.00442458
add esp, 4
cmp dword [esp + 0x29c], ebx
je 0x428a58
add esi, 0x30
call fcn.00438a50
jmp 0x427930
mov dword [esp + 0x1c], 1
jmp 0x428784
cmp dword [esp + 0x284], 0x10
mov eax, dword [esp + 0x270]
jae 0x4289ea
lea eax, [esp + 0x270]
lea ecx, [esp + 0x250]
call fcn.00426700
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x294]
mov byte [esp + 0x1344], 0xe
call fcn.00406060
mov byte [esp + 0x1338], 0xc
cmp dword [esp + 0x268], 8
jb 0x428a30
mov ecx, dword [esp + 0x254]
push ecx
call fcn.00442458
add esp, 4
lea esi, [edi + 0x30]
call fcn.00438a50
mov dword [esp + 0x38], 1
jmp 0x428784
cmp dword [esp + 0x38], ebx
jne 0x427930
mov edi, dword [esp + 0x3c]
mov ebp, 8
cmp dword [esp + 0x2a0], ebp
jb 0x428a71
mov ecx, dword [esp + 0x28c]
push ecx
call fcn.00442458
add esp, 4
xor edx, edx
mov dword [esp + 0x2a0], 7
mov dword [esp + 0x29c], ebx
mov word [esp + 0x28c], dx
cmp dword [esp + 0x135c], ebp
jb 0x428aa6
mov eax, dword [esp + 0x1348]
push eax
call fcn.00442458
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1318]
xor ecx, esp
call fcn.00461095
add esp, 0x1328
ret 0x20