Function at 0x402190
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40620b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xfd]
mov byte [esp + 0xfc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x100]
mov dword [esp + 0x14], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 4
push 0
push 1
lea ecx, [esp + 0x110]
push 0x80000000
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x402219
xor eax, eax
jmp 0x4024ab
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
add eax, 0xfffffff0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x14]
push 0
lea edi, [ebp + 0xc0]
push edx
push 0x10
push edi
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi], 0x3d27ac8b
je 0x402266
xor eax, eax
jmp 0x4024ab
mov eax, dword [ebp + 0xc4]
cmp eax, 1
jne 0x402358
push 0
push 0x80
push 4
push 0
push eax
lea eax, [esp + 0x110]
push 0x80000000
push eax
call ebx
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x4022a0
xor eax, eax
jmp 0x4024ab
mov ecx, dword [ebp + 0xcc]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push 0
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x24]
push 0x1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
push 0x1e
push ecx
mov ecx, ebp
call fcn.00403da0
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0xa0]
call fcn.00404420
lea ecx, [esp + 0x98]
mov dword [esp + 0x208], 0
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
je 0x402338
lea ecx, [esp + 0x98]
mov dword [esp + 0x208], ebx
call fcn.00405cba
xor eax, eax
jmp 0x4024ab
lea ecx, [esp + 0x98]
mov dword [esp + 0x10], 1
mov dword [esp + 0x208], ebx
call fcn.00405cba
jmp 0x4024a7
cmp eax, 2
jne 0x40249f
call fcn.00401a40
mov esi, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, esi
mov ecx, edx
sub eax, 1
push edx
sbb ecx, 0
push esi
push ecx
push eax
call fcn.00405ed0
push edx
push eax
lea edx, [esp + 0x6c]
push str._I64X
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0xfc]
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4023c9
xor eax, eax
jmp 0x4024ab
mov ecx, dword [ebp + 0xcc]
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc8]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x40247b
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x14]
push 0
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x44]
push 0x28
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x3c]
push 0x28
push ecx
mov ecx, ebp
call fcn.00403da0
lea esi, [esp + 0x64]
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402455
test cl, cl
je 0x402451
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402455
add eax, 2
add esi, 2
test cl, cl
jne 0x402431
xor eax, eax
jmp 0x40245a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402473
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc8]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4023f1
jmp 0x40247b
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4024a7
push 0
push 0x4090f0
push 0x4090e0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x4024a7
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x200]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1fc
ret