Function at 0x4099cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov ecx, 0
mov eax, 0x18
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x38], ecx
add eax, 4
cmp eax, edx
jb 0x4099ff
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [esp + 4], 1
mov dword [esp], str.Kernel32.dll
call fcn.00403ba7
mov dword [esp + 8], 0
mov dword [esp + 4], 0x968d0d41
mov dword [esp], eax
call fcn.00403a28
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x409bf2
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00409413
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x409acb
mov dword [esp], 1
mov eax, dword [fcn.0040b0f0]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x23
mov dword [esp + 4], 1
mov dword [esp], str.Could_not_find_file_for_transaction
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
mov eax, dword [fcn.0040b0f0]
call eax
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
jmp 0x409bfc
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1f003f
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004033e5
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
js 0x409bf5
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0x28
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x409bf8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x44]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00403193
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
js 0x409bfb
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov dword [ebp - 0xc], 1
jmp 0x409bfc
nop
jmp 0x409bfc
nop
jmp 0x409bfc
nop
jmp 0x409bfc
nop
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409c59
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409c59
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x20]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret