Function at 0x413ecc
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0x18], 0
jne 0x413f93
push reloc.WS2_32.dll_connect
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
push 1
mov ebx, 0x168
call fcn.004e6920
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push 0x54e30b
push 0x54e30b
push 1
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x413f75
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x413f88
push ebx
call fcn.004e4393
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
jmp 0x414064
push reloc.WS2_32.dll_connect
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
push 1
mov ebx, 0x168
call fcn.004e6920
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.00401156
add esp, 8
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x413fe1
mov eax, 0x54e30b
push eax
push 1
mov ebx, 0x168
call fcn.004e6920
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x414007
push ebx
call fcn.004e4393
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x54e30b
push dword [ebp - 0x30]
push 3
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x41403b
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41404e
push ebx
call fcn.004e4393
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x41405e
push ebx
call fcn.004e4393
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x414078
mov eax, 0x54e454
jmp 0x41494d
push dword [ebp + 8]
call fcn.00414985
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
call fcn.00414d56
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0
push 3
push 0x54e30b
push 0x54e30b
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetConnectA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4140cf
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4140e2
push ebx
call fcn.004e4393
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41411e
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x414114
push 6
call fcn.004e4399
add esp, 4
mov eax, 0x54e454
jmp 0x41494d
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x414133
mov eax, 0x54e30b
push eax
push 1
mov ebx, 0x150
call fcn.004e9c80
add esp, 0x10
mov dword [ebp - 0x28], eax
push str.POST
push dword [ebp - 0x28]
call fcn.004017d2
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x414177
push ebx
call fcn.004e4393
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x41419f
mov eax, 0x565689
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x414199
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.0041517a
mov dword [ebp - 0x28], eax
push reloc.WS2_32.dll_connect
push 0
push 0x54e30b
push 1
mov ebx, 0x168
call fcn.004e6920
add esp, 0x10
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_connect
push 0
push 0x54e30b
push 1
mov ebx, 0x168
call fcn.004e6920
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push bind
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push str.HTTP_1.1
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x41422b
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41423e
push ebx
call fcn.004e4393
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41424e
push ebx
call fcn.004e4393
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x41425e
push ebx
call fcn.004e4393
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4142bc
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x414290
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4142b2
push 6
call fcn.004e4399
add esp, 4
mov eax, 0x54e454
jmp 0x41494d
mov dword [ebp - 0x10], 0x4650
mov dword [ebp - 0x28], esp
push 4
lea eax, [ebp - 0x10]
push eax
push 2
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4142f3
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
push 4
lea eax, [ebp - 0x10]
push eax
push 6
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x414326
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
push 4
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x414359
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_bind
push 0
push 1
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
push str.Accept:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x414395
mov eax, 0x54e30b
push eax
push 4
mov ebx, 0x148
call fcn.004e9d00
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x4143eb
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword____r_n
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 2
call fcn.00401156
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4143e5
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push reloc.WS2_32.dll_bind
push 0
push 1
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
push str.Referer:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x414424
mov eax, 0x54e30b
push eax
push 4
mov ebx, 0x148
call fcn.004e9d00
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x414484
push 0x565758
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 4
call fcn.00401156
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41447e
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push reloc.WS2_32.dll_bind
push 0
push 1
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
push str.Accept_Language:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x4144bd
mov eax, 0x54e30b
push eax
push 4
mov ebx, 0x148
call fcn.004e9d00
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x414513
push str.Accept_Language:_zh_cn_r_n
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 2
call fcn.00401156
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41450d
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x565689
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.004017d2
add esp, 8
cmp eax, 0
jne 0x414592
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x414543
mov eax, 0x54e30b
push eax
push 1
mov ebx, 0x130
call fcn.004e84c0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push 0x54e30b
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x41458d
push 6
call fcn.004e4399
add esp, 4
jmp 0x4146fe
push 0x54e30b
mov ebx, dword [ebp + 0x24]
push dword [ebx]
call fcn.004017d2
add esp, 8
cmp eax, 0
je 0x414676
push str.Content_Type:_application_x_www_form_urlencoded_r_n
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 2
call fcn.00401156
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4145dd
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x4145f8
mov eax, 0x54e30b
push eax
push 1
mov ebx, 0x130
call fcn.004e84c0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004e6920
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x565758
push dword [ebp - 0x2c]
push str.Content_Length:
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 4
call fcn.00401156
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41465a
push ebx
call fcn.004e4393
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x414670
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x41468b
mov eax, 0x54e30b
push eax
push 1
mov ebx, 0x130
call fcn.004e84c0
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x4146b6
mov eax, 0x54e30b
push eax
push 1
mov ebx, 0x130
call fcn.004e84c0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4146fe
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jle 0x414806
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.004e7ee0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x414744
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0
mov ebx, 0x350
call fcn.004e7f70
add esp, 4
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x18]
push eax
push 0x200
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414770
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x414790
push 6
call fcn.004e4399
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x18]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4147ad
mov eax, 0x54e454
push eax
push 2
mov ebx, 0x1a0
call fcn.004e7f20
add esp, 0x1c
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.00402f0e
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4147e9
push ebx
call fcn.004e4393
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4147fd
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x414705
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4148c8
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.004e8750
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x414854
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push 0
mov eax, 0x400
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
push 0x16
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x414893
push 6
call fcn.004e4399
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4148af
push eax
mov ebx, eax
call fcn.004010eb
inc eax
push eax
call fcn.004e438d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4148c2
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4148ea
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x41490c
push 6
call fcn.004e4399
add esp, 4
mov dword [ebp - 0x28], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x41492e
push 6
call fcn.004e4399
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x414948
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004e438d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41494d
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41495e
push ebx
call fcn.004e4393
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41496e
push ebx
call fcn.004e4393
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41497e
push ebx
call fcn.004e4393
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x2c