Function at 0x40f200
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x68
mov eax, dword [edi]
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push eax
push str.Flag
lea ecx, [esp + 0x14]
push str._s_08x_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, dword [edi + 4]
push eax
push 0x417474
lea ecx, [esp + 0x14]
push str._s_08x_r_n
push ecx
and esi, 1
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 8]
push eax
push 0x417470
lea ecx, [esp + 0x14]
push str._s_08x_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 0xc]
push eax
push str.Frame1
lea ecx, [esp + 0x14]
push str._s_08x_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 8], eax
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 0x10]
push eax
push str.Frame2
lea ecx, [esp + 0x14]
push str._s_08x_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 0x14]
push eax
push str.TextClr1
lea ecx, [esp + 0x14]
push str._s_08x_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 0x18]
push eax
push str.TextClr2
lea ecx, [esp + 0x14]
push str._s_08x_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 0x1c]
push eax
push str.ShadowAlpha
lea ecx, [esp + 0x14]
push str._s_d_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 0x20]
push eax
push str.ShadowWidth
lea ecx, [esp + 0x14]
push str._s_d_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and esi, eax
mov eax, dword [edi + 0x24]
push eax
push str.Pattern
lea ecx, [esp + 0x14]
push str._s_d_r_n
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
and eax, esi
pop esi
pop ebp
add esp, 0x68
ret