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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47efe7
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
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 - 0x18c], ecx
push 0xa
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004301f0
add esp, 0xc
push 0xa
lea edx, [ebp - 0xa8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + eax - 1]
push edx
call fcn.004301f0
add esp, 0xc
push 0x48e3fc
lea ecx, [ebp - 0x2c]
call fcn.0040ce20
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x194]
push ecx
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0040d950
add esp, 0xc
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
mov dword [ebp - 0x19c], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.0040d990
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00409b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00409b30
lea ecx, [ebp - 0xcc]
call fcn.004086c0
mov byte [ebp - 4], 5
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x64]
call fcn.004086f0
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1a4]
push ecx
lea edx, [ebp - 0x15c]
push edx
call fcn.0040a9f0
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x64]
call fcn.00408830
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x80]
call fcn.004086f0
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1ac]
push edx
lea eax, [ebp - 0xe8]
push eax
call fcn.0040a9f0
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x80]
call fcn.00408830
mov ecx, dword [ebp - 0x18c]
call fcn.0040acc0
mov byte [ebp - 0x13d], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x13c], 0
lea ecx, [ebp - 0x178]
call fcn.00409b80
push eax
push 0
push 0
lea ecx, [ebp - 0x15c]
call fcn.00409b80
push eax
mov ecx, dword [ebp - 0x18c]
call fcn.0040cb10
movzx ecx, al
test ecx, ecx
jne 0x40c56d
mov byte [ebp - 0x181], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.00409b30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x15c]
call fcn.00409b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.00408830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00409b30
mov al, byte [ebp - 0x181]
jmp 0x40ca21
lea edx, [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0x18c]
call fcn.0040c2a0
movzx eax, al
test eax, eax
jne 0x40c5e4
mov ecx, dword [ebp - 0x18c]
mov dword [ecx + 0x28], 4
mov byte [ebp - 0x182], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.00409b30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x15c]
call fcn.00409b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.00408830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00409b30
mov al, byte [ebp - 0x182]
jmp 0x40ca21
lea ecx, [ebp - 0x134]
call fcn.00409a70
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x134]
push edx
mov ecx, dword [ebp - 0x18c]
call fcn.0040c210
mov byte [ebp - 0x135], al
movzx eax, byte [ebp - 0x135]
test eax, eax
je 0x40c6a1
push 0
push 0x48e400
lea ecx, [ebp - 0x134]
call fcn.0040cef0
cmp eax, dword [0x490c18]
je 0x40c6a1
mov ecx, dword [ebp - 0x18c]
mov dword [ecx + 0x28], 5
mov byte [ebp - 0x183], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x134]
call fcn.00409b30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.00409b30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x15c]
call fcn.00409b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.00408830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00409b30
mov al, byte [ebp - 0x183]
jmp 0x40ca21
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0xe8]
call fcn.00409b80
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x40c741
mov edx, dword [ebp - 0x18c]
mov dword [edx + 0x28], 7
mov byte [ebp - 0x184], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x134]
call fcn.00409b30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.00409b30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x15c]
call fcn.00409b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.00408830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00409b30
mov al, byte [ebp - 0x184]
jmp 0x40ca21
push 0
push 0
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push 0
push 0
push 0
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea ecx, [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40c813
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0xe8]
call fcn.00409b80
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 0x185], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x134]
call fcn.00409b30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.00409b30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x15c]
call fcn.00409b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.00408830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00409b30
mov al, byte [ebp - 0x185]
jmp 0x40ca21
push 0x100000
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0xec], eax
mov edx, 1
test edx, edx
je 0x40c988
cmp dword [ebp - 0xac], 0x100000
jbe 0x40c863
mov eax, dword [ebp - 0xec]
push eax
call fcn.0042ec89
add esp, 4
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0xec], eax
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40c891
jmp 0x40c988
push 0
lea ecx, [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40c8c7
mov edx, dword [ebp - 0x17c]
cmp edx, dword [ebp - 0x180]
je 0x40c8cc
jmp 0x40c988
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x17c]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x18c]
cmp dword [ecx + 0x24], 0
je 0x40c954
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x1b4], edx
mov dword [ebp - 0x1b0], 0
fild qword [ebp - 0x1b4]
sub esp, 8
fstp qword [esp]
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1b8], 0
fild qword [ebp - 0x1bc]
sub esp, 8
fstp qword [esp]
push 0
mov ecx, dword [ebp - 0x18c]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x24]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40c971
jmp 0x40c988
cmp dword [ebp - 0xac], 0
ja 0x40c983
mov byte [ebp - 0x13d], 1
jmp 0x40c988
jmp 0x40c826
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.0042ec89
add esp, 4
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
movzx eax, byte [ebp - 0x13d]
test eax, eax
jne 0x40c9c1
lea ecx, [ebp - 0xe8]
call fcn.00409b80
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov cl, byte [ebp - 0x13d]
mov byte [ebp - 0x186], cl
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x134]
call fcn.00409b30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe8]
call fcn.00409b30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x15c]
call fcn.00409b30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.00408830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.00409b30
mov al, byte [ebp - 0x186]
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 0x10