Function at 0x404ae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43568b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
mov eax, dword [0x44be60]
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 0x404b29
xor al, al
jmp 0x404d55
push edi
lea edi, [esp + 0xbc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404b32
push esi
mov ecx, 6
mov esi, str.KOEIShin_Sangokumusou_3_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404b52
mov ecx, dword [str.graphics.cfg]
mov edx, dword [0x437d2c]
mov eax, dword [0x437d30]
mov dword [edi], ecx
mov cl, byte [0x437d34]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov byte [edi + 0xc], cl
push 1
lea ecx, [esp + 0x10]
call fcn.00403910
push 0x1b6
push 0x21
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1dc], 0
call fcn.00402dd0
test eax, eax
jne 0x404bd3
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x14]
mov edx, dword [esp + ecx + 0x34]
lea ecx, [esp + ecx + 0xc]
or eax, 2
test edx, edx
jne 0x404bcb
or eax, 4
push 0
push eax
call fcn.004266b9
mov eax, dword [esp + 0x70]
test eax, eax
je 0x404d2c
push 2
push 0
lea ecx, [esp + 0x14]
call fcn.00401a00
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401a70
mov esi, dword [eax + 8]
mov edi, dword [eax]
push 0
push 0
lea ecx, [esp + 0x14]
add esi, edi
call fcn.00401a00
cmp esi, 0x38
lea ecx, [esp + 0xc]
jne 0x404d27
push 4
push ebx
call fcn.00402be0
cmp dword [ebx], 0x3fd9999a
lea ecx, [esp + 0xc]
jne 0x404d27
push 4
lea edx, [ebx + 4]
push edx
call fcn.00402be0
push 4
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea ecx, [ebx + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea edx, [ebx + 0x10]
push edx
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea eax, [ebx + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea ecx, [ebx + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea edx, [ebx + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea eax, [ebx + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea ecx, [ebx + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea edx, [ebx + 0x28]
push edx
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea eax, [ebx + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
lea ecx, [ebx + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402be0
push 4
add ebx, 0x34
push ebx
lea ecx, [esp + 0x14]
call fcn.00402be0
lea ecx, [esp + 0xc]
call fcn.00403820
lea ecx, [esp + 0x74]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.004039d0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], 0x4375a0
call fcn.004265cf
mov al, 1
jmp 0x404d53
call fcn.00403820
lea ecx, [esp + 0x74]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.004039d0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], 0x4375a0
call fcn.004265cf
xor al, al
pop esi
pop edi
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1bc]
pop ebx
call fcn.00418291
add esp, 0x1c8
ret