Function at 0x4094d0
Capabilities:
Delete file
Download url
Get common file path
Get file size
Read file on windows
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x41a190]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
mov ebp, dword [esp + 0x420]
push esi
push edi
lea eax, [esp + 0x20]
push eax
push 0x400
mov edi, ecx
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x20]
push ecx
push 4
push 0x4236f4
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [esp + 0x42c]
push eax
lea ebx, [edi + 4]
push ebp
mov ecx, ebx
call fcn.00401630
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
lea eax, [edx + edi + 0x14]
push eax
call fcn.00405930
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
mov esi, eax
lea eax, [edx + edi + 4]
push eax
call fcn.00405930
add esi, eax
lea eax, [edi + 0x14]
push eax
call fcn.00405930
mov ecx, dword [esp + 0x1c]
add eax, esi
lea edx, [eax + ecx*2 + 0xa0]
push edx
call fcn.00402260
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x409584
or eax, 0xffffffff
jmp 0x4096f9
lea eax, [edi + 0x14]
push eax
push 0x4236f0
push esi
call fcn.004060b0
mov eax, dword [edi]
push esi
mov dword [esp + 0x28], eax
call fcn.00405930
mov edx, dword [esp + 0x28]
add eax, esi
add esp, 0x10
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x430]
lea eax, [edx + edi]
xor edx, edx
cmp ecx, 0xffffffff
sete dl
push edx
push ecx
lea ecx, [eax + 0x14]
push ecx
add eax, 4
push eax
push 0x4236d4
call fcn.00401580
add esp, 4
push eax
push esi
call fcn.00405930
add eax, esi
add esp, 4
push eax
call fcn.004060b0
push esi
call fcn.00405930
mov edx, dword [esp + 0x2c]
add esp, 0x1c
add eax, esi
push eax
push edx
push ebp
mov ecx, ebx
call fcn.004093b0
push 0
push 0
lea eax, [esp + 0x28]
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x4096ec
push eax
push eax
push 3
push eax
push 1
push 0x80000000
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x4096ec
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jg 0x409670
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x4096f9
lea eax, [ebp + 1]
push eax
call fcn.00402260
mov ecx, dword [esp + 0x14]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x409689
push ecx
jmp 0x409658
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4096cd
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x1c], 0
jbe 0x4096e3
mov byte [ebx + ebp], 0
mov edx, dword [edi]
mov eax, dword [edx]
push ebx
mov ecx, edi
call eax
mov dword [esp + 0x14], eax
jmp 0x4096e3
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call fcn.00402280
add esp, 4
push esi
call fcn.00402280
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040acd2
add esp, 0x414
ret 0xc