Function at 0x550a50
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6476bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2dc
mov eax, dword [0x6ee2dc]
push 0
mov dword [esp + 0x2dc], eax
push 5
lea eax, [esp + 0x1dc]
push eax
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x550a96
xor al, al
jmp 0x550eb8
push edi
lea edi, [esp + 0x1d8]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x550aa1
push esi
mov ecx, 8
mov esi, str.KOEIDynasty_Warriors_4_Hyper_
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x1dc]
mov byte [esp + eax + 0xd8], cl
add eax, 1
test cl, cl
jne 0x550ac0
push ebx
mov ebx, dword [esp + 0x2f8]
push ebp
xor ebp, ebp
mov eax, ebx
sub eax, ebp
je 0x550b70
sub eax, 1
je 0x550b35
sub eax, 1
je 0x550b01
mov byte [esp + 0xe0], 0
jmp 0x550bb3
lea edi, [esp + 0xe0]
add edi, 0xffffffff
jmp 0x550b10
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x550b10
mov ecx, dword [str.inputmap.m1]
mov edx, dword [0x65b07c]
mov eax, dword [0x65b080]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
jmp 0x550bae
lea edi, [esp + 0xe0]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x550b40
mov ecx, dword [str.inputmap.2]
mov edx, dword [0x65b070]
mov ax, word [0x65b074]
mov dword [edi], ecx
mov cl, byte [0x65b076]
mov dword [edi + 4], edx
mov word [edi + 8], ax
mov byte [edi + 0xa], cl
jmp 0x550bae
lea edi, [esp + 0xe0]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x550b80
mov edx, dword [str.inputmap.1]
mov eax, dword [0x65b064]
mov cx, word [0x65b068]
mov dword [edi], edx
mov dl, byte [0x65b06a]
mov dword [edi + 4], eax
mov word [edi + 8], cx
mov byte [edi + 0xa], dl
mov ebp, 0x10
push 1
lea ecx, [esp + 0x20]
call fcn.0053aea0
push 0x1b6
push 0x21
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x300], 0
call fcn.0053a400
test eax, eax
jne 0x550c06
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x24]
lea ecx, [esp + ecx + 0x1c]
or al, 2
cmp dword [ecx + 0x28], 0
jne 0x550bfe
or al, 4
push 0
push eax
call fcn.00646a8a
cmp dword [esp + 0x80], 0
jne 0x550c6d
push 0
lea edx, [esp + 0x1e8]
push edx
push 0
call dword [sym.imp.shell32.dll_SHCreateDirectoryExA]
push 0x1b6
push 0x32
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x34]
call fcn.0053a400
test eax, eax
jne 0x550c5f
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x24]
lea ecx, [esp + ecx + 0x1c]
or al, 2
cmp dword [ecx + 0x28], 0
jne 0x550c57
or al, 4
push 0
push eax
call fcn.00646a8a
cmp dword [esp + 0x80], 0
je 0x550d5e
push 2
push 0
lea ecx, [esp + 0x24]
call fcn.00539270
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x20]
call fcn.005392e0
mov esi, dword [eax + 8]
add esi, dword [eax]
push 0
push 0
lea ecx, [esp + 0x24]
call fcn.00539270
lea eax, [ebp + ebp*2]
add eax, eax
add eax, eax
sub eax, ebp
lea eax, [eax*4 + 0xc]
cmp esi, eax
jne 0x550d5e
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.0053a220
mov ecx, ebx
shl ecx, 4
cmp dword [esp + 0x10], 0
lea edi, [ecx + 0xa39168]
setne dl
mov ecx, edi
push edx
call fcn.00550f70
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.0053a220
mov ecx, edi
call fcn.00550f60
test al, al
je 0x550d46
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005528e0
add esp, 4
test eax, eax
je 0x550d34
mov edx, dword [esp + 0x10]
push edx
call fcn.005528e0
add esp, 4
mov ecx, eax
call fcn.00554570
test al, al
je 0x550d34
mov eax, dword [esp + 0x10]
push eax
jmp 0x550d3f
push 0
mov ecx, edi
call fcn.00550f70
push 0xa
mov ecx, edi
call fcn.00550f80
push 4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.0053a220
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x550d9c
push ebx
call fcn.00550730
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.0053af60
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0x6563dc
call fcn.006469a0
xor al, al
jmp 0x550eb4
push eax
mov ecx, edi
call fcn.005510f0
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jbe 0x550e56
lea ecx, [esp + 0xb8]
call fcn.00550f90
push 4
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
call fcn.0053a220
push 0x28
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x24]
call fcn.0053a220
xor esi, esi
push esi
lea ecx, [esp + 0xbc]
call fcn.00551010
test eax, eax
jl 0x550e2d
push esi
lea ecx, [esp + 0xbc]
call fcn.00551010
cmp eax, 7
jg 0x550e2d
push esi
lea ecx, [esp + 0xbc]
call fcn.00551010
push eax
call fcn.005528e0
add esp, 4
test eax, eax
jne 0x550e2d
push esi
push 0xa
lea ecx, [esp + 0xc0]
call fcn.00551050
add esi, 1
cmp esi, 2
jb 0x550de1
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb8]
push ecx
push edx
mov ecx, edi
call fcn.00550f30
add ebp, 1
cmp ebp, dword [esp + 0x14]
jb 0x550db0
lea ecx, [esp + 0x28]
call fcn.0053ad60
test eax, eax
jne 0x550e84
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x24]
lea ecx, [esp + ecx + 0x1c]
or al, 2
cmp dword [ecx + 0x28], 0
jne 0x550e7c
or al, 4
push 0
push eax
call fcn.00646a8a
lea ecx, [esp + 0x84]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.0053af60
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0x6563dc
call fcn.006469a0
mov al, 1
pop ebp
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x2dc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2d8]
call fcn.0062fcdf
add esp, 0x2e8
ret