Function at 0x40add0
Capabilities:
Delete file
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f139
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], ecx
lea ecx, [ebp - 0x6c]
call fcn.004086c0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004086f0
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xf0]
push edx
lea eax, [ebp - 0xd4]
push eax
call fcn.0040a9f0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00408830
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x48]
call fcn.004086f0
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.0040a9f0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.00408830
mov ecx, dword [ebp - 0xe8]
call fcn.0040acc0
mov byte [ebp - 0xb5], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xb4], 0
push 0
push 0
push 0
lea ecx, [ebp - 0xd4]
call fcn.00409b80
push eax
mov ecx, dword [ebp - 0xe8]
call fcn.0040cb10
movzx edx, al
test edx, edx
jne 0x40af2f
mov byte [ebp - 0xdd], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00409b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00408830
mov al, byte [ebp - 0xdd]
jmp 0x40b368
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0xe8]
call fcn.0040c2a0
movzx ecx, al
test ecx, ecx
jne 0x40af91
mov edx, dword [ebp - 0xe8]
mov dword [edx + 0x28], 4
mov byte [ebp - 0xde], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00409b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00408830
mov al, byte [ebp - 0xde]
jmp 0x40b368
lea ecx, [ebp - 0xac]
call fcn.00409a70
mov byte [ebp - 4], 7
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xe8]
call fcn.0040c210
mov byte [ebp - 0xad], al
movzx ecx, byte [ebp - 0xad]
test ecx, ecx
je 0x40b038
push 0
push 0x48e3d8
lea ecx, [ebp - 0xac]
call fcn.0040cef0
cmp eax, dword [0x490c18]
je 0x40b038
mov edx, dword [ebp - 0xe8]
mov dword [edx + 0x28], 5
mov byte [ebp - 0xdf], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call fcn.00409b30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00409b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00408830
mov al, byte [ebp - 0xdf]
jmp 0x40b368
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x88]
call fcn.00409b80
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0xffffffff
jne 0x40b0c6
mov eax, dword [ebp - 0xe8]
mov dword [eax + 0x28], 7
mov byte [ebp - 0xe0], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call fcn.00409b30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00409b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00408830
mov al, byte [ebp - 0xe0]
jmp 0x40b368
push 0
push 0
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push 0
push 0
push 0
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40b180
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x88]
call fcn.00409b80
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 0xe1], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call fcn.00409b30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00409b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00408830
mov al, byte [ebp - 0xe1]
jmp 0x40b368
push 0x100000
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x8c], eax
mov eax, 1
test eax, eax
je 0x40b2e1
cmp dword [ebp - 0x4c], 0x100000
jbe 0x40b1ca
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.0042ec89
add esp, 4
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40b1f5
jmp 0x40b2e1
push 0
lea edx, [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40b22b
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xdc]
je 0x40b230
jmp 0x40b2e1
mov ecx, dword [ebp - 0xb4]
add ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xe8]
cmp dword [edx + 0x24], 0
je 0x40b2b3
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], 0
fild qword [ebp - 0x100]
sub esp, 8
fstp qword [esp]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], 0
fild qword [ebp - 0x108]
sub esp, 8
fstp qword [esp]
push 0
mov edx, dword [ebp - 0xe8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 0x24]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0xe8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40b2cd
jmp 0x40b2e1
cmp dword [ebp - 0x4c], 0
ja 0x40b2dc
mov byte [ebp - 0xb5], 1
jmp 0x40b2e1
jmp 0x40b193
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.0042ec89
add esp, 4
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
movzx eax, byte [ebp - 0xb5]
test eax, eax
jne 0x40b31a
lea ecx, [ebp - 0x88]
call fcn.00409b80
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov cl, byte [ebp - 0xb5]
mov byte [ebp - 0xe2], cl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call fcn.00409b30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00409b30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00408830
mov al, byte [ebp - 0xe2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 8