Function at 0x42f450
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [0x71b948]
sub esp, 0x108
push esi
push edi
push 0x5380e8
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [0x68c568]
mov eax, dword [eax + 0xa8]
add eax, 0xffffffd5
cmp eax, 0x3c
ja case.0x42f487.63
xor ecx, ecx
mov cl, byte [eax + 0x42f8ec]
jmp dword [ecx*4 + 0x42f898]
push 0
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380e0
jmp 0x42f6eb
push 7
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380d8
jmp 0x42f6eb
push 0x9f
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380d0
jmp 0x42f6eb
push 0xff
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380c8
jmp 0x42f6eb
push 5
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380c0
jmp 0x42f6eb
push 6
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380b8
jmp 0x42f6eb
push 0
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380b0
jmp 0x42f6eb
push 0xad
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380a8
jmp 0x42f6eb
push 0xbd
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x5380a0
jmp 0x42f6eb
push 0xfe
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x538098
jmp 0x42f6eb
push 0x1e
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x538090
jmp 0x42f6eb
push 0xf8
call fcn.0041edc0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x53808c
jmp 0x42f6eb
push 0xac
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x538088
jmp 0x42f6eb
push 0x31
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x538080
jmp 0x42f6eb
push 0x3f
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x538078
jmp 0x42f6eb
push 0xec
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x538070
jmp 0x42f6eb
push 0x6a
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x538068
jmp 0x42f6eb
push 0x2000000
call dword [sym.imp.msvcrt.dll_malloc]
mov ecx, dword [0x71b8ac]
mov dword [0x67fe84], eax
mov dword [0x67fe80], ecx
call fcn.0042f930
mov esi, dword [0x67fe84]
mov edi, dword [0x71b8ac]
mov ecx, 0x800000
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x71b8ac]
add edx, 0x2000000
mov dword [0x67fe80], edx
call fcn.0042f930
mov eax, dword [0x71b8ac]
mov esi, dword [0x67fe84]
mov ecx, 0x800000
lea edi, [eax + 0x2000000]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x67fe84]
push ecx
call dword [sym.imp.msvcrt.dll_free]
push 0x57
call fcn.0041f0f0
add esp, 0xc
lea edx, [esp + 0xc]
mov edi, 0x538060
jmp 0x42f6eb
push 0xf
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x53805c
jmp 0x42f6eb
push 0x19
call fcn.0041f0f0
add esp, 4
lea edx, [esp + 0xc]
mov edi, 0x538054
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x680af4]
test eax, eax
je 0x42f88d
mov eax, dword [0x71b930]
mov ecx, dword [0x71b8ac]
cdq
and edx, 0x7fffff
push ebp
add eax, edx
mov ebp, 1
sar eax, 0x17
cmp eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], ecx
jl 0x42f82d
push ebx
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
lea edi, [ebp + 1]
push edi
push ebp
lea edx, [esp + 0xa0]
push 0x538030
push edx
call esi
mov ecx, dword [0x71b948]
add esp, 0x10
lea eax, [esp + 0x98]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x14]
push ebp
push ecx
lea edx, [esp + 0x40]
push 0x538024
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x78]
push edi
push eax
push 0x538024
push ecx
call esi
mov ebx, dword [sym.imp.msvcrt.dll_fopen]
lea edx, [esp + 0x48]
push 0x5022bc
push edx
call ebx
mov edi, eax
lea eax, [esp + 0x90]
push 0x5022bc
push eax
call ebx
add esp, 0x20
mov ebx, eax
test edi, edi
je 0x42f81b
test ebx, ebx
je 0x42f81b
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], 0x800000
push edi
push 1
push 1
push esi
call dword [sym.imp.msvcrt.dll_fwrite]
push ebx
push 1
lea ecx, [esi + 1]
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
mov eax, dword [esp + 0x30]
add esp, 0x20
add esi, 2
dec eax
mov dword [esp + 0x10], eax
jne 0x42f7d6
mov dword [esp + 0x10], esi
mov esi, dword [sym.imp.msvcrt.dll_fclose]
push edi
call esi
push ebx
call esi
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
add esp, 8
mov eax, dword [esp + 0x34]
add ebp, 2
cmp ebp, eax
jle 0x42f743
pop ebx
jmp 0x42f833
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
mov ecx, dword [0x71b948]
push 0x538004
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x10]
lea eax, [esp + 0x54]
push edx
push 0x537ff8
push eax
call esi
lea ecx, [esp + 0x60]
push 0x5022bc
push ecx
call dword [sym.imp.msvcrt.dll_fopen]
add esp, 0x14
mov esi, eax
test esi, esi
pop ebp
je 0x42f88d
mov edx, dword [0x71b8a8]
push esi
push 1
push 0x20000
push edx
call dword [sym.imp.msvcrt.dll_fwrite]
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x14
pop edi
pop esi
add esp, 0x108
ret