Function at 0x550770
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x64769b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov eax, dword [0x6ee2dc]
push 0
mov dword [esp + 0x1b0], eax
push 5
lea eax, [esp + 0xb0]
push eax
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x5507b6
xor al, al
jmp 0x550a2d
push esi
push edi
lea edi, [esp + 0xb0]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x5507c2
mov ecx, 8
mov esi, str.KOEIDynasty_Warriors_4_Hyper_
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c8]
mov eax, ecx
sub eax, 0
mov dword [esp + 8], 0
je 0x55085d
sub eax, 1
je 0x55082b
sub eax, 1
jne 0x55089c
lea edi, [esp + 0xb0]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x550806
mov edx, dword [str.inputmap.m1]
mov eax, dword [0x65b07c]
mov dword [edi], edx
mov edx, dword [0x65b080]
mov dword [edi + 4], eax
mov dword [edi + 8], edx
jmp 0x550894
lea edi, [esp + 0xb0]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x550835
mov eax, dword [str.inputmap.2]
mov edx, dword [0x65b070]
mov dword [edi], eax
mov ax, word [0x65b074]
mov dword [edi + 4], edx
mov dl, byte [0x65b076]
jmp 0x55088d
lea edi, [esp + 0xb0]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x550867
mov eax, dword [str.inputmap.1]
mov edx, dword [0x65b064]
mov dword [edi], eax
mov ax, word [0x65b068]
mov dword [edi + 4], edx
mov dl, byte [0x65b06a]
mov word [edi + 8], ax
mov byte [edi + 0xa], dl
mov dword [esp + 8], 0x10
shl ecx, 4
lea esi, [ecx + 0xa39168]
mov ecx, esi
call fcn.00550f20
cmp eax, dword [esp + 8]
jne 0x550935
push 1
lea ecx, [esp + 0x18]
call fcn.0053aea0
push 0x1b6
push 0x32
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1cc], 0
call fcn.0053a400
test eax, eax
jne 0x550909
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x14]
or al, 2
cmp dword [ecx + 0x28], 0
jne 0x550901
or al, 4
push 0
push eax
call fcn.00646a8a
cmp dword [esp + 0x78], 0
jne 0x55093c
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.0053af60
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x6563dc
call fcn.006469a0
xor al, al
jmp 0x550a2b
mov ecx, esi
call fcn.00550f60
movzx edx, al
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edx
call fcn.0053a140
mov ecx, esi
call fcn.00544860
push 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
call fcn.0053a140
push 4
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.0053a140
cmp dword [esp + 8], 0
mov dword [esp + 0xc], 0
jbe 0x5509cd
push 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.0053a140
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00550f50
push 0x28
push eax
lea ecx, [esp + 0x24]
call fcn.0053a140
mov eax, dword [esp + 0xc]
add eax, 1
cmp eax, dword [esp + 8]
mov dword [esp + 0xc], eax
jb 0x550994
lea ecx, [esp + 0x1c]
call fcn.005398a0
lea ecx, [esp + 0x20]
call fcn.0053ad60
test eax, eax
jne 0x550a04
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x14]
or al, 2
cmp dword [ecx + 0x28], 0
jne 0x5509fc
or al, 4
push 0
push eax
call fcn.00646a8a
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.0053af60
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x6563dc
call fcn.006469a0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1ac]
call fcn.0062fcdf
add esp, 0x1bc
ret