Function at 0x435670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8908
push eax
mov eax, 0x8000c
mov dword fs:[0], esp
call fcn.0045bc60
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], edi
cmp dword [edi + 4], esi
je 0x435875
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 0x4356bf
xor eax, eax
jmp 0x4356f1
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.0045bc60
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 0x435875
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x435730
mov eax, 0x5e2540
jmp 0x435775
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 0x5e2540
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 0x43576c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push 0x5c134c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4357e0
mov edi, dword [edi + 4]
test edi, edi
je 0x435875
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 0x5e2540
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 0x435875
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x435875
test byte [esi + 0xc], 0x10
jne 0x435819
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x80000
lea ecx, [ebp - 0x80018]
push 1
push ecx
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov edx, dword [ecx]
push 0
push eax
lea eax, [ebp - 0x80018]
push eax
push ecx
call dword [edx + 0x10]
test byte [esi + 0xc], 0x10
je 0x4357ec
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [edi + 4]
add esp, 4
test edi, edi
je 0x43586c
mov edx, dword [edi + 4]
lea esi, [edi + 4]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5e2540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x43586c
mov eax, dword [edi]
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]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x80024]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4