Function at 0x41df40
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e3210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edi
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call fcn.0043a460
mov eax, dword [edi + 4]
mov byte [esp + 0x28], 1
test eax, eax
je 0x41e134
mov ebp, eax
test ebp, ebp
jne 0x41df9b
mov eax, 0x556570
jmp 0x41dfde
mov edx, dword [ebp + 4]
lea esi, [ebp + 4]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x556570
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.00415612
test bl, bl
je 0x41dfd5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, ebp
call sub.MFC42.DLL_CString::GetBuffer
push 0x53624c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x41e04a
mov edi, dword [edi + 4]
test edi, edi
je 0x41e134
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x556570
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.00415612
test bl, bl
je 0x41e134
mov edi, dword [edi]
mov edx, dword [esi]
push ebp
push 0x8010
push edi
mov ecx, esi
call dword [edx + 0x28]
jmp 0x41e134
mov esi, dword [esp + 0x30]
push 0x536248
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x5c]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edx, dword [esi]
push 0x536244
mov ecx, esi
call dword [edx + 0x5c]
push 0x40000
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov al, byte [ebp + 0xc]
add esp, 4
test al, 0x10
jne 0x41e0c4
push ebp
push 0x3ffff
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.0043a480
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 [ebp + 0xc]
add esp, 4
test al, 0x10
je 0x41e088
mov edi, dword [esp + 0x1c]
mov edx, dword [esi]
push 0x536240
mov ecx, esi
call dword [edx + 0x5c]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [edi + 4]
add esp, 4
test edi, edi
je 0x41e12b
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x556570
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete byte [esp + 0x30]
call fcn.00415612
mov al, byte [esp + 0x30]
test al, al
je 0x41e12b
mov edi, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push edi
mov ecx, esi
call dword [edx + 0x28]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0043a470
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00415612
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4