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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535819
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
mov eax, dword [0x58a06c]
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 ebx, ecx
cmp dword [ebx + 0x24], 0
je 0x45ae6d
mov al, 1
jmp 0x45b2ee
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00504db0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45b2e7
push 0x553e80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x8c
call fcn.0050058b
mov edi, eax
add esp, 4
mov dword [ebp - 0x4f8], edi
push 0x8c
push 0
push edi
mov dword [ebp - 4], 0
call fcn.00504db0
lea eax, [edi + 0xc]
mov dword [edi], 0
xor ecx, ecx
mov dword [edi + 8], eax
add esp, 0xc
mov word [eax], cx
push 0xc8
mov byte [ebp - 4], 1
call fcn.0050058b
mov esi, eax
add esp, 4
mov dword [ebp - 0x4f8], esi
lea edx, [esi + 8]
lea eax, [edx + 0x14]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [edx], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax], 0x1401
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], 0x7fec
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0xc], 0x7fec
mov dword [esi], eax
mov dword [eax + 0x14], eax
mov ecx, dword [esi]
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx + 0x20]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x218]
mov dword [edx], ecx
mov dword [edi + 4], esi
push eax
mov dword [ebx + 0x24], edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
je 0x45afc2
push 0
lea eax, [ebp - 0x218]
push eax
call dword [0x53e2ec]
push str.LiShi.xml
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x4f0]
push 0
push eax
call fcn.00504db0
add esp, 0xc
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x45b235
test byte [ebp - 0x4f0], 0x10
jne 0x45b235
mov esi, dword [ebx + 0x24]
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2a0], eax
lea ecx, [ebp - 0x2a0]
xor eax, eax
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
call fcn.0047cf25
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x2a0]
cmp word [eax], 0
je 0x45b0b7
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x504], eax
cmp eax, 0xffffffff
jne 0x45b0e3
mov eax, dword [esi + 8]
lea edi, [esi + 0xc]
cmp eax, edi
je 0x45b098
push eax
call fcn.00508951
add esp, 4
mov dword [esi + 8], edi
mov eax, edi
push 0x12
push 0x562850
push eax
call fcn.005144e1
mov eax, dword [esi + 8]
add esp, 0xc
xor ecx, ecx
mov word [eax + 0x24], cx
mov eax, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x29c]
cmp eax, ecx
je 0x45b0ca
push eax
call fcn.00508951
add esp, 4
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x45b0d7
push ecx
call fcn.0045b310
mov dword [ebx + 0x24], 0
jmp 0x45b2e7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x45b125
mov eax, dword [esi + 8]
lea edi, [esi + 0xc]
cmp eax, edi
je 0x45b10a
push eax
call fcn.00508951
add esp, 4
mov dword [esi + 8], edi
mov eax, edi
push 0xd
push str.File_is_empty
push eax
call fcn.005144e1
mov eax, dword [esi + 8]
add esp, 0xc
xor ecx, ecx
mov word [eax + 0x1a], cx
jmp 0x45b0b1
cmp edi, 0x400000
jbe 0x45b163
mov eax, dword [esi + 8]
lea edi, [esi + 0xc]
cmp eax, edi
je 0x45b145
push eax
call fcn.00508951
add esp, 4
mov dword [esi + 8], edi
mov eax, edi
push 0xe
push str.File_too_large
push eax
call fcn.005144e1
mov eax, dword [esi + 8]
add esp, 0xc
xor ecx, ecx
mov word [eax + 0x1c], cx
jmp 0x45b0b1
push edi
mov dword [ebp - 0x4fc], 0
call fcn.005008e0
add esp, 4
mov dword [ebp - 0x4f8], eax
lea ecx, [ebp - 0x4fc]
push 0
push ecx
push edi
push eax
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x504]
call dword [0x53e34c]
cmp dword [ebp - 0x4fc], edi
je 0x45b1ec
mov edi, dword [ebp - 0x4f8]
push edi
call fcn.005005bb
mov eax, dword [esi + 8]
lea edi, [esi + 0xc]
add esp, 4
cmp eax, edi
je 0x45b1ce
push eax
call fcn.00508951
add esp, 4
mov dword [esi + 8], edi
mov eax, edi
push 0x13
push str.Could_not_read_file
push eax
call fcn.005144e1
mov eax, dword [esi + 8]
add esp, 0xc
xor ecx, ecx
mov word [eax + 0x26], cx
jmp 0x45b0b1
push edi
mov edi, dword [ebp - 0x4f8]
mov ecx, esi
push edi
call fcn.004c04ce
push edi
mov byte [ebp - 0x4f1], al
call fcn.005005bb
mov ecx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x29c]
add esp, 4
cmp ecx, eax
je 0x45b223
push ecx
call fcn.00508951
add esp, 4
cmp byte [ebp - 0x4f1], 0
jne 0x45b2e7
jmp 0x45b0ca
mov ecx, dword [ebx + 0x24]
push str.__xml_version_1.0__encoding_UTF_8____LiShi__
call fcn.004c0441
mov ecx, dword [ebx + 0x24]
test al, al
je 0x45b0cd
mov edi, dword [ecx + 4]
lea eax, [ebp - 0x218]
push 0x553f74
push eax
lea eax, [ebp - 0x4f8]
mov dword [ebp - 0x4f8], 0
push eax
call fcn.00514341
xor esi, esi
mov dword [ebp - 0x504], fcn.004c0136
add esp, 0xc
test eax, eax
cmove esi, dword [ebp - 0x4f8]
mov dword [ebp - 0x508], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x45b2d3
mov dword [ebp - 0x500], 0x562974
mov dword [ebp - 0x4fc], esi
sub esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x500]
mov ecx, edi
push eax
call fcn.004c0327
push esi
call fcn.00515654
add esp, 4
mov dword [ebp - method.pugi::xml_writer.virtual_0], vtable.pugi::xml_writer.0
mov dword [ebp - 4], 4
test esi, esi
je 0x45b2e7
push esi
call fcn.004c0136
add esp, 4
cmp dword [ebx + 0x24], 0
setne al
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.005000f2
mov esp, ebp
pop ebp
ret