Function at 0x403100
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x404
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov edi, dword [esp + 0x418]
push str.output_file_write
push esi
push edi
mov ebp, 1
mov dword [esp + 0x1c], 0
call fcn.004030f0
mov ecx, dword [esp + 0x42c]
add esp, 0xc
lea eax, [esp + 0x310]
push 0
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x4033fb
cmp eax, 0x104
ja 0x4033fb
push 0x100
push esi
push ebp
lea edx, [esp + 0x31c]
push str.Printer
push edx
push edi
call fcn.00403010
add esp, 0x18
test eax, eax
je 0x403276
mov eax, dword [esi + 0x200]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp eax, ebp
jne 0x4031cd
mov eax, dword [esi + 0x2dc]
lea ecx, [esp + 0x14]
push eax
push 0x4052e0
push 0x20
push ecx
call fcn.00403410
add esp, 0x10
lea edx, [esp + 0x310]
lea eax, [esp + 0x14]
push edx
push eax
push str.text.FontChange
push str.MAKEWM
call edi
mov ecx, dword [esi + 0x20c]
lea edx, [esp + 0x14]
push ecx
push 0x4052e0
push 0x20
push edx
call fcn.00403410
add esp, 0x10
lea eax, [esp + 0x310]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.Size.x
push str.MAKEWM
call edi
mov edx, dword [esi + 0x210]
lea eax, [esp + 0x14]
push edx
push 0x4052e0
push 0x20
push eax
call fcn.00403410
add esp, 0x10
lea ecx, [esp + 0x310]
lea edx, [esp + 0x14]
push ecx
push edx
push str.Size.y
push str.MAKEWM
call edi
mov eax, dword [esi + 0x214]
lea ecx, [esp + 0x14]
push eax
push 0x4052e0
push 0x20
push ecx
call fcn.00403410
add esp, 0x10
lea edx, [esp + 0x310]
lea eax, [esp + 0x14]
push edx
push eax
push str.Result
push str.MAKEWM
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
push 0
push 0x80
push 3
push 0
push ebp
lea ecx, [esp + 0x324]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4032a9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x2dc
jne 0x403269
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
push 0x100
lea edx, [esp + 0x38]
push esi
push edx
call edi
lea eax, [esi + 0x100]
push 0x100
lea ecx, [esp + 0x144]
push eax
push ecx
call edi
lea edx, [esi + 0x218]
push 0x80
lea eax, [esp + 0x250]
push edx
push eax
call edi
lea ecx, [esi + 0x298]
push 0x20
lea edx, [esp + 0x2dc]
push ecx
push edx
call edi
mov eax, dword [esi + 0x2b8]
mov ecx, dword [esi + 0x20c]
mov edx, dword [esi + 0x210]
mov dword [esp + 0x304], eax
mov eax, dword [esi + 0x2bc]
mov dword [esp + 0x308], ecx
mov ecx, dword [esi + 0x2c0]
mov dword [esp + 0x310], eax
mov eax, dword [esi + 0x2c8]
mov dword [esp + 0x314], ecx
mov ecx, dword [esi + 0x2cc]
mov dword [esp + 0x31c], eax
mov eax, dword [esi + 0x204]
mov dword [esp + 0x30c], edx
mov edx, dword [esi + 0x2c4]
mov dword [esp + 0x320], ecx
mov ecx, dword [esi + 0x214]
mov dword [esp + 0x328], eax
mov eax, dword [esi + 0x2d4]
mov dword [esp + 0x318], edx
mov edx, dword [esi + 0x2d0]
add esp, 0x30
mov dword [esp + 0x2fc], ecx
mov ecx, dword [esi + 0x2dc]
mov dword [esp + 0x304], eax
mov dword [esp + 0x2f4], edx
mov edx, dword [esi + 0x208]
lea eax, [esp + 0x10]
mov dword [esp + 0x308], ecx
push 0
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x308], edx
mov edx, dword [esi + 0x2d8]
push 0x2dc
push ecx
push ebx
mov dword [esp + 0x320], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4033fb
cmp dword [esp + 0x10], 0x2dc
je 0x403269
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret