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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cb90
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x546330]
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 0x45bce7
cmp dword [ebp + 0xc], 7
jae 0x45bcee
xor eax, eax
jmp 0x45bee4
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 0x45bde8
cmp dword [ebp - 0x30], 0
je 0x45bd24
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x28]
push eax
call fcn.0046def0
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.00405080
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x45bd7f
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050b0
mov eax, dword [ebp - 0x44]
jmp 0x45bee4
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.00405080
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.004050b0
mov eax, dword [ebp - 0x50]
jmp 0x45bee4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004e2000
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 0x45be48
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 0x45be37
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 0x45be3e
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.00458120
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00428360
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.00421a30
push eax
call fcn.0045abc0
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x10], 0
je 0x45becb
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
call fcn.0045b730
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x10]
call fcn.0045b690
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.004587d0
mov eax, dword [ebp - 0x5c]
jmp 0x45bee4
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004587d0
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.004bd6ac
mov esp, ebp
pop ebp
ret 8