Function at 0x4178c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x437c05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x20]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x298], ebx
call esi
mov ecx, dword [ebp + 0x20]
push 2
push ecx
call esi
mov edx, dword [esp + 0x298]
push 0x43e170
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x417963
mov ecx, 0xf49d18
xor eax, eax
mov edi, 0x46f128
mov dword [0x7edf5fc], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x298]
lea ecx, [ebp + 0x1bc]
push eax
call fcn.0043592a
push ebx
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, ebp
mov dword [ebp + 0x570], ebx
call fcn.00415fd0
mov ecx, ebp
call fcn.00419e20
jmp 0x417d38
push 2
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
mov edi, eax
push 0
push esi
mov dword [esp + 0x2c], edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 0x20
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x4179b8
push eax
push 0x43a2f8
push 0x43e164
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::MessageBoxW
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x417d38
push esi
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push edi
push ebx
call fcn.0042a1e0
add esp, 0x1c
test eax, eax
je 0x417b78
push 0
lea ecx, [esp + 0x24]
call fcn.00422030
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 1
call sub.MFC42u.DLL_CDialog::DoModal
cmp eax, 1
jne 0x417b1d
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x89]
mov edx, dword [esp + 0x84]
mov byte [esp + 0x88], 0
push 0
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x90]
push 0x200
push ecx
stosw word es:[edi], ax
push 0xffffffffffffffff
push edx
push 0
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x88]
push eax
push ecx
push ebx
call fcn.00429ea0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jle 0x417ad2
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x574]
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]
lea ecx, [ebx + 8]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x84]
mov byte [esp + 0x290], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0x290], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 0
call fcn.00435762
mov edi, dword [esp + 0x10]
jmp 0x417b7c
push 0
push 0
push 0x43b200
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::MessageBoxW
mov al, byte [ebp + 0x584]
test al, al
je 0x417af5
push 1
mov ecx, ebp
call sub.MFC42u.DLL_CDialog::EndDialog
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0x290], 3
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x290], 2
jmp 0x417b56
mov al, byte [ebp + 0x584]
test al, al
je 0x417b30
push 1
mov ecx, ebp
call sub.MFC42u.DLL_CDialog::EndDialog
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0x290], 5
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x290], 4
lea ecx, [esp + 0x80]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 0
call fcn.00435762
jmp 0x417d38
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x14]
push edi
push edx
call fcn.00417d70
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x417bdf
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, 0xf49d18
xor eax, eax
mov edi, 0x46f128
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x298]
xor esi, esi
push eax
lea ecx, [ebp + 0x1bc]
mov dword [0x7edf5fc], esi
call fcn.0043592a
push esi
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, ebp
mov dword [ebp + 0x570], esi
call fcn.00415fd0
jmp 0x417d38
cmp eax, 0x59d8
jl 0x417c08
push 0
push 0x43a2f8
push 0x43e158
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::MessageBoxW
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x417d38
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
lea edi, [eax*4]
push edi
call ebx
push edi
mov esi, eax
call ebx
add esp, 8
mov ebx, eax
test esi, esi
je 0x417d01
test ebx, ebx
je 0x417d01
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
mov edi, ebx
lea ecx, [eax*4]
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 eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00417db0
mov edx, dword [esp + 0x28]
mov ecx, 0xf49d18
xor eax, eax
mov edi, 0x46f128
push edx
mov dword [0x7edf5fc], eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push ebx
push esi
push 0x46f128
push eax
push ecx
call fcn.00417e20
mov edx, dword [esp + 0x44]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push edx
call edi
push esi
call edi
push ebx
call edi
add esp, 0x34
lea eax, [esp + 0x298]
lea ecx, [ebp + 0x1bc]
push eax
call fcn.0043592a
push 0
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::UpdateData
mov ecx, ebp
mov dword [ebp + 0x570], 0
call fcn.00415fd0
push 0x3f6
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42u.DLL_CWnd::SetFocus
mov ecx, ebp
call fcn.00419e20
jmp 0x417d38
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call edi
add esp, 4
test esi, esi
je 0x417d1b
push esi
call edi
add esp, 4
test ebx, ebx
je 0x417d25
push ebx
call edi
add esp, 4
push 0
push 0x43a2f8
push 0x43e164
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x298]
mov dword [esp + 0x290], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret 4