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

Disassembly:
sub esp, 0x1e0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xec]
xor ebp, ebp
push 0x104
push eax
push ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xec]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, byte [0x5205be]
lea edx, [esp + 0xec]
test al, al
je 0x466c6a
push str.ingredients.dat
lea eax, [esp + 0xf0]
push edx
push eax
jmp 0x466c78
lea ecx, [esp + 0xec]
push str.disksys.dat
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push 0x80
push 3
push ebp
push ebp
lea eax, [esp + 0x100]
push bind
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x466ceb
push ebp
push esi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x466ce4
inc eax
push eax
call fcn.0048ac32
add esp, 4
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x466ce4
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x10]
push ebp
push edx
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0x18]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [0x5205c1]
test al, al
je 0x466d06
cmp al, 1
jne 0x466da9
cmp dword [esp + 0x14], ebp
jne 0x466da9
lea edx, [esp + 0xec]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, byte [0x5205be]
test al, al
lea eax, [esp + 0xec]
je 0x466d34
push str.disksys.dat
lea ecx, [esp + 0xf0]
push eax
push ecx
jmp 0x466d42
lea edx, [esp + 0xec]
push str.ingredients.dat
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push ebp
push 0x80
push 3
push ebp
push ebp
lea ecx, [esp + 0x100]
push bind
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x466da9
push ebp
push esi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x466da2
inc eax
push eax
call fcn.0048ac32
add esp, 4
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x466da2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ebp
push ecx
mov byte [edx + eax], 0
mov edx, dword [esp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x523c98]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push 0xffffffffffffffff
push 0x100c
push eax
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x467034
mov ecx, dword [0x4a3a18]
lea eax, [esp + 0x88]
mov dword [esp + 0x90], ecx
mov ecx, dword [0x523c98]
push eax
push ebp
lea edx, [esp + 0x28]
push 0x102d
push ecx
mov dword [esp + 0xb0], 9
mov dword [esp + 0xac], edx
call esi
mov edi, 0x4a3bc8
lea esi, [esp + 0x20]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x466e1d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x467012
mov edx, dword [0x4a3a24]
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [0x523c98]
push ecx
mov byte [esp + 0x24], al
push ebp
lea eax, [esp + 0x28]
push 0x102d
push edx
xor bl, bl
mov dword [esp + 0x60], 9
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [esp + 0x20]
test al, al
je 0x467012
mov eax, dword [0x4a3a28]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x60]
mov dword [esp + 0x68], eax
mov eax, dword [0x523c98]
push edx
push ebp
lea ecx, [esp + 0xf4]
push 0x102d
push eax
mov dword [esp + 0x88], 0x104
mov dword [esp + 0x84], ecx
call esi
mov ecx, dword [0x4a3a30]
lea eax, [esp + 0xb0]
mov dword [esp + 0xb8], ecx
mov ecx, dword [0x523c98]
push eax
push ebp
lea edx, [esp + 0x34]
push 0x102d
push ecx
mov dword [esp + 0xd8], 9
mov dword [esp + 0xd4], edx
call esi
mov al, byte [esp + 0xec]
test al, al
je 0x466f00
lea eax, [esp + 0xec]
cmp byte [eax], 0x3a
jne 0x466ef8
mov byte [eax], 0x3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x466ef0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x466f65
lea edx, [esp + 0xec]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
call fcn.004670b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x466f65
mov edx, dword [0x523c98]
add eax, esi
push eax
push ebp
push edx
call fcn.00467210
lea eax, [ebp + ebp*8]
add esp, 0xc
mov ecx, str.GOOD
lea edx, [ebp + eax*4]
mov eax, dword [0x523ca0]
shl edx, 3
sub edx, ebp
lea edx, [eax + edx*4 + 0x35c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x466f59
mov bl, 1
mov esi, dword [esp + 0x18]
test esi, esi
je 0x467073
test bl, bl
jne 0x466fd5
lea ecx, [esp + 0xec]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push esi
call fcn.004670b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x46707b
mov ecx, dword [0x523c98]
add eax, esi
push eax
push ebp
push ecx
call fcn.00467210
lea edx, [ebp + ebp*8]
add esp, 0xc
mov ecx, str.GOOD
lea eax, [ebp + edx*4]
mov edx, dword [0x523ca0]
shl eax, 3
sub eax, ebp
lea edx, [edx + eax*4 + 0x35c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x466fcb
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x520468]
inc eax
push ecx
push eax
lea edx, [esp + 0xe0]
push str.__u____u__FDS_image_CRC_check
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x204]
add esp, 0x10
lea eax, [esp + 0xd8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x523c98]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebp
push 0x100c
push edx
call esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x466dca
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x467049
push eax
call fcn.0048ace4
add esp, 4
mov eax, dword [esp + 8]
test eax, eax
je 0x46705a
push eax
call fcn.0048ace4
add esp, 4
mov eax, dword [esp + 0x1e4]
push eax
call fcn.004662e0
mov eax, 1
add esp, 0x1e4
ret
test bl, bl
jne 0x466fd5
lea eax, [ebp + ebp*8]
mov ecx, 0x4a3b8c
lea edx, [ebp + eax*4]
mov eax, dword [0x523ca0]
shl edx, 3
sub edx, ebp
lea edx, [eax + edx*4 + 0x35c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x467099
jmp 0x467012