Function at 0x46ff97
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4ca268
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x440
mov dword [ebp - 0x2c], ecx
push esi
push 0x4d5034
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0x2c]
xor esi, esi
push esi
push 1
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call fcn.00470338
test eax, eax
je 0x47031b
lea eax, [ebp - 0x34]
push esi
push eax
lea eax, [ebp - 0x44c]
push 0x400
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470025
cmp dword [ebp - 0x34], esi
je 0x470025
push dword [ebp - 0x34]
lea eax, [ebp - 0x44c]
lea ecx, [ebp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator_1
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x46ffd3
mov eax, dword [ebp - 0x10]
push ebx
xor ebx, ebx
push edi
cmp dword [eax - 8], esi
jle 0x47030c
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
push ebx
push 0x2d
pop ebx
lea ecx, [ebp - 0x10]
push ebx
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, 0xffffffff
je 0x47030c
lea eax, [edi + 1]
lea ecx, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x28], eax
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x47030c
inc eax
lea ecx, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x30], eax
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x47030c
inc eax
lea ecx, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x24], eax
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x47030c
inc eax
lea ecx, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x20], eax
call sub.MFC42.DLL_CString::Find
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47030c
cmp edi, 2
jl 0x4702fd
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
add eax, 0xfffffffd
cmp ebx, eax
jg 0x47030c
mov ecx, dword [ebp - 0x14]
push 3
sub ecx, edi
pop eax
cmp ecx, eax
jne 0x4702fd
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x14]
cmp ecx, eax
jne 0x4702fd
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x18]
cmp ecx, eax
jne 0x4702fd
mov ecx, ebx
sub ecx, dword [ebp - 0x1c]
cmp ecx, eax
jne 0x4702fd
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_3
add edi, 0xfffffffe
push 2
lea eax, [ebp - 0x4c]
push edi
mov byte [ebp - 4], 2
and dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
push 0x10
pop edi
lea ecx, [eax + 2]
push edi
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push eax
call esi
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x10]
push 2
push dword [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [eax + 2]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push eax
call esi
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x10]
push 2
push dword [ebp - 0x30]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [eax + 2]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push eax
call esi
add esp, 0xc
mov dword [ebp - 0x30], eax
push 2
push dword [ebp - 0x24]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [eax + 2]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push eax
call esi
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x10]
push 2
push dword [ebp - 0x20]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [eax + 2]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push eax
call esi
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebx + 1]
lea ecx, [ebp - 0x10]
push 2
push eax
lea eax, [ebp - 0x48]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [eax + 2]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push eax
call esi
push 8
mov dword [ebp - 0x14], eax
call sub.MFC42.DLL_operatornew
mov edi, eax
push 8
push 0
push edi
call sub.MSVCRT.dll_memset
mov al, byte [ebp - 0x1c]
add esp, 0x1c
mov byte [edi], al
mov al, byte [ebp - 0x18]
push edi
mov byte [edi + 1], al
mov al, byte [ebp - 0x30]
mov byte [edi + 2], al
mov al, byte [ebp - 0x24]
mov byte [edi + 3], al
mov al, byte [ebp - 0x20]
mov byte [edi + 4], al
mov al, byte [ebp - 0x14]
mov byte [edi + 5], al
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 0xc]
call fcn.004703b3
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
add ebx, 3
call sub.MFC42.DLL_CString::CString
jmp 0x470300
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
cmp ebx, dword [eax - 8]
jl 0x47003b
mov eax, dword [ebp - 0x2c]
xor esi, esi
pop edi
pop ebx
cmp dword [eax + 0x18], esi
je 0x47031b
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8