Function at 0x46c6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0x38
call fcn.0046d010
movzx eax, al
test eax, eax
je 0x46c6d2
xor eax, eax
jmp 0x46c8b2
mov ecx, dword [ebp - 0x34]
add ecx, 0x38
call fcn.0046cff0
imul eax, eax, 0x224
add eax, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004c0b42
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x46c70b
xor eax, eax
jmp 0x46c8b2
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c1bc0
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [eax], 1
mov ecx, dword [ebp - 0x34]
add ecx, 0x38
call fcn.0046cff0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], 0x54523251
mov eax, dword [ebp - 4]
add eax, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
jmp 0x46c762
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x34]
add ecx, 0x38
call fcn.0046cff0
cmp dword [ebp - 0x1c], eax
jae 0x46c7a1
push 0x224
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x34]
add ecx, 0x38
call fcn.0046d030
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004c1850
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0x224
mov dword [ebp - 0x18], ecx
jmp 0x46c759
mov edx, dword [ebp - 4]
add edx, 0xc
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], 0
jmp 0x46c7bc
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
sub ecx, 0xc
cmp dword [ebp - 0x20], ecx
jae 0x46c7ed
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x20]
movzx eax, byte [edx]
test eax, eax
je 0x46c7eb
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
xor edx, 0x57443254
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
mov byte [eax], dl
jmp 0x46c7b3
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x46c832
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c1748
add esp, 4
mov dword [ebp - 4], 0
xor eax, eax
jmp 0x46c8b2
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46c883
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004c1748
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
xor eax, eax
jmp 0x46c8b2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004c1748
add esp, 4
mov dword [ebp - 4], 0
mov eax, 1
mov esp, ebp
pop ebp
ret 4