Function at 0x4cdd1f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4f0d60
call fcn.00471450
sub esp, 0x440
mov dword [ebp - 0x2c], ecx
push esi
push 0x4f423c
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.004ce0c0
test eax, eax
je 0x4ce0a3
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 0x4cddad
cmp dword [ebp - 0x34], esi
je 0x4cddad
push dword [ebp - 0x34]
lea eax, [ebp - 0x44c]
lea ecx, [ebp + 0xc]
push eax
call fcn.0047113c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x4cdd5b
mov eax, dword [ebp - 0x10]
push ebx
xor ebx, ebx
push edi
cmp dword [eax - 8], esi
jle 0x4ce094
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_2
mov edi, eax
cmp edi, 0xffffffff
je 0x4ce094
lea eax, [edi + 1]
lea ecx, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x28], eax
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4ce094
inc eax
lea ecx, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x30], eax
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x4ce094
inc eax
lea ecx, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x24], eax
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x4ce094
inc eax
lea ecx, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x20], eax
call sub.MFC42.DLL_CString::Find_2
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ce094
cmp edi, 2
jl 0x4ce085
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
add eax, 0xfffffffd
cmp ebx, eax
jg 0x4ce094
mov ecx, dword [ebp - 0x14]
push 3
sub ecx, edi
pop eax
cmp ecx, eax
jne 0x4ce085
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x14]
cmp ecx, eax
jne 0x4ce085
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x18]
cmp ecx, eax
jne 0x4ce085
mov ecx, ebx
sub ecx, dword [ebp - 0x1c]
cmp ecx, eax
jne 0x4ce085
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_4
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
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
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
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
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
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
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
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator_1
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
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_1
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
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_1
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.004ce13b
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
add ebx, 3
call sub.MFC42.DLL_CString::CString
jmp 0x4ce088
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
cmp ebx, dword [eax - 8]
jl 0x4cddc3
mov eax, dword [ebp - 0x2c]
xor esi, esi
pop edi
pop ebx
cmp dword [eax + 0x18], esi
je 0x4ce0a3
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