Function at 0x40a8aa
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x4290c8]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
push str.GetHttpRequest__s_n
call fcn.0040b9f0
xor ebx, ebx
cmp dword [0x42b680], ebx
pop ecx
pop ecx
je 0x40ab04
cmp dword [0x42b474], ebx
je 0x40ab04
xor eax, eax
mov dword [ebp - 0x14], 0x86010821
mov word [ebp - 0x10], 0x5108
mov word [ebp - 0xe], 0x800
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411ecf
pop ecx
lea eax, [ebp - 0x528]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x42485c
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x21c]
push 0x2e
push eax
call fcn.00410e35
pop ecx
pop ecx
push str..dju
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x21c]
push eax
push str.GetHttpRequest_before_AddJob__s_n
call fcn.0040b9f0
pop ecx
pop ecx
push ebx
push ebx
push esi
lea eax, [ebp - 0x320]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, 0x424d50
jmp 0x40a9e2
cmp dword [ebp - 0x52c], 0x64
je 0x40aa55
cmp dword [ebp + 0xc], ebx
jne 0x40a9b4
dec dword [ebp + 0x10]
cmp dword [ebp + 0x10], ebx
jle 0x40aafd
lea eax, [ebp - 0x21c]
push eax
push str.GetHttpRequest_before_AddJob__s_n
call fcn.0040b9f0
pop ecx
pop ecx
push ebx
push ebx
push esi
lea eax, [ebp - 0x320]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x42b474]
mov ecx, dword [eax]
push ebx
push 0x42488c
lea edx, [ebp - 0x21c]
push edx
lea edx, [ebp - 0x320]
push edx
push edi
push edi
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x3c]
push str.GetHttpRequest_after_AddJob_n
call fcn.0040b9f0
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
lea eax, [ebp - 0x21c]
inc ecx
push eax
call fcn.0040a55b
push eax
push 0x4247ac
mov dword [ebp - 0x52c], eax
call fcn.0040b9f0
add esp, 0xc
cmp dword [ebp - 0x52c], ebx
jge 0x40a996
mov esi, dword [ebp - 0x52c]
jmp 0x40aa97
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x40aa60
push 0x50
jmp 0x40aa96
call fcn.00405fcd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40aaaf
push 0xfffffffffffffffe
pop esi
mov eax, dword [0x42b474]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [ecx + 0x44]
mov eax, esi
jmp 0x40ab07
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x52c], eax
push eax
mov eax, esi
call fcn.0040ab14
push ebx
lea ecx, [ebp - 0x530]
push ecx
push dword [ebp - 0x52c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x42b474]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [ecx + 0x44]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
jmp 0x40ab07
mov esi, 0xfffffc0e
jmp 0x40aa97
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00412aab
leave
ret