Function at 0x405252
Capabilities:
Connect to http server
Create http request
Make an http request with a cookie
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
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
push 0
push dword [ebp - 0x24]
push 0x432565
call fcn.0040602a
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4052c0
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x432565
call fcn.004063c6
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4052e5
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000004
push 0
mov eax, dword [0x43256d]
test eax, eax
jne 0x4052fe
mov eax, 0x4312a0
push eax
push 1
mov ebx, 0x178
call fcn.00416c70
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x4312a0
push dword [ebp - 0x24]
call fcn.00403c7f
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x405342
push ebx
call fcn.004158a2
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40535c
mov eax, 3
jmp 0x405361
mov eax, 1
mov dword [ebp - 0x24], eax
push dword [0x43256d]
push 0x4313dc
mov ecx, 2
call fcn.00403d87
add esp, 8
mov dword [ebp - 0x28], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00416d80
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0xc], 0
je 0x4053cb
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4053c6
push eax
mov ebx, eax
call fcn.00403d1c
inc eax
push eax
call fcn.004158a8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4053e7
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4053e7
push eax
mov ebx, eax
call fcn.00403d1c
inc eax
push eax
call fcn.004158a8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4053fa
push ebx
call fcn.004158a2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40540a
push ebx
call fcn.004158a2
add esp, 4
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00416d80
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x40545d
push 6
call fcn.004158ae
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x405470
push ebx
call fcn.004158a2
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x405480
push ebx
call fcn.004158a2
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40549a
mov eax, 0
jmp 0x405ff4
push 0x432565
call fcn.004065f1
mov dword [ebp - 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00416d80
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00416d80
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0
push 3
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetConnectA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x405526
push 6
call fcn.004158ae
add esp, 4
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x405539
push ebx
call fcn.004158a2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x405549
push ebx
call fcn.004158a2
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x405563
mov eax, 0
jmp 0x405ff4
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00416d80
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00416d80
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push 0x80000000
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push str.HTTP_1.1
push dword [ebp - 8]
push dword [0x432569]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4055e5
push 6
call fcn.004158ae
add esp, 4
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4055f8
push ebx
call fcn.004158a2
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x405608
push ebx
call fcn.004158a2
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405622
mov eax, 0
jmp 0x405ff4
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push str.Accept:
push 0x80000004
push 0
mov eax, dword [0x432571]
test eax, eax
jne 0x40565b
mov eax, 0x4312a0
push eax
push 4
mov ebx, 0x148
call fcn.00416da0
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4056b3
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
push dword [0x432571]
mov ecx, 2
call fcn.00403d87
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x432571]
test ebx, ebx
je 0x4056ad
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x432571], eax
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push str.Referer:
push 0x80000004
push 0
mov eax, dword [0x432571]
test eax, eax
jne 0x4056ec
mov eax, 0x4312a0
push eax
push 4
mov ebx, 0x148
call fcn.00416da0
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x40574f
push 0x4314e0
push dword [0x432565]
push str.Referer:
push dword [0x432571]
mov ecx, 4
call fcn.00403d87
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x432571]
test ebx, ebx
je 0x405749
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x432571], eax
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push str.Accept_Language:
push 0x80000004
push 0
mov eax, dword [0x432571]
test eax, eax
jne 0x405788
mov eax, 0x4312a0
push eax
push 4
mov ebx, 0x148
call fcn.00416da0
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4057e0
push str.Accept_Language:_zh_cn_r_n
push dword [0x432571]
mov ecx, 2
call fcn.00403d87
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x432571]
test ebx, ebx
je 0x4057da
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x432571], eax
push 0x4312a0
push dword [0x432569]
call fcn.00403c7f
add esp, 8
cmp eax, 0
je 0x40581c
push 0x43150e
push dword [0x432569]
call fcn.00403c7f
add esp, 8
cmp eax, 0
je 0x40581c
xor eax, eax
jmp 0x405821
mov eax, 1
test eax, eax
je 0x4058bd
push 0x80000004
push 0
mov eax, dword [0x432571]
test eax, eax
jne 0x40583e
mov eax, 0x4312a0
push eax
push 1
mov ebx, 0x130
call fcn.004164c0
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00416d80
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [0x432571]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4058a8
push 6
call fcn.004158ae
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4058b8
push ebx
call fcn.004158a2
add esp, 4
jmp 0x405a5b
push str.POST
push dword [0x432569]
call fcn.00403c7f
add esp, 8
cmp eax, 0
jne 0x405a51
push 0x4312a0
push dword [0x432575]
call fcn.00403c7f
add esp, 8
cmp eax, 0
je 0x4059c2
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push dword [0x432571]
mov ecx, 2
call fcn.00403d87
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x432571]
test ebx, ebx
je 0x405927
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x432571], eax
push 0x80000004
push 0
mov eax, dword [0x432575]
test eax, eax
jne 0x405942
mov eax, 0x4312a0
push eax
push 1
mov ebx, 0x130
call fcn.004164c0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.004160b0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x4314e0
push dword [ebp - 0x28]
push str.Content_Length:
push dword [0x432571]
mov ecx, 4
call fcn.00403d87
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4059a5
push ebx
call fcn.004158a2
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [0x432571]
test ebx, ebx
je 0x4059bc
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x432571], eax
push 0x80000004
push 0
mov eax, dword [0x432571]
test eax, eax
jne 0x4059d7
mov eax, 0x4312a0
push eax
push 1
mov ebx, 0x130
call fcn.004164c0
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x80000004
push 0
mov eax, dword [0x432575]
test eax, eax
jne 0x405a02
mov eax, 0x4312a0
push eax
push 1
mov ebx, 0x130
call fcn.004164c0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x28]
push dword [0x432575]
push dword [ebp - 0x24]
push dword [0x432571]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x405a4c
push 6
call fcn.004158ae
add esp, 4
jmp 0x405a5b
mov eax, 0
jmp 0x405ff4
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.00416490
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x405a90
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x405aa7
mov eax, 0x431374
push eax
push 1
mov ebx, 0x194
call fcn.004169b0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405ad1
add eax, 8
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x405af1
push 6
call fcn.004158ae
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x20]
push 0x80000005
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x405b0e
mov eax, 0x431374
push eax
push 2
mov ebx, 0x1a0
call fcn.00416e70
add esp, 0x1c
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [0x432579]
mov ecx, 2
call fcn.004051fb
add esp, 8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x405b4d
push ebx
call fcn.004158a2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [0x432579]
test ebx, ebx
je 0x405b64
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x432579], eax
cmp dword [ebp - 0x20], 0
jne 0x405a5b
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.00416ea0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x43257d]
test ebx, ebx
je 0x405bac
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x43257d], eax
mov dword [ebp - 0x24], esp
push 0
mov eax, 0x400
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x43257d]
push 0x16
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x405bf0
push 6
call fcn.004158ae
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x405c12
push 6
call fcn.004158ae
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x405c34
push 6
call fcn.004158ae
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x405c56
push 6
call fcn.004158ae
add esp, 4
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push str.Set_Cookie:
push 0x80000004
push 0
mov eax, dword [0x43257d]
test eax, eax
jne 0x405c8f
mov eax, 0x4312a0
push eax
push 4
mov ebx, 0x148
call fcn.00416da0
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x405fea
push 0
mov ebx, 0x274
call fcn.00416ee0
add esp, 4
mov dword [ebp - 0x20], eax
push 0x80000004
push 0
mov eax, dword [0x43257d]
test eax, eax
jne 0x405cd9
mov eax, 0x4312a0
push eax
push 0x80000301
push 0
push dword [ebp - 0x20]
push 2
mov ebx, 0x2a0
call fcn.00416f30
add esp, 0x1c
push 0x80000301
push 0
push dword [ebp - 0x20]
push 1
mov ebx, 0x28c
call fcn.004170a0
add esp, 0x10
push 0x80000002
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 0x20]
push 2
mov ebx, 0x2b4
call fcn.00417100
add esp, 0x1c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x405fce
push 0x80000301
push 0
push dword [ebp - 0x20]
push 1
mov ebx, 0x2a4
call fcn.00417260
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x43257d]
test ebx, ebx
je 0x405d7d
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x43257d], eax
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push str.Set_Cookie:
push 0x80000004
push 0
mov eax, dword [0x43257d]
test eax, eax
jne 0x405dbc
mov eax, 0x4312a0
push eax
push 4
mov ebx, 0x148
call fcn.00416da0
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x405fc9
push 0
push 0
push 0
push 0x80000301
push 0
push 0xc
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov eax, dword [0x43257d]
test eax, eax
jne 0x405e0f
mov eax, 0x4312a0
push eax
push 4
mov ebx, 0x17c
call fcn.00417470
add esp, 0x34
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x43257d]
test ebx, ebx
je 0x405e3c
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov dword [0x43257d], eax
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push 0x4313ce
push 0x80000004
push 0
mov eax, dword [0x43257d]
test eax, eax
jne 0x405e7b
mov eax, 0x4312a0
push eax
push 4
mov ebx, 0x148
call fcn.00416da0
add esp, 0x34
mov dword [ebp - 0x18], eax
push dword [ebp - 4]
push str.http:__
mov ecx, 2
call fcn.00403d87
add esp, 8
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x431351]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004027da
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [0x43257d]
test eax, eax
jne 0x405ee0
mov eax, 0x4312a0
push eax
push 2
mov ebx, 0x134
call fcn.004164e0
add esp, 0x1c
mov dword [ebp - 0x38], eax
push 0x80000004
push 0
mov eax, dword [0x43257d]
test eax, eax
jne 0x405f0b
mov eax, 0x4312a0
push eax
push 1
mov ebx, 0x130
call fcn.004164c0
add esp, 0x10
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x4c]
fsub qword [ebp - 0x4c]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
call fcn.004027da
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [0x43257d]
test eax, eax
jne 0x405f5b
mov eax, 0x4312a0
push eax
push 2
mov ebx, 0x138
call fcn.004175d0
add esp, 0x1c
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], esp
push dword [ebp - 0x58]
push dword [ebp - 0x38]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetSetCookieA]
nop
nop
nop
nop
cmp dword [ebp - 0x5c], esp
je 0x405f99
push 6
call fcn.004158ae
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x405fa9
push ebx
call fcn.004158a2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x405fb9
push ebx
call fcn.004158a2
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x405fc9
push ebx
call fcn.004158a2
add esp, 4
jmp 0x405d12
push 0x80000301
push 0
push dword [ebp - 0x20]
push 1
mov ebx, 0x278
call fcn.00417640
add esp, 0x10
mov eax, 1
jmp 0x405ff4
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406005
push ebx
call fcn.004158a2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406015
push ebx
call fcn.004158a2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x406025
push ebx
call fcn.004158a2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret