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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x5238
call fcn.004a1cf0
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x5234], eax
push esi
push edi
push 0x100
lea eax, [esp + 0x13c]
mov edi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x38]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x38]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x13c]
push str._sGZXIP.db
push eax
call fcn.0041fb80
add esp, 0xc
lea eax, [esp + 0x238]
push 0x5000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x138]
push 0x4b772c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 8], eax
test eax, eax
je 0x40da44
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call esi
add esp, 0xc
push dword [esp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [esp + 0xc], eax
push 0
push 0
push dword [esp + 0x10]
call esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x244]
add esp, 0xc
push esi
push dword [esp + 0x10]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov eax, dword [0x4c62e4]
mov dword [0x4c62e8], eax
test ecx, ecx
je 0x40da44
shr ecx, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x40da2b
lea esi, [esp + 0x238]
mov dword [esp + 8], esi
movups xmm0, xmmword [esi]
lea ecx, [esp + 0x20]
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
cmp ecx, eax
jae 0x40d98d
mov edx, ecx
mov ecx, dword [0x4c62e4]
cmp ecx, edx
ja 0x40d98d
mov esi, edx
sub esi, ecx
cmp eax, dword [0x4c62ec]
jne 0x40d96f
push ecx
mov ecx, 0x4c62e4
call fcn.0041f250
mov eax, dword [0x4c62e8]
test eax, eax
je 0x40d987
and esi, 0xfffffff0
add esi, dword [0x4c62e4]
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
mov eax, dword [0x4c62e8]
mov esi, dword [esp + 8]
jmp 0x40d9b6
cmp eax, dword [0x4c62ec]
jne 0x40d9aa
push ecx
mov ecx, 0x4c62e4
call fcn.0041f250
mov eax, dword [0x4c62e8]
movaps xmm0, xmmword [esp + 0x10]
test eax, eax
je 0x40d9b6
movups xmmword [eax], xmm0
mov eax, dword [0x4c62e8]
add eax, 0x10
mov dword [0x4c62e8], eax
mov cl, byte [edi + 0x5cb]
cmp cl, byte [esi + 1]
jne 0x40da19
mov cl, byte [esi]
cmp cl, 1
jne 0x40d9d8
lea ecx, [edi + 0x121f]
jmp 0x40da0a
cmp cl, 2
jne 0x40d9e5
lea ecx, [edi + 0x122b]
jmp 0x40da0a
cmp cl, 3
jne 0x40d9f2
lea ecx, [edi + 0x1237]
jmp 0x40da0a
cmp cl, 4
jne 0x40d9ff
lea ecx, [edi + 0x1243]
jmp 0x40da0a
cmp cl, 6
jne 0x40da19
lea ecx, [edi + 0x124f]
lea eax, [esp + 0x20]
push eax
call fcn.0041f040
mov eax, dword [0x4c62e8]
add esi, 0x10
sub dword [esp + 0xc], 1
mov dword [esp + 8], esi
jne 0x40d932
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x5234]
xor ecx, esp
call fcn.0044632d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x523c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0044632d
mov esp, ebp
pop ebp
ret