Function at 0x40bb10
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5342be
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x8a0
mov eax, dword [0x56d940]
xor eax, ebp
mov dword [ebp - 0x34], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
je 0x40bbae
push ecx
mov ecx, esp
mov dword [ebp - 0x850], esp
lea eax, [ebp + 0xc]
push eax
call fcn.00402c30
mov dword [ebp - 0x888], eax
call fcn.004be100
add esp, 4
mov dword [ebp - 0x88c], eax
cmp dword [ebp - 0x88c], 0
je 0x40bbae
mov dword [ebp - 0x854], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov eax, dword [ebp - 0x854]
jmp 0x40c065
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x24]
call fcn.004e381d
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push 0
push 0x552588
lea ecx, [ebp + 8]
call fcn.00402e50
test eax, eax
jge 0x40bc23
mov dword [ebp - 0x858], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004e402c
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov eax, dword [ebp - 0x858]
jmp 0x40c065
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00402c10
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x85c], esp
lea edx, [ebp + 8]
push edx
call fcn.00402c30
mov dword [ebp - 0x890], eax
lea eax, [ebp - 0x860]
push eax
call fcn.004b25c0
add esp, 8
mov dword [ebp - 0x894], eax
mov ecx, dword [ebp - 0x894]
mov dword [ebp - 0x898], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x898]
push edx
lea ecx, [ebp - 0x840]
call fcn.00402cf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x860]
call fcn.00402cd0
lea ecx, [ebp - 0x840]
call fcn.00403460
movzx eax, al
test eax, eax
jne 0x40bcc7
lea ecx, [ebp + 8]
call fcn.00420f50
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea ecx, [ebp - 0x840]
call fcn.00420f50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x7d0
push 2
lea ecx, [ebp - 0x24]
call fcn.0040b550
push 0
push 0
push 0x80400002
push 0
lea ecx, [ebp + 8]
call fcn.00420f50
push eax
lea ecx, [ebp - 0x24]
call fcn.004e44c9
mov dword [ebp - 0x89c], eax
mov ecx, dword [ebp - 0x89c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040c090
add esp, 4
mov dword [ebp - 0x8a0], eax
mov ecx, dword [ebp - 0x8a0]
mov dword [ebp - 0x83c], ecx
cmp dword [ebp - 0x83c], 0
je 0x40bd7b
mov dword [ebp - 0x864], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00402cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004e402c
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov eax, dword [ebp - 0x864]
jmp 0x40c065
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
lea ecx, [ebp + 0xc]
call fcn.00420f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40bdf0
mov dword [ebp - 0x868], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00402cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004e402c
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov eax, dword [ebp - 0x868]
jmp 0x40c065
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0
push 0x400
lea edx, [ebp - 0x838]
push edx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 0x8a4], eax
mov ecx, dword [ebp - 0x8a4]
mov dword [ebp - 0x848], ecx
push 0
lea edx, [ebp - 0x844]
push edx
mov eax, dword [ebp - 0x848]
push eax
lea ecx, [ebp - 0x838]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x848], 0
jg 0x40be04
cmp dword [ebp - 0x28], 0
je 0x40bec4
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x870], ecx
mov edx, dword [ebp - 0x870]
mov dword [ebp - 0x86c], edx
cmp dword [ebp - 0x86c], 0
je 0x40beb3
push 1
mov eax, dword [ebp - 0x86c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x86c]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x8a8], eax
mov ecx, dword [ebp - 0x8a8]
mov dword [ebp - 0x8ac], ecx
jmp 0x40bebd
mov dword [ebp - 0x8ac], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x24]
call fcn.004e3eb6
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x874], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00402cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004e402c
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov eax, dword [ebp - 0x874]
jmp 0x40c065
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.005007b7
mov esp, ebp
pop ebp
ret