Function at 0x414f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4befad
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
call fcn.004087be
cmp dword [ebp + 8], ebx
jne 0x415176
push 0x4d4dfc
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
push str.Software_
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi + 0x84]
mov dword [ebp - 0x18], 8
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0x18
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x18], 0x38
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 0x18], 0x20
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esp
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__20]
push 0x80000001
call fcn.00414450
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp eax, 5
jle 0x415104
push dword [ebp + 0x10]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push eax
push esi
call fcn.00415490
mov ebx, eax
test ebx, ebx
jne 0x415159
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__20]
push 0x80000001
call fcn.00414450
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp eax, 5
jle 0x41514d
push dword [ebp + 0x10]
mov ecx, edi
push 0
push dword [ebp + 0xc]
push eax
push esi
call fcn.00415490
mov ebx, eax
test ebx, ebx
jne 0x415159
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor esi, esi
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test ebx, ebx
jne 0x41545a
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 9
test eax, eax
je 0x415199
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
jmp 0x4151a6
lea eax, [edi + 0xac]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
push 0x4d3d4c
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4151ef
cmp dword [ebp + 8], eax
jne 0x415267
lea eax, [edi + 0xb0]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
push 0x4d3d4c
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x415267
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call edi
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call edi
add esp, 0x1c
test esi, esi
jne 0x415228
mov eax, dword [ebp - 0x10]
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x10]
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [ebp - 0x10]
push edi
mov byte [eax + esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x10]
add esp, 0x14
mov edi, dword [ebp - 0x2c]
cmp eax, 5
jle 0x415267
push dword [ebp + 0x10]
mov ecx, edi
push 0
push dword [ebp + 0xc]
push eax
push esi
call fcn.00415490
mov ebx, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test ebx, ebx
jne 0x41545a
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea eax, [edi + 0x5c]
mov dword [ebp - 0x30], ebx
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x4d4174
lea ecx, [eax - 0x28]
xor esi, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__2]
test eax, eax
jle 0x41545a
push 0x4d4dfc
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
push str.Software_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xa
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi + 0x84]
mov esi, dword [ebp - 0x24]
or esi, 1
mov dword [ebp - 0x18], esi
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x34]
or esi, 2
mov dword [ebp - 0x18], esi
push dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004019e2
add esp, 0x20
and esi, 0xfffffffd
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and esi, 0xfffffffe
mov dword [ebp - 0x24], esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x12
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__20]
push 0x80000001
call fcn.00414450
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, 5
jle 0x4153c6
push dword [ebp + 0x10]
mov ecx, edi
push 0
push 1
push eax
push esi
call fcn.00415490
mov ebx, eax
test ebx, ebx
jne 0x415451
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__20]
push 0x80000001
call fcn.00414450
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
cmp ecx, 5
jle 0x41541a
xor eax, eax
cmp dword [0x511668], eax
sete al
or eax, dword [ebp + 0x10]
push eax
push 0
push 1
push ecx
push esi
mov ecx, edi
call fcn.00415490
mov ebx, eax
test ebx, ebx
jne 0x415451
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
xor esi, esi
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
inc ecx
add eax, 4
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, 0xa
jl 0x415292
jmp 0x41545a
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x415465
mov dword [eax], esi
jmp 0x41546f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10