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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a830
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x67e4d0]
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 0x4a2877
cmp dword [ebp + 0xc], 7
jae 0x4a287e
xor eax, eax
jmp 0x4a2a74
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 0x4a2978
cmp dword [ebp - 0x30], 0
je 0x4a28b4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x28]
push eax
call fcn.004b9450
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.0040e9d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x4a290f
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
mov eax, dword [ebp - 0x44]
jmp 0x4a2a74
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.0040e9d0
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.0040ebb0
mov eax, dword [ebp - 0x50]
jmp 0x4a2a74
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0058a470
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 0x4a29d8
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 0x4a29c7
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 0x4a29ce
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.0049dfc0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0049f390
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.0049f240
push eax
call fcn.004a1640
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x10], 0
je 0x4a2a5b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
call fcn.004a2260
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x10]
call fcn.004a2180
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.0049ea30
mov eax, dword [ebp - 0x5c]
jmp 0x4a2a74
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0049ea30
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.00536569
mov esp, ebp
pop ebp
ret 8