Function at 0x424650
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00424450
test eax, eax
je 0x424907
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x424907
mov edi, dword [esp + 0x30]
test edi, edi
je 0x424907
mov esi, dword [esp + 0x34]
test esi, esi
je 0x424907
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00424920
test eax, eax
je 0x424907
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
mov ecx, ebx
call fcn.00424a80
test eax, eax
jne 0x4246d0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [edx + ecx + 5]
lea esi, [ebp + 1]
push esi
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [ebx + 8]
sub eax, edx
mov dword [esp + 0x20], edi
add eax, ebp
lea edx, [eax + ecx + 1]
push edx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 8]
sub eax, edx
add eax, ebp
lea edx, [eax + ecx + 1]
push edx
call sub.MFC42.DLL_operatornew
add esp, 0xc
mov dword [esp + 0x18], eax
test edi, edi
je 0x4248e5
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4248d8
test eax, eax
je 0x4248d8
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x2c]
mov ecx, esi
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
mov ecx, esi
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push str._s___s_r_n
push ebp
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov esi, dword [ebx]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
sub ecx, esi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx]
mov esi, dword [esp + 0x30]
mov edi, eax
mov ecx, ebp
sub edi, edx
mov edx, dword [esp + 0x24]
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx]
mov esi, dword [esp + 0x28]
mov edi, dword [ebx + 8]
mov ecx, edx
sub ecx, esi
lea ecx, [ecx + edi + 1]
mov edi, eax
sub edi, edx
mov edx, dword [esp + 0x24]
add edi, ebp
mov eax, dword [esp + 0x30]
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebx]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebx + 4]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov esi, dword [ebx + 8]
sub ebp, eax
add ebp, edi
mov edi, dword [esp + 0x38]
add esi, ebp
mov dword [ebx + 4], edi
mov eax, esi
mov dword [ebx + 8], esi
mov esi, dword [esp + 0x4c]
add esp, 0x20
lea ecx, [eax + 1]
mov dword [ebx], esi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
inc ecx
push ecx
push edx
mov ecx, ebx
call fcn.00424e30
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x424907
push 0x4cec04
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x424907
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
push esi
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebx + 8]
add esp, 0x10
cmp eax, ecx
push esi
je 0x4248c0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
push edi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4248fa
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x424907
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc