Function at 0x40b3e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x434
push ebx
mov ebx, dword [esp + 0x444]
push ebp
push esi
mov esi, ecx
push edi
lea edx, [esp + 0x24]
xor ebp, ebp
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi + 0xc8]
mov dword [esp + 0x30], ecx
push 0xffffff
push edx
mov ecx, ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
call sub.MFC42u.DLL_CDC::FillSolidRect_1
mov edx, dword [ebx + 4]
lea eax, [esp + 0x24]
push 1
push eax
lea ecx, [esp + 0x454]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esi + 0xd0]
cmp eax, ebp
jle 0x40b478
mov ecx, dword [esi + 0xcc]
cmp eax, ecx
jge 0x40b478
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xc8]
push 0xffffff
push ecx
mov ecx, ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], eax
call sub.MFC42u.DLL_CDC::FillSolidRect_1
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xcc]
mov esi, dword [esi + 0xc8]
push eax
push esi
push ebp
push ebp
push eax
push esi
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push ebx
call fcn.00410d20
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x34
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40b64a
cmp dword [esp + 0x14], 1
jl 0x40b64a
mov edi, 0x436d78
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push ebp
and ecx, 3
push 0x200
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x80
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x250]
lea ecx, [esp + 0x458]
push eax
push 1
push ecx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [esp + 0x244]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x436d78
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, ebx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
push edx
push str._d._d._d
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
not ecx
dec ecx
lea eax, [esp + ecx + 0x54]
push eax
call ebx
mov edi, 0x436d78
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov eax, dword [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
push 0x436d68
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x4c]
push ecx
call ebx
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x454]
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
not ecx
dec ecx
lea edx, [esp + 0x54]
push ecx
push 1
push edx
call edi
push esi
push 2
push 1
push 0x436d64
call edi
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret 0xc