Function at 0x426640
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4814eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x104
xor ebp, ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x13]
mov cl, byte [esp + ecx + 0x13]
cmp cl, 0x5c
je 0x4266b5
mov byte [eax], 0
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x4266a9
mov edi, str.MFC42.DB
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4a1470
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 eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4267fa
push 2
push ebp
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
mov eax, 0xf6603d99
mul edi
shr edx, 9
mov ecx, edx
mov dword [0x4ba844], edx
shl ecx, 5
add ecx, edx
lea edx, [edx + ecx*4]
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
add esp, 0x18
cmp eax, ebp
mov dword [0x4ba854], eax
push esi
jne 0x426758
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x426856
push 1
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42677e
mov eax, dword [0x4ba854]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [0x4ba854], ebp
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push str.MFC42.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebp
je 0x4267f1
mov eax, dword [0x4ba844]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x4267f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4ba854]
xor edx, edx
mov dx, word [ecx + ebp + 0x210]
lea esi, [ecx + ebp]
push edx
push edi
call ebx
test eax, eax
je 0x4267d8
mov ecx, dword [esp + 0x128]
sub eax, edi
add eax, ecx
mov dword [esi + 0x20c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4ba844]
inc eax
add ebp, 0x214
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4267ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x426856
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x854]
cmp eax, ebp
je 0x426811
cmp eax, 1
jne 0x426856
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_5
push str.MFC42.DB
lea eax, [esp + 0x14]
push 0xf066
push eax
mov dword [esp + 0x12c], ebp
call sub.MFC42.DLL_AfxFormatString1
mov ecx, dword [esp + 0x10]
push ebp
push 0x40
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret