Function at 0x46c640
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59b388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.00498b10
cmp edi, ebx
mov byte [esp + 0x30], 1
je 0x46c68a
lea ebp, [edi + 4]
mov dword [esp + 0x1c], ebp
jmp 0x46c690
mov dword [esp + 0x1c], ebx
mov ebp, ebx
mov ecx, dword [ebp]
mov esi, 0x641dc4
cmp ecx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
je 0x46c6af
call fcn.004014e2
mov dword [esp + 0x24], eax
mov esi, eax
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x641dc4
push edx
mov byte [esp + 0x38], 3
call edi
add esp, 8
test eax, eax
jne 0x46c73c
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov al, byte [esi]
mov byte [esp + 0x30], 1
test al, al
je 0x46c8bd
mov ebp, dword [ebp]
cmp ebp, ebx
je 0x46c8bd
mov eax, dword [ebp + 4]
lea esi, [ebp + 4]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x641dc4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x46c8bd
jmp 0x46c8ab
mov eax, dword [esp + 0x10]
push 0x62f9b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x46c7b5
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov al, byte [esi]
mov byte [esp + 0x30], 1
test al, al
je 0x46c8bd
mov ebp, dword [ebp]
test ebp, ebp
je 0x46c8bd
mov edx, dword [ebp + 4]
lea esi, [ebp + 4]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x641dc4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x46c8bd
jmp 0x46c8ab
mov esi, dword [esp + 0x38]
push 0x631fd4
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x5c]
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edx, dword [esi]
push 0x631fd0
mov ecx, esi
call dword [edx + 0x5c]
push 0x40000
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x38], ebp
mov al, byte [ebx + 0xc]
mov byte [esp + 0x30], 4
test al, 0x10
jne 0x46c83a
push ebx
push 0x3ffff
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [esp + 0x14]
push eax
push ebp
call fcn.00498b30
mov edi, eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x5c]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov al, byte [ebx + 0xc]
add esp, 4
test al, 0x10
je 0x46c7fc
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esi]
push 0x631fcc
mov ecx, esi
call dword [edx + 0x5c]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
mov byte [esp + 0x30], 1
cmp byte [eax], 0
je 0x46c8bd
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx]
test ebp, ebp
je 0x46c8bd
mov edx, dword [ebp + 4]
lea esi, [ebp + 4]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x641dc4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x46c8bd
mov ebp, dword [ebp]
mov edx, dword [esi]
push 0
push 0x8010
push ebp
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.00498b20
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4