Function at 0x4062a2
Capabilities:
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x17ec]
mov eax, 0x17ec
call fcn.0041fcd0
push 0xffffffffffffffff
push 0x437542
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x17e8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x17f4]
mov dword [ebp - 0x18], eax
push 3
pop edi
push dword [ebp + 0x1800]
mov dword [ebp - 4], edi
call fcn.0041fcc7
pop ecx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows_NT_6.1__AppleWebKit_536.5__KHTML__like_Gecko__Chrome_19.0.1084.46_Safari_536.5
mov esi, eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x406371
mov ecx, dword [ebp + 0x17fc]
add ecx, 0xfffffff0
call fcn.00404981
mov ecx, dword [ebp + 0x1800]
add ecx, 0xfffffff0
call fcn.00404981
mov ecx, dword [ebp + 0x1804]
add ecx, 0xfffffff0
call fcn.00404981
mov ecx, dword [ebp + 0x1808]
add ecx, 0xfffffff0
call fcn.00404981
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x17e8]
xor ecx, ebp
call fcn.0041f54a
add ebp, 0x17ec
leave
ret
push ebx
push ebx
push edi
push ebx
push ebx
push esi
mov esi, dword [ebp + 0x17fc]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x406391
lea ecx, [esi - 0x10]
jmp 0x40631d
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x1804]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x40655a
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x1c]
push eax
push 5
push edi
mov dword [ebp - 0x1c], 0x1388
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 8
push edi
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 7
push edi
call esi
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov edi, 0xa0000000
push edi
push 0xffffffffffffffff
push str.Content_type:_application_x_www_form_urlencoded_r_n
push dword [ebp - 0x14]
call esi
push edi
push 0xffffffffffffffff
push str.Accept:__r_n
push dword [ebp - 0x14]
call esi
push edi
push 0xffffffffffffffff
push str.Accept_Charset:utf_8_r_n
push dword [ebp - 0x14]
call esi
push edi
mov edi, dword [ebp - 0x14]
push 0xffffffffffffffff
push str.Accept_Language:zh_CN_r_n
push edi
call esi
push dword [ebp + 0x17f8]
push dword [ebp - 0x18]
push ebx
push edi
call fcn.0040450f
add esp, 0x10
test al, al
je 0x40654c
mov eax, dword [ebp + 0x1808]
cmp dword [eax - 0xc], ebx
mov byte [ebp - 0xd], 1
je 0x4064e8
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40654f
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
push 0x3e7
lea eax, [ebp + 0x1401]
push ebx
push eax
mov byte [ebp + 0x1400], bl
call fcn.0041f640
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x3e8
lea eax, [ebp + 0x1400]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4064da
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0x1400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], ebx
jne 0x40648e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40654f
push 0x13ff
lea eax, [ebp + 1]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp], bl
call fcn.0041f640
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x1400
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40654f
cmp dword [ebp - 0x14], ebx
jbe 0x40654f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.004060d1
push 0x43bcb8
push dword [ebp - 0x18]
call fcn.0041e8bc
test eax, eax
pop ecx
pop ecx
je 0x40653f
mov byte [ebp - 0xd], bl
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404981
jmp 0x40654f
mov byte [ebp - 0xd], bl
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x40655d
mov byte [ebp - 0xd], bl
push dword [ebp - 0x24]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
test eax, eax
jne 0x40656f
mov byte [ebp - 0xd], bl
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x4065b7
mov ecx, dword [ebp + 0x17fc]
add ecx, 0xfffffff0
call fcn.00404981
mov ecx, dword [ebp + 0x1800]
add ecx, 0xfffffff0
call fcn.00404981
mov ecx, dword [ebp + 0x1804]
add ecx, 0xfffffff0
call fcn.00404981
mov ecx, dword [ebp + 0x1808]
add ecx, 0xfffffff0
call fcn.00404981
mov al, bl
jmp 0x40634e
mov bl, byte [ebp - 0xd]
jmp 0x406578