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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b25e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5e0ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], 0
call fcn.00413455
mov ecx, eax
test ecx, ecx
jne 0x40a722
push 0x80004005
call fcn.0040a390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
mov dword [edi], 0
call fcn.00413455
mov ecx, eax
test ecx, ecx
jne 0x40a752
push 0x80004005
call fcn.0040a390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x244], 1
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push str._sMy_Games
push eax
call fcn.0040df60
mov esi, dword [ebp - 0x21c]
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 8
push str.PLATFORM
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
call fcn.00409670
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040d050
mov eax, dword [0x5ec400]
mov edx, dword [ebp - 0x228]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x28]
cmp dword [eax + ecx*8 + 0x14], 8
lea ebx, [eax + ecx*8]
jb 0x40a815
mov ebx, dword [ebx]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.004094d0
push ebx
push esi
push str._s_s
push edi
call fcn.0040df60
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x10
push 0
push dword [edi]
call ebx
push 5
push str.TITLE
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
call fcn.00409670
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040d050
mov eax, dword [0x5ec400]
mov edx, dword [ebp - 0x228]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x28]
cmp dword [eax + ecx*8 + 0x14], 8
lea esi, [eax + ecx*8]
jb 0x40a8a1
mov esi, dword [esi]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.004094d0
push esi
push dword [edi]
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call fcn.0040df60
mov esi, dword [ebp - 0x21c]
add esp, 0x10
push 0
push esi
call ebx
push 8
push str.LANG_DIR
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
call fcn.00409670
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040d050
mov eax, dword [0x5ec400]
mov edx, dword [ebp - 0x228]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x28]
cmp dword [eax + ecx*8 + 0x14], 8
lea ebx, [eax + ecx*8]
jb 0x40a933
mov ebx, dword [ebx]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.004094d0
push ebx
push esi
push str._s_s
push edi
call fcn.0040df60
add esp, 0x10
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a978
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055829c
mov esp, ebp
pop ebp
ret