Function at 0x403760
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 0x403827
push VariantClear
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
push 1
mov ebx, 0x168
call fcn.00420520
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push 0x436270
push 0x436270
push 1
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x403809
push 6
call fcn.0041f9e0
add esp, 4
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40381c
push ebx
call fcn.0041f9da
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
jmp 0x4038f8
push VariantClear
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
push 1
mov ebx, 0x168
call fcn.00420520
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.004020dd
add esp, 8
mov dword [ebp - 0x2c], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x403875
mov eax, 0x436270
push eax
push 1
mov ebx, 0x168
call fcn.00420520
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40389b
push ebx
call fcn.0041f9da
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x436270
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 0x4038cf
push 6
call fcn.0041f9e0
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4038e2
push ebx
call fcn.0041f9da
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4038f2
push ebx
call fcn.0041f9da
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40390c
mov eax, 0x436270
jmp 0x4041f3
push dword [ebp + 8]
call fcn.0040422b
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
call fcn.004045fc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0
push 3
push 0x436270
push 0x436270
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 0x403963
push 6
call fcn.0041f9e0
add esp, 4
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403976
push ebx
call fcn.0041f9da
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4039b2
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 0x4039a8
push 6
call fcn.0041f9e0
add esp, 4
mov eax, 0x436270
jmp 0x4041f3
push VariantClear
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4039c7
mov eax, 0x436270
push eax
push 1
mov ebx, 0x150
call fcn.004207f0
add esp, 0x10
mov dword [ebp - 0x28], eax
push str.POST
push dword [ebp - 0x28]
call fcn.0040108f
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 0x403a0b
push ebx
call fcn.0041f9da
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x403a33
mov eax, 0x436357
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403a2d
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.00404a20
mov dword [ebp - 0x28], eax
push VariantClear
push 0
push 0x436270
push 1
mov ebx, 0x168
call fcn.00420520
add esp, 0x10
mov dword [ebp - 0x2c], eax
push VariantClear
push 0
push 0x436270
push 1
mov ebx, 0x168
call fcn.00420520
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push SysReAllocString
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 0x403abf
push 6
call fcn.0041f9e0
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403ad2
push ebx
call fcn.0041f9da
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403ae2
push ebx
call fcn.0041f9da
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403af2
push ebx
call fcn.0041f9da
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403b50
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 0x403b24
push 6
call fcn.0041f9e0
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 0x403b46
push 6
call fcn.0041f9e0
add esp, 4
mov eax, 0x436270
jmp 0x4041f3
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 0x403b87
push 6
call fcn.0041f9e0
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 0x403bba
push 6
call fcn.0041f9e0
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 0x403bed
push 6
call fcn.0041f9e0
add esp, 4
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0x80000301
push 0
push 1
push VariantClear
push 0
push str.Accept:
push VariantClear
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x403c29
mov eax, 0x436270
push eax
push 4
mov ebx, 0x148
call fcn.00420180
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x403c7f
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.004020dd
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 0x403c79
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0x80000301
push 0
push 1
push VariantClear
push 0
push str.Referer:
push VariantClear
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x403cb8
mov eax, 0x436270
push eax
push 4
mov ebx, 0x148
call fcn.00420180
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x403d18
push 0x43630e
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 4
call fcn.004020dd
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 0x403d12
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0x80000301
push 0
push 1
push VariantClear
push 0
push str.Accept_Language:
push VariantClear
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x403d51
mov eax, 0x436270
push eax
push 4
mov ebx, 0x148
call fcn.00420180
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x403da7
push str.Accept_Language:_zh_cn_r_n
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 2
call fcn.004020dd
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 0x403da1
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x436357
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.0040108f
add esp, 8
cmp eax, 0
jne 0x403e26
push VariantClear
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x403dd7
mov eax, 0x436270
push eax
push 1
mov ebx, 0x130
call fcn.0041fe30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push 0x436270
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 0x403e21
push 6
call fcn.0041f9e0
add esp, 4
jmp 0x403f92
push 0x436270
mov ebx, dword [ebp + 0x24]
push dword [ebx]
call fcn.0040108f
add esp, 8
cmp eax, 0
je 0x403f0a
push str.Content_Type:_application_x_www_form_urlencoded_r_n
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 2
call fcn.004020dd
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 0x403e71
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x403e8c
mov eax, 0x436270
push eax
push 1
mov ebx, 0x130
call fcn.0041fe30
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.00420520
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x43630e
push dword [ebp - 0x2c]
push str.Content_Length:
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 4
call fcn.004020dd
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403eee
push ebx
call fcn.0041f9da
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403f04
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x403f1f
mov eax, 0x436270
push eax
push 1
mov ebx, 0x130
call fcn.0041fe30
add esp, 0x10
mov dword [ebp - 0x28], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x403f4a
mov eax, 0x436270
push eax
push 1
mov ebx, 0x130
call fcn.0041fe30
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 0x403f92
push 6
call fcn.0041f9e0
add esp, 4
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jle 0x40409a
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.0041fe00
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x403fd8
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0
mov ebx, 0x350
call fcn.00420870
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 0x404004
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 0x404024
push 6
call fcn.0041f9e0
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x18]
push VariantClear
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x404041
mov eax, 0x436271
push eax
push 2
mov ebx, 0x1a0
call fcn.004208e0
add esp, 0x1c
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.00403709
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40407d
push ebx
call fcn.0041f9da
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404091
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x403f99
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40415c
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.0041fd30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4040e8
push ebx
call fcn.0041f9da
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 0x404127
push 6
call fcn.0041f9e0
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x404143
push eax
mov ebx, eax
call fcn.00402072
inc eax
push eax
call fcn.0041f9d4
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 0x404156
push ebx
call fcn.0041f9da
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 0x40417e
push 6
call fcn.0041f9e0
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 0x4041a0
push 6
call fcn.0041f9e0
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 0x4041c2
push 6
call fcn.0041f9e0
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4041d5
mov eax, 0x436271
push eax
push 1
mov ebx, 0x168
call fcn.00420520
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
jmp 0x4041f3
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404204
push ebx
call fcn.0041f9da
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404214
push ebx
call fcn.0041f9da
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x404224
push ebx
call fcn.0041f9da
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x2c