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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x614180
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 8], 0
je 0x4852a7
cmp dword [ebp + 0xc], 7
jae 0x4852ae
xor eax, eax
jmp 0x4854a4
mov eax, dword [ebp + 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4853a8
cmp dword [ebp - 0x30], 0
je 0x4852e4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x28]
push eax
call fcn.0049c030
add esp, 4
mov dword [ebp - 4], 0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x28]
call fcn.0040e830
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x48533f
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ea10
mov eax, dword [ebp - 0x44]
jmp 0x4854a4
mov dword [ebp - 0x48], 0
push 0
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x28]
call fcn.0040e830
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ea10
mov eax, dword [ebp - 0x50]
jmp 0x4854a4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0058a0d0
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x10], 0
je 0x485408
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4853f7
push 1
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x58], eax
jmp 0x4853fe
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.004809f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00481dc0
push eax
push 1
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
lea ecx, [ebp - 0x34]
call fcn.00481c70
push eax
call fcn.00484070
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x10], 0
je 0x48548b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
call fcn.00484c90
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x10]
call fcn.00484bb0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00481460
mov eax, dword [ebp - 0x5c]
jmp 0x4854a4
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00481460
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 8