Function at 0x4702c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5aaa68
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.0048feb0
cmp edi, ebx
mov byte [esp + 0x30], 1
je 0x47030a
lea ebp, [edi + 4]
mov dword [esp + 0x1c], ebp
jmp 0x470310
mov dword [esp + 0x1c], ebx
mov ebp, ebx
mov ecx, dword [ebp]
mov esi, 0x658680
cmp ecx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
je 0x47032f
call fcn.004016ae
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 0x658680
push edx
mov byte [esp + 0x38], 3
call edi
add esp, 8
test eax, eax
jne 0x4703bc
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 0x47053d
mov ebp, dword [ebp]
cmp ebp, ebx
je 0x47053d
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 0x658680
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 0x47053d
jmp 0x47052b
mov eax, dword [esp + 0x10]
push 0x645a34
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x470435
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 0x47053d
mov ebp, dword [ebp]
test ebp, ebp
je 0x47053d
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 0x658680
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 0x47053d
jmp 0x47052b
mov esi, dword [esp + 0x38]
push 0x6488e0
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 0x6488dc
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 0x4704ba
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.0048fed0
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 0x47047c
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esi]
push 0x6485a0
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 0x47053d
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx]
test ebp, ebp
je 0x47053d
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 0x658680
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 0x47053d
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.0048fec0
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