Function at 0x435260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 4]
lea edi, [esi + 4]
cmp eax, ebx
mov dword [ebp - 0x18], edi
je 0x435461
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
mov dword [ebp - 0x10], ebx
call dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4352df
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00461c90
mov edx, dword [ebp - 0x14]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0
mov ecx, dword [eax]
push 0
push 0x1012
push ebx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x435461
neg esi
sbb esi, esi
and esi, edi
mov edi, 0x5456d0
mov ebx, esi
mov dword [ebp - 0x18], edi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebx]
test ecx, ecx
je 0x435336
call fcn.004199f0
mov dword [ebp - 0x18], eax
mov edi, eax
push 0x539324
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4353a7
mov al, byte [edi]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x435461
mov edi, dword [ebx]
test edi, edi
je 0x435461
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 0x5456d0
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 0x435461
jmp 0x435450
push 0x40000
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov al, byte [esi + 0xc]
mov byte [ebp - 4], 2
test al, 0x10
jne 0x4353ee
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 0x4353ca
mov ebx, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [edx], 0
je 0x435461
mov edi, dword [ebx]
test edi, edi
je 0x435461
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x5456d0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x435461
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4