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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a2c
call fcn.1004d650
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x2a14], eax
xor esi, esi
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2a10], eax
mov eax, dword [ebp + 0x1c]
push 0x103
mov dword [ebp - 0x2a1c], eax
lea eax, [ebp - 0x20b]
push esi
push eax
mov dword [ebp - 0x2a2c], 0x10070f34
mov dword [ebp - 0x2a28], 0
mov byte [ebp - 0x20c], 0
call fcn.1004cee0
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push esi
push eax
call fcn.1004cee0
add esp, 0x18
cmp dword [ebp - 0x2a1c], esi
je 0x100368fd
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
push esi
push 0x1007d874
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100368fd
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_US__AppleWebKit_534.10__KHTML__like_Gecko__Chrome_8.0.552.215_Safari_534.10
call dword [sym.imp.WININET.dll_InternetOpenA]
push 1
push 0
push 3
push 0x1007aace
push 0x1007aace
push dword [ebp + 0xc]
mov dword [ebp - 0x2a24], eax
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
push 1
push 0x4000000
lea ecx, [ebp - 0x2a2c]
mov dword [ebp - 0x2a20], eax
push ecx
push dword [ebp - 0x2a10]
push str.HTTP_1.0
push dword [ebp - 0x2a14]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, ebx
mov edi, eax
lea eax, [edx + 1]
lea esp, [esp]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10036970
sub edx, eax
push edx
push ebx
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x2a10], eax
test esi, esi
je 0x10036a71
push 0x2800
lea eax, [ebp - 0x2a0c]
mov dword [ebp - 0x2a18], 0
push 0
push eax
mov dword [ebp - 0x2a14], 0
call fcn.1004cee0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
jmp 0x100369d0
lea eax, [ebp - 0x2a18]
push eax
push 0x27ff
lea eax, [ebp - 0x2a0c]
push eax
push edi
call ebx
test eax, eax
je 0x10036a3c
mov eax, dword [ebp - 0x2a18]
test eax, eax
je 0x10036a3c
cmp eax, 0x2800
jae 0x10036aa3
push 0
lea ecx, [ebp - 0x2a14]
mov byte [ebp + eax - 0x2a0c], 0
push ecx
push eax
lea eax, [ebp - 0x2a0c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10036a31
mov eax, dword [ebp - 0x2a14]
cmp eax, dword [ebp - 0x2a18]
je 0x100369d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x10036a77
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x2a10]
test ebx, ebx
je 0x10036a77
mov ecx, dword [ebp + 0x20]
lea eax, [ebp - 0x108]
push eax
push 0x10070e74
lea eax, [ecx - 1]
push eax
push ecx
push dword [ebp - 0x2a1c]
call fcn.1004a7c2
add esp, 0x14
jmp 0x10036a77
mov ebx, dword [ebp - 0x2a10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x2a20]
call esi
push dword [ebp - 0x2a24]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret
call fcn.1004a250
int3