Function at 0x40ede0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
xor eax, eax
mov dword [esp + 0x28], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
push str.Margin
lea eax, [esp + 0x2c]
push eax
call esi
push 0x4173ec
lea ecx, [esp + 0x2c]
push ecx
call esi
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, dword [ebp + 8]
and esi, 1
test eax, eax
je 0x40ee5d
cmp eax, 1
je 0x40ee5d
mov eax, dword [0x41b388]
and eax, 1
imul eax, eax, 0x148
add eax, 0x41b430
add eax, 0x30
mov dword [esp + 0x10], 0x419c0c
mov dword [esp + 0xc], eax
jmp 0x40ee80
xor eax, eax
mov dword [esp + 0x28], 0x5b0a0d
mov ecx, 0x18
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ecx
lea edx, [esp + 0x2c]
push edx
call edi
push 0x4173ec
lea eax, [esp + 0x2c]
push eax
call edi
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0xc]
mov ecx, dword [edi - 4]
push ecx
push str.Left
lea edx, [esp + 0x168]
push str._s_d_r_n
push edx
and esi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x16c]
push edx
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi]
push eax
push 0x4174dc
lea ecx, [esp + 0x98]
push str._s_d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x9c]
push edx
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 4]
push eax
push str.Right
lea ecx, [esp + 0x100]
push str._s_d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0xf8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x104]
push edx
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 8]
push eax
push str.Bottom
lea ecx, [esp + 0x1d0]
push str._s_d_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x1c8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x1d4]
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [esp + 0x10]
add eax, 4
add edi, 0x10
cmp eax, 0x419c1c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
jl 0x40ee80
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret