Function at 0x72ef3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x30], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 9], al
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x72f1cc
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00653ad8
test al, al
jne 0x72ef8a
mov ecx, 0x72f1ec
mov dl, 1
mov eax, dword [0x72e70c]
call fcn.0042cd90
call fcn.00409610
movzx eax, si
imul ebx
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 9]
call fcn.0072e7c4
mov esi, eax
movzx eax, byte [ebp - 9]
add eax, 0x41
dec eax
mov word [ebp - 0x1a], ax
cmp esi, 0xffffffff
jne 0x72efed
movzx eax, word [ebp - 0x1a]
mov word [ebp - 0x2c], ax
mov byte [ebp - 0x28], 9
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x30]
call fcn.0042be2c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea eax, [ebp - 0x2c]
push eax
push 1
mov ecx, 0x72f240
mov dl, 1
mov eax, dword [0x72e5b4]
call fcn.0042cdcc
call fcn.00409610
mov eax, ebx
dec eax
and eax, edi
sete byte [ebp - 0x1b]
cmp byte [ebp - 0x1b], 0
je 0x72f001
mov dword [ebp - 0x18], edi
jmp 0x72f016
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.00406900
xor edx, edx
push ebp
push 0x72f1a2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.0040bf20
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ebx, 3
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
setne al
test al, al
jne 0x72f069
dec ebx
jne 0x72f04c
test al, al
jne 0x72f0b6
lea eax, [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x10
movzx eax, word [ebp - 0x1a]
mov word [ebp - 0x40], ax
mov byte [ebp - 0x3c], 9
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x4c]
call fcn.0042be2c
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0x11
lea eax, [ebp - 0x48]
push eax
push 2
mov ecx, 0x72f2b0
mov dl, 1
mov eax, dword [0x72e664]
call fcn.0042cdcc
call fcn.00409610
mov ebx, 3
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x72f0dc
dec ebx
jne 0x72f0bb
test al, al
jne 0x72f129
lea eax, [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x10
movzx eax, word [ebp - 0x1a]
mov word [ebp - 0x40], ax
mov byte [ebp - 0x3c], 9
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x50]
call fcn.0042be2c
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0x11
lea eax, [ebp - 0x48]
push eax
push 2
mov ecx, 0x72f2b0
mov dl, 1
mov eax, dword [0x72e664]
call fcn.0042cdcc
call fcn.00409610
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x72f17a
lea eax, [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x10
movzx eax, word [ebp - 0x1a]
mov word [ebp - 0x40], ax
mov byte [ebp - 0x3c], 9
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x54]
call fcn.0042be2c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0x11
lea eax, [ebp - 0x48]
push eax
push 2
mov ecx, 0x72f2b0
mov dl, 1
mov eax, dword [0x72e664]
call fcn.0042cdcc
call fcn.00409610
mov byte [ebp - 0xa], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x72f1a9
cmp byte [ebp - 0x1b], 0
jne 0x72f1a1
push 0x8000
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualFree_1
ret