Function at 0x4d2790
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Make an http request with a cookie
Receive data
Receive data on socket
Reference http user-agent string
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5201c9
mov eax, dword fs:[0]
push eax
mov eax, 0x1931c
call fcn.004eff30
mov eax, dword [0x567570]
xor eax, esp
mov dword [esp + 0x19318], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x567570]
xor eax, esp
push eax
lea eax, [esp + 0x19330]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x19340]
mov eax, dword [esp + 0x19350]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x19344]
push 0x537290
push ecx
mov dword [esp + 0x19340], 5
call fcn.00411f45
add esp, 8
push 0x537290
test al, al
je 0x4d2956
mov ecx, ebp
call fcn.00401f01
mov eax, dword [esp + 0x19344]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2850
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x19348]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d287b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1934c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d28a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x19354]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d28d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x19358]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d28fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1935c]
add eax, 0xfffffff0
mov dword [esp + 0x19338], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d292a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x19330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x19318]
xor ecx, esp
call fcn.004ee5a2
add esp, 0x19328
ret 0x24
lea ecx, [esp + 0x38]
call fcn.00401f01
mov ecx, dword [esp + 0x19344]
mov eax, dword [ecx - 0xc]
mov byte [esp + 0x19338], 6
test eax, eax
jge 0x4d297a
or esi, 0xffffffff
jmp 0x4d299c
push 0x54134c
push ecx
call fcn.004e9aa6
add esp, 8
test eax, eax
jne 0x4d2991
or esi, 0xffffffff
jmp 0x4d299c
sub eax, dword [esp + 0x19344]
sar eax, 1
mov esi, eax
push 0x537290
lea ecx, [esp + 0x30]
call fcn.00401f01
push 0x537290
lea ecx, [esp + 0x34]
mov byte [esp + 0x1933c], 7
call fcn.00401f01
mov byte [esp + 0x19338], 8
cmp esi, 0xffffffff
je 0x4d2a6e
push esi
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x19350]
call fcn.004049ae
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1933c], 9
call fcn.00404918
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1934c]
call fcn.00404a2c
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x1933c], 0xa
call fcn.00404918
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2a8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4d2a8d
lea ecx, [esp + 0x19344]
push ecx
lea ecx, [esp + 0x30]
call fcn.00404918
push 0x52b0e8
lea ecx, [esp + 0x34]
call fcn.00401eef
mov edx, dword [0x56f16c]
mov eax, dword [edx + 0xc]
mov ecx, 0x56f16c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov edx, dword [0x56f16c]
mov eax, dword [edx + 0xc]
mov ecx, 0x56f16c
mov byte [esp + 0x19338], 0xb
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1934c]
mov eax, dword [ecx - 0xc]
mov byte [esp + 0x19338], 0xc
test eax, eax
jl 0x4d2b54
push str.http:__
push ecx
call fcn.004e9aa6
add esp, 8
test eax, eax
je 0x4d2b4d
mov ecx, dword [esp + 0x1934c]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4d2b54
add eax, 7
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x19354]
call fcn.00404a2c
push eax
lea ecx, [esp + 0x19350]
mov byte [esp + 0x1933c], 0xd
call fcn.00404918
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2b4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1934c]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x4d2b7d
push 0x537294
push ecx
call fcn.004e9aa6
add esp, 8
test eax, eax
je 0x4d2b7d
sub eax, dword [esp + 0x1934c]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d2ba1
lea ecx, [esp + 0x1934c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404918
push 0x537290
lea ecx, [esp + 0x20]
call fcn.00401eef
jmp 0x4d2c3b
push esi
push 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x19358]
call fcn.004049ae
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1933c], 0xe
call fcn.00404918
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2bef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x19354]
call fcn.00404a2c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1933c], 0xf
call fcn.00404918
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2c3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x28]
cmp dword [ebx - 0xc], 0
jge 0x4d2c4a
or esi, 0xffffffff
jmp 0x4d2c67
push 0x54134c
push ebx
call fcn.004e9aa6
add esp, 8
test eax, eax
jne 0x4d2c61
or esi, 0xffffffff
jmp 0x4d2c67
sub eax, ebx
sar eax, 1
mov esi, eax
lea eax, [ebx - 0x10]
push eax
call fcn.0040157b
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x4c], edi
mov byte [esp + 0x19338], 0x10
cmp esi, 0xffffffff
je 0x4d2cd6
push esi
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.004049ae
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1933c], 0x11
call fcn.00404918
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2cd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x17c]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4d2e06
push 0x537290
mov ecx, ebp
call fcn.00401f01
lea eax, [edi - 0x10]
mov byte [esp + 0x19338], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2d1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2d46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x19338], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2d6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2d92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2dba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2de2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x19344]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4d2844
push 0
mov ebp, 1
push ebp
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x18], eax
call fcn.004e9b1d
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16e], ax
lea eax, [esp + 0x30c]
push eax
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov edx, 2
mov dword [esp + 0x5c], esp
mov esi, esp
push eax
mov word [esp + 0x178], dx
call fcn.0040157b
mov ecx, dword [esp + 0x5c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004d0d90
lea ecx, [esp + 0x30c]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x174], eax
mov eax, dword [esp + 0x18]
push 0x8004667e
push eax
mov dword [esp + 0x24], ebp
call esi
test eax, eax
je 0x4d30b7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esp + 0x3c]
push 0x537290
mov ecx, esi
call fcn.00401f01
lea eax, [edi - 0x10]
mov byte [esp + 0x19338], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d2ee7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2f0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 8
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2f33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 7
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2f5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 6
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2f83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 5
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2fab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x19344]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2fd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x19348]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3001
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1934c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d302c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x19354]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3057
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x19358]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1935c]
add eax, 0xfffffff0
mov dword [esp + 0x19338], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d30b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4d292c
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x170]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push ecx
push 0
lea edx, [esp + 0x70]
push edx
push 0
push 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x74], 3
mov dword [esp + 0x78], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x4d313d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esp + 0x3c]
push 0x537290
mov ecx, esi
call fcn.00401f01
lea eax, [edi - 0x10]
mov byte [esp + 0x19338], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4d2edb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x24], 0
call esi
test eax, eax
je 0x4d3192
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esp + 0x3c]
push 0x537290
mov ecx, esi
call fcn.00401f01
lea eax, [edi - 0x10]
mov byte [esp + 0x19338], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4d2edb
mov eax, dword [esp + 0x1c]
mov ecx, 0x537290
jmp 0x4d31a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d31c6
test dx, dx
je 0x4d31c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d31c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d31a0
xor eax, eax
jmp 0x4d31cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4d31e3
push ebp
push 0x537294
lea ecx, [esp + 0x24]
call fcn.00401e46
mov eax, dword [esp + 0x19354]
mov ecx, 0x537290
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d3216
test dx, dx
je 0x4d3212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d3216
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d31f0
xor eax, eax
jmp 0x4d321b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4d327b
lea ecx, [esp + 0x19354]
push ecx
lea edx, [esp + 0x3c]
push str.Cookie:
push edx
call fcn.0040ebcd
add esp, 0xc
push eax
lea ecx, [esp + 0x19358]
mov byte [esp + 0x1933c], 0x12
call fcn.00404918
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d327b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x19358]
mov ecx, 0x537290
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d32b6
test dx, dx
je 0x4d32b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d32b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d3290
xor eax, eax
jmp 0x4d32bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4d32fc
mov eax, dword [esi - 0xc]
push 2
add eax, 0xfffffffe
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x19364]
call fcn.004049ae
push 0x53f4c8
push eax
mov dword [esp + 0x2c], 2
call fcn.0040ec2d
add esp, 8
test al, al
je 0x4d32fc
mov bl, 1
jmp 0x4d32fe
xor bl, bl
test byte [esp + 0x24], 2
je 0x4d3325
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d3325
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4d333c
push 2
push 0x53f4c8
lea ecx, [esp + 0x19360]
call fcn.0041433d
push 0x537290
lea ecx, [esp + 0x48]
call fcn.00401f01
lea ecx, [esp + 0x19348]
mov byte [esp + 0x19338], 0x13
call fcn.00435558
mov eax, dword [eax]
mov ecx, str.CONNECT
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d338b
test dx, dx
je 0x4d3387
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d338b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d3365
xor eax, eax
jmp 0x4d3390
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4d33ac
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404918
jmp 0x4d34a4
push str.POST
lea ecx, [esp + 0x1934c]
call fcn.00435558
push eax
call fcn.00411f45
add esp, 8
test al, al
je 0x4d34a4
mov edx, dword [esp + 0x1935c]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004d1c60
push eax
lea ecx, [esp + 0x28]
push str.Content_Length:
push ecx
mov byte [esp + 0x19344], 0x14
call fcn.0040ebcd
push 0x53f4c8
push eax
lea edx, [esp + 0x4c]
mov bl, 0x15
push edx
mov byte [esp + 0x19350], bl
call fcn.0041217d
add esp, 0x18
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x1933c], 0x16
call fcn.00404918
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x19338], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d347c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x13
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d34a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x537288
lea ecx, [esp + 0x1934c]
call fcn.00435558
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0041217d
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x19350], 0x17
call fcn.0040eb6f
push str._HTTP_1.1_r_n
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x1935c], 0x18
call fcn.0041217d
add esp, 0x24
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x1a
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d351b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x1b
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x18
push str.Connection:_keep_alive_r_n
lea ecx, [esp + 0x28]
call fcn.0041433d
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x4c]
push str.HOST:
push edx
call fcn.0040ebcd
push 0x53f4c8
push eax
lea eax, [esp + 0x38]
mov bl, 0x1c
push eax
mov byte [esp + 0x19350], bl
call fcn.0041217d
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x19340], 0x1d
call fcn.0041433d
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x19338], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d35c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x1b
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d35ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x54
push str.Accept:_text_html_application_xhtmlxml_application_xml_q0.9_image_webp___q0.8_r_n
lea ecx, [esp + 0x28]
call fcn.0041433d
push 0x7b
push str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_35.0.1916.153_Safari_537.36_r_n
lea ecx, [esp + 0x28]
call fcn.0041433d
push 0x1f
push str.Accept_Encoding:_deflate_sdch_r_n
lea ecx, [esp + 0x28]
call fcn.0041433d
push 0x21
push str.Accept_Language:_zh_CN_zh_q0.8_r_n
lea ecx, [esp + 0x28]
call fcn.0041433d
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [esp + 0x28]
call fcn.0041433d
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0041433d
lea ecx, [esp + 0x1935c]
push ecx
lea edx, [esp + 0x4c]
push 0x53f4c8
push edx
call fcn.0040ebcd
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x19340], 0x1e
call fcn.0041433d
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x1b
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d36a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x32c]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x5c], esp
mov esi, esp
push eax
call fcn.0040157b
mov ecx, dword [esp + 0x5c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004d0d90
lea eax, [esp + 0x32c]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d36e0
mov esi, dword [esp + 0x14]
sub eax, ecx
push 0
inc eax
push eax
lea edx, [esp + 0x334]
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
push 4
lea eax, [esp + 0x60]
push eax
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x70], 0x3a98
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x7d000
call fcn.004e7db0
push 0x7d000
mov ebx, eax
push 0
push ebx
call fcn.004ee670
add esp, 0x10
mov dword [esp + 0x24], 0
mov edi, ebx
jmp 0x4d3750
mov ecx, dword [esp + 0x14]
push 0
push 0x400
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4d3897
mov edi, dword [esp + 0x24]
add edi, ebp
mov dword [esp + 0x24], edi
add edi, ebx
mov byte [edi], 0
mov edx, dword [esp + 0x19348]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4d37ac
push esi
lea ecx, [esp + 0x1934c]
call fcn.00401d6f
mov edx, dword [esp + 0x19348]
lea eax, [esi + 1]
push eax
push edx
call fcn.004ebe4e
add esp, 8
test esi, esi
jl 0x4d3c09
mov eax, dword [esp + 0x19348]
cmp esi, dword [eax - 8]
jg 0x4d3c09
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x19348]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x19348]
mov ecx, str.CONNECT
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d3816
test dx, dx
je 0x4d3812
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d3816
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d37f0
xor eax, eax
jmp 0x4d381b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4d382c
cmp ebp, 0x400
jl 0x4d3834
test ebp, ebp
jne 0x4d3750
cmp dword [esp + 0x24], 0
je 0x4d3897
mov esi, dword [esp + 0x24]
push esi
mov dword [esp + 0x18], 0
call fcn.004e7db0
mov ebp, eax
add esi, 0xfffffffd
add esp, 4
xor eax, eax
mov dword [esp + 0x54], ebp
test esi, esi
jle 0x4d3973
mov edi, ebp
sub edi, ebx
mov dl, byte [eax + ebx]
lea ecx, [eax + ebx]
cmp dl, 0xd
jne 0x4d388a
cmp byte [eax + ebx + 1], 0xa
jne 0x4d388a
cmp byte [eax + ebx + 2], dl
jne 0x4d388a
cmp byte [eax + ebx + 3], 0xa
je 0x4d395c
inc eax
cmp eax, esi
mov byte [ecx + edi], dl
jl 0x4d3867
jmp 0x4d3973
push ebx
call fcn.004e93ab
mov esi, dword [esp + 0x40]
add esp, 4
push str.error
mov ecx, esi
call fcn.00401f01
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 0x13
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d38d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 0x10
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3900
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19338], 0xc
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
jmp 0x4d2f12
mov cl, byte [eax + ebx]
mov byte [eax + ebp], cl
mov byte [eax + ebp + 1], 0xa
mov byte [eax + ebp + 2], 0
add eax, 8
mov dword [esp + 0x14], eax
push ebp
lea ecx, [esp + 0x4c]
call fcn.00439fbe
mov edi, dword [esp + 0x40]
push eax
mov ecx, edi
mov byte [esp + 0x1933c], 0x1f
call fcn.00404918
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x1b
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d39b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004e7db0
mov edx, dword [esp + 0x18]
mov ebp, eax
lea eax, [edx + ebx]
mov edx, ebp
add esp, 4
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4d39d3
mov esi, dword [esp + 0x19360]
cmp esi, 0xffffffff
jne 0x4d3b38
mov ecx, edi
call fcn.00414315
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x4d3b36
push str.charset
push eax
call fcn.004e9aa6
add esp, 8
test eax, eax
je 0x4d3b36
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4d3b36
add eax, 8
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00414315
mov ecx, eax
call fcn.00404a2c
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
mov byte [esp + 0x19338], 0x20
jge 0x4d3a53
or eax, 0xffffffff
jmp 0x4d3a6e
push 0x541cc8
push esi
call fcn.004e9aa6
add esp, 8
test eax, eax
jne 0x4d3a6a
or eax, 0xffffffff
jmp 0x4d3a6e
sub eax, esi
sar eax, 1
dec eax
push eax
push 0
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x20]
call fcn.004049ae
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1933c], 0x21
call fcn.00404918
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x20
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d3aba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push 0x52adf8
push ecx
call fcn.00411f45
add esp, 8
test al, al
jne 0x4d3b07
lea edx, [esp + 0x14]
push str.gb2312
push edx
call fcn.00411f45
add esp, 8
test al, al
jne 0x4d3b07
lea eax, [esp + 0x14]
push str.utf_8
push eax
call fcn.00411f45
movzx esi, al
add esp, 8
neg esi
sbb esi, esi
and esi, 0xfde9
jmp 0x4d3b0c
mov esi, 0x3a8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x1b
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4d3b38
xor esi, esi
push esi
push ebp
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x5c]
call fcn.004d2480
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x1933c], 0x22
call fcn.00404918
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x1b
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d3b82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.004e93ab
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004e93ab
push ebp
call fcn.004e93ab
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x19338], 0x13
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d3bc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x19338], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3beb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.0040157b
mov esi, dword [esp + 0x40]
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x4d3900
push 0x80070057
call fcn.00402afe
int3