Function at 0x465150
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47921b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x830], ecx
cmp dword [0x496adc], 0
je 0x4653d7
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x410]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push 0x47caa8
push eax
call fcn.0045dc60
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4653d7
lea eax, [ebp - 0x814]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x814]
mov dword [ebp - 0x838], ebx
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x814], esi
je 0x465265
test ebx, ebx
je 0x4653d7
push ebx
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
jmp 0x4653d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov dword [ebp - 0x824], 0
push 0x47cab8
mov edx, ebx
movq qword [ebp - 0x82c], xmm0
lea ecx, [ebp - 0x82c]
call fcn.00462f40
add esp, 4
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [ebp - 0x828]
mov esi, dword [ebp - 0x82c]
sub eax, esi
sar eax, 2
mov dword [ebp - 0x834], eax
test eax, eax
jle 0x4653b3
mov ebx, dword [ebp - 0x830]
add ebx, 8
nop word [eax + eax]
mov edx, dword [esi + edi*4]
lea ecx, [ebp - 0x820]
xorps xmm0, xmm0
mov dword [ebp - 0x818], 0
push str.____
movq qword [ebp - 0x820], xmm0
call fcn.00462f40
mov eax, dword [ebp - 0x81c]
add esp, 4
mov esi, dword [ebp - 0x820]
sub eax, esi
sar eax, 2
cmp eax, 6
jb 0x465363
push dword [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoll]
mov dword [ebx - 8], eax
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoll]
mov dword [ebx - 4], eax
push dword [esi + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoll]
mov dword [ebx], eax
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movzx eax, al
mov dword [ebx + 4], eax
push dword [esi + 0x10]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movzx eax, al
mov dword [ebx + 8], eax
push dword [esi + 0x14]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movzx eax, al
add esp, 0x18
mov dword [ebx + 0xc], eax
test esi, esi
je 0x465397
mov eax, dword [ebp - 0x818]
sub eax, esi
sar eax, 2
push eax
push esi
call fcn.00476030
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
mov esi, dword [ebp - 0x82c]
inc edi
add ebx, 0x1c
cmp edi, dword [ebp - 0x834]
jl 0x4652d0
mov ebx, dword [ebp - 0x838]
test ebx, ebx
je 0x4653c1
push ebx
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
test esi, esi
je 0x4653d7
mov eax, dword [ebp - 0x824]
sub eax, esi
sar eax, 2
push eax
push esi
call fcn.00476030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047724d
mov esp, ebp
pop ebp
ret