Function at 0x53b010
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6474eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
mov eax, dword [0x6ee2dc]
push ebx
push 0
mov dword [esp + 0x1c0], eax
push 5
lea eax, [esp + 0xc0]
push eax
push 0
mov ebx, ecx
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x53b059
xor al, al
jmp 0x53b287
push ebp
push edi
lea edi, [esp + 0xc0]
or ebp, 0xffffffff
add edi, ebp
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x53b067
push esi
mov ecx, 8
mov esi, str.KOEIDynasty_Warriors_4_Hyper_
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0xc4]
add edi, ebp
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x53b087
mov ecx, dword [str.graphics.cfg]
mov edx, dword [0x6564cc]
mov eax, dword [0x6564d0]
mov dword [edi], ecx
mov cl, byte [0x6564d4]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov byte [edi + 0xc], cl
push 1
lea ecx, [esp + 0x14]
call fcn.0053aea0
push 0x1b6
push 0x21
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1e0], 0
call fcn.0053a400
test eax, eax
jne 0x53b106
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x18]
lea ecx, [esp + ecx + 0x10]
or al, 2
cmp dword [ecx + 0x28], 0
jne 0x53b0fe
or al, 4
push 0
push eax
call fcn.00646a8a
cmp dword [esp + 0x74], 0
je 0x53b261
push 2
push 0
lea ecx, [esp + 0x18]
call fcn.00539270
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x14]
call fcn.005392e0
mov esi, dword [eax + 8]
add esi, dword [eax]
push 0
push 0
lea ecx, [esp + 0x18]
call fcn.00539270
cmp esi, 0x38
lea ecx, [esp + 0x10]
jne 0x53b25c
push 4
push ebx
call fcn.0053a220
movss xmm0, dword [ebx]
ucomiss xmm0, dword [0x64e764]
lahf
test ah, 0x44
lea ecx, [esp + 0x10]
jp 0x53b25c
push 4
lea edx, [ebx + 4]
push edx
call fcn.0053a220
push 4
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea ecx, [ebx + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea edx, [ebx + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea eax, [ebx + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea ecx, [ebx + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea edx, [ebx + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea eax, [ebx + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea ecx, [ebx + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea edx, [ebx + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea eax, [ebx + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
lea ecx, [ebx + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.0053a220
push 4
add ebx, 0x34
push ebx
lea ecx, [esp + 0x18]
call fcn.0053a220
lea ecx, [esp + 0x10]
call fcn.0053adc0
lea ecx, [esp + 0x78]
mov dword [esp + 0x1d4], ebp
call fcn.0053af60
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0x6563dc
call fcn.006469a0
mov al, 1
jmp 0x53b284
call fcn.0053adc0
lea ecx, [esp + 0x78]
mov dword [esp + 0x1d4], ebp
call fcn.0053af60
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0x6563dc
call fcn.006469a0
xor al, al
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1bc]
pop ebx
call fcn.0062fcdf
add esp, 0x1c8
ret