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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540750
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5854b4]
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 0x46cc87
cmp dword [ebp + 0xc], 7
jae 0x46cc8e
xor eax, eax
jmp 0x46ce84
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 0x46cd88
cmp dword [ebp - 0x30], 0
je 0x46ccc4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x28]
push eax
call fcn.0047f2e0
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.00457ae0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x46cd1f
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00428550
mov eax, dword [ebp - 0x44]
jmp 0x46ce84
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.00457ae0
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.00428550
mov eax, dword [ebp - 0x50]
jmp 0x46ce84
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00510d00
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 0x46cde8
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 0x46cdd7
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 0x46cdde
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.0040b440
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00407fd0
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.00406cd0
push eax
call fcn.0046bb60
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x10], 0
je 0x46ce6b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
call fcn.0046c6d0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x10]
call fcn.0046c630
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.00406810
mov eax, dword [ebp - 0x5c]
jmp 0x46ce84
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406810
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.004d77de
mov esp, ebp
pop ebp
ret 8