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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46713b
mov eax, dword fs:[0]
push eax
sub esp, 0xb3c
mov eax, dword [section..data]
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
movdqu xmm0, xmmword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xb30], eax
movdqu xmmword [ebp - 0xb28], xmm0
test esi, esi
je 0x452762
test eax, eax
je 0x452762
lea ecx, [ebp - 0xb48]
call fcn.00454390
push esi
lea ecx, [ebp - 0xb48]
mov dword [ebp - 4], 0
call fcn.004543e0
mov ebx, eax
mov dword [ebp - 0xb34], ebx
test ebx, ebx
js 0x452733
lea eax, [ebp - 0xb38]
mov dword [ebp - 0xb38], 0
push eax
lea ecx, [ebp - 0xb48]
call fcn.00454570
mov ecx, dword [ebp - 0xb38]
test ecx, ecx
je 0x45274c
lea edx, [ebp - 0xb40]
mov dword [ebp - 0xb40], 0
mov eax, dword [ecx]
push edx
push str.__GameDefinitionFile_GameDefinition_ExtendedProperties_GameTasks_Play
push ecx
call dword [eax + 0x94]
mov ecx, dword [ebp - 0xb40]
test ecx, ecx
je 0x4524fb
lea edx, [ebp - 0xb3c]
mov dword [ebp - 0xb3c], 0
mov eax, dword [ecx]
push edx
push str.Primary
push ecx
call dword [eax + 0x94]
mov eax, dword [ebp - 0xb3c]
test eax, eax
je 0x452431
push 0
push 1
push dword [ebp + 0x10]
push dword [ebp - 0xb30]
push esi
push dword [ebp + 0x14]
push eax
call fcn.00451de0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
js 0x452418
mov eax, dword [ebp - 0xb3c]
lea edx, [ebp - 0xb2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0xb2c]
test eax, eax
je 0x452431
lea esp, [esp]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xb30]
push esi
push dword [ebp + 0x14]
push eax
call fcn.00451de0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jns 0x4523f9
test edi, edi
je 0x4523f9
push str.ERROR:_Game_Explorer_is_unable_to_create_play_task_
push edi
call fcn.00438440
add esp, 8
mov ecx, edi
call fcn.00437480
mov eax, dword [ebp - 0xb2c]
lea edx, [ebp - 0xb2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0xb2c]
test eax, eax
jne 0x4523c0
jmp 0x452431
test edi, edi
je 0x452431
push str.ERROR:_Game_Explorer_is_unable_to_create_Primary_play_task_
push edi
call fcn.00438440
add esp, 8
mov ecx, edi
call fcn.00437480
test ebx, ebx
js 0x45274c
mov eax, dword [ebp - 0xb38]
lea edx, [ebp - 0xb34]
push edx
mov dword [ebp - 0xb34], 0
push str.__GameDefinitionFile_GameDefinition_ExtendedProperties_GameTasks_Support
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov ecx, dword [ebp - 0xb34]
test ecx, ecx
je 0x45274c
lea edx, [ebp - 0xb2c]
mov dword [ebp - 0xb2c], 0
mov eax, dword [ecx]
push edx
push str.Task
push ecx
call dword [eax + 0x94]
mov eax, dword [ebp - 0xb2c]
test eax, eax
je 0x45274c
lea esp, [esp]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xb30]
push esi
push dword [ebp + 0x14]
push eax
call fcn.00451de0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jns 0x4524d9
test edi, edi
je 0x4524d9
push str.ERROR:_Game_Explorer_is_unable_to_create_support_task_
push edi
call fcn.00438440
add esp, 8
mov ecx, edi
call fcn.00437480
mov eax, dword [ebp - 0xb2c]
lea edx, [ebp - 0xb2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0xb2c]
test eax, eax
jne 0x4524a0
jmp 0x45274c
test edi, edi
je 0x45274c
push str.V1_GDF.__No_play_task_info_in_GDF.__Creating_GDF_shortcuts.
push edi
call fcn.00438440
add esp, 8
mov ecx, edi
call fcn.00437480
cmp dword [ebp + 0x10], 2
lea eax, [ebp - 0x318]
push eax
push 0
push 0
jne 0x45252d
push 0x1c
jmp 0x45252f
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0xb28]
mov edx, 0x471c00
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x45255d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x452547
jmp 0x45274c
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x10e]
push eax
call fcn.0043a7a0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x80
push eax
lea eax, [ebp - 0xb28]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x45274c
mov ecx, edi
call fcn.00437540
mov dword [ebp - 0xb30], eax
test eax, eax
jle 0x452665
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.004374a0
push ebx
mov esi, eax
lea eax, [ebp - 0x110]
push str.PlayTasks
push eax
lea eax, [ebp - 0x318]
push eax
push str._sMicrosoftWindowsGameExplorer_s_s_d
lea eax, [ebp - 0xb18]
push 0x200
push eax
call fcn.00402670
add esp, 0x1c
lea eax, [ebp - 0xb18]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
lea eax, [ebp - 0xb18]
push eax
push str._s_s.lnk
lea eax, [ebp - 0x718]
push 0x200
push eax
call fcn.00402670
lea eax, [ebp - 0x718]
push eax
push str.Creating_GameExplorer_play_task:__s
push edi
call fcn.00438440
xor ecx, ecx
lea eax, [esi + 0x408]
cmp word [eax], cx
push 1
cmove eax, ecx
lea ecx, [ebp - 0x718]
push ecx
push eax
lea eax, [esi + 0x200]
push eax
call fcn.00451c90
inc ebx
add esp, 0x30
cmp ebx, dword [ebp - 0xb30]
jl 0x4525b3
mov ebx, dword [ebp - 0xb34]
mov ecx, edi
call fcn.00437570
mov dword [ebp - 0xb30], eax
test eax, eax
jle 0x45274c
xor ebx, ebx
lea esp, [esp]
push ebx
mov ecx, edi
call fcn.004374f0
push ebx
mov esi, eax
lea eax, [ebp - 0x110]
push str.SupportTasks
push eax
lea eax, [ebp - 0x318]
push eax
push str._sMicrosoftWindowsGameExplorer_s_s_d
lea eax, [ebp - 0x718]
push 0x200
push eax
call fcn.00402670
add esp, 0x1c
lea eax, [ebp - 0x718]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
lea eax, [ebp - 0x718]
push eax
push str._s_s.lnk
lea eax, [ebp - 0xb18]
push 0x200
push eax
call fcn.00402670
lea eax, [ebp - 0xb18]
push eax
push str.Creating_GameExplorer_support_task:__s
push edi
call fcn.00438440
xor ecx, ecx
lea eax, [esi + 0x408]
cmp word [eax], cx
push ecx
cmove eax, ecx
lea ecx, [ebp - 0xb18]
push ecx
push eax
lea eax, [esi + 0x200]
push eax
call fcn.00451c90
inc ebx
add esp, 0x30
cmp ebx, dword [ebp - 0xb30]
jl 0x452680
mov ebx, dword [ebp - 0xb34]
jmp 0x45274c
test edi, edi
je 0x45274c
push str.ERROR:_Unable_to_properly_extract_info_from_GDF_DLL_
push edi
call fcn.00438440
add esp, 8
mov ecx, edi
call fcn.00437480
lea ecx, [ebp - 0xb48]
mov dword [ebp - 4], 0xffffffff
call fcn.004543b0
mov eax, ebx
jmp 0x452767
mov eax, 0x80070057
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.00438f17
mov esp, ebp
pop ebp
ret