Function at 0x435860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], edi
cmp dword [edi + 4], esi
je 0x435a72
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
mov dword [ebp - 0x10], esi
call dword [eax]
mov ebx, dword [eax]
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x4358a8
xor eax, eax
jmp 0x4358da
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0045eda0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea esi, [ebp - 0x10]
push esi
push 0
mov edx, dword [ecx]
push 0
push 0x1012
push eax
push ecx
call dword [edx + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x435a72
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x435919
mov eax, 0x5676b0
jmp 0x43595e
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x5676b0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne byte [ebp + 0xb]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp + 0xb]
test al, al
je 0x435955
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push 0x54634c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4359c9
mov edi, dword [edi + 4]
test edi, edi
je 0x435a72
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x5676b0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp + 8]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x435a72
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x435a72
push 0x40000
call sub.MFC42.DLL_operatornew
mov edi, eax
mov al, byte [esi + 0xc]
add esp, 4
test al, 0x10
jne 0x435a06
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x40000
push 1
push edi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov edx, dword [ecx]
push 0
push eax
push edi
push ecx
call dword [edx + 0x10]
test byte [esi + 0xc], 0x10
je 0x4359e5
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 0x14]
add esp, 4
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x435a60
mov edx, dword [ebx + 4]
lea esi, [ebx + 4]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5676b0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x14]
test eax, eax
sete byte [ebp + 0xb]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp + 0xb]
test al, al
je 0x435a60
mov eax, dword [ebx]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4