Function at 0x49b640
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4f393a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov eax, dword [0x54a2b0]
mov dword [esp + 0x238], eax
cmp dword [0x546d3c], 0x10
mov eax, dword [0x546d28]
jae 0x49b67a
mov eax, 0x546d28
push ebx
push ebp
push esi
push str.temp_
push eax
lea eax, [esp + 0x4c]
push 0x50c224
push eax
call fcn.004c2e53
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
xor ebx, ebx
push ebx
lea ecx, [esp + 0x48]
push ecx
call esi
mov ebp, 0xf
lea eax, [esp + 0x44]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49b6c0
push edi
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x18]
call fcn.00401eb0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x258], ebx
call fcn.004b8960
mov eax, dword [esp + 0x2c]
or edi, 0xffffffff
add esp, 4
cmp eax, 0x10
mov dword [esp + 0x254], edi
jb 0x49b70d
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c2c15
add esp, 4
cmp dword [0x546d3c], 0x10
mov eax, dword [0x546d28]
jae 0x49b720
mov eax, 0x546d28
push 0x50c22c
push eax
lea edx, [esp + 0x50]
push 0x50c23c
push edx
call fcn.004c2e53
add esp, 0x10
push ebx
lea eax, [esp + 0x4c]
push eax
call esi
lea eax, [esp + 0x48]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49b753
sub eax, edx
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401eb0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x258], 1
call fcn.004b8960
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, 0x10
mov dword [esp + 0x254], edi
jb 0x49b7a0
mov eax, dword [esp + 0x14]
push eax
call fcn.004c2c15
add esp, 4
cmp dword [0x546d3c], 0x10
mov eax, dword [0x546d28]
jae 0x49b7b3
mov eax, 0x546d28
push str.userdata_
push eax
lea ecx, [esp + 0x50]
push 0x50c250
push ecx
call fcn.004c2e53
add esp, 0x10
push ebx
lea edx, [esp + 0x4c]
push edx
call esi
lea eax, [esp + 0x48]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49b7e6
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00401eb0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x258], 2
call fcn.004b8960
mov eax, dword [esp + 0x2c]
mov esi, 0x10
add esp, 4
cmp eax, esi
mov dword [esp + 0x254], edi
jb 0x49b837
mov edx, dword [esp + 0x14]
push edx
call fcn.004c2c15
add esp, 4
cmp dword [0x546d3c], esi
mov eax, dword [0x546d28]
jae 0x49b849
mov eax, 0x546d28
push str.userdataendlesshighscores.dat
push eax
lea eax, [esp + 0x50]
push 0x50c278
push eax
call fcn.004c2e53
lea eax, [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49b874
sub eax, edx
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401eb0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x258], 3
call fcn.004b8960
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, esi
mov dword [esp + 0x254], edi
jb 0x49b8c0
mov eax, dword [esp + 0x14]
push eax
call fcn.004c2c15
add esp, 4
cmp dword [0x546d3c], esi
mov eax, dword [0x546d28]
jae 0x49b8d2
mov eax, 0x546d28
push str.userdatalastprofile.dat
push eax
lea ecx, [esp + 0x50]
push 0x50c29c
push ecx
call fcn.004c2e53
lea eax, [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49b900
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x18]
call fcn.00401eb0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x258], 4
call fcn.004b8960
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, esi
mov dword [esp + 0x254], edi
jb 0x49b94c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c2c15
add esp, 4
cmp dword [0x546d3c], esi
mov eax, dword [0x546d28]
jae 0x49b95e
mov eax, 0x546d28
push str.userdatamixhighscores.dat
push eax
lea edx, [esp + 0x50]
push 0x50c2c0
push edx
call fcn.004c2e53
lea eax, [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49b990
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00401eb0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x258], 5
call fcn.004b8960
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, esi
mov dword [esp + 0x254], edi
jb 0x49b9dc
mov edx, dword [esp + 0x14]
push edx
call fcn.004c2c15
add esp, 4
cmp dword [0x546d3c], esi
mov eax, dword [0x546d28]
jae 0x49b9ee
mov eax, 0x546d28
push str.userdataprofiles.dat
push eax
lea eax, [esp + 0x50]
push 0x50c2e0
push eax
call fcn.004c2e53
lea eax, [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49ba20
sub eax, edx
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401eb0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x258], 6
call fcn.004b8960
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, esi
mov dword [esp + 0x254], edi
pop edi
jb 0x49ba6d
mov eax, dword [esp + 0x10]
push eax
call fcn.004c2c15
add esp, 4
cmp dword [0x546d3c], esi
mov eax, dword [0x546d28]
jae 0x49ba7f
mov eax, 0x546d28
push str.userdata_storyhighscores.dat
push eax
lea ecx, [esp + 0x4c]
push 0x50c308
push ecx
call fcn.004c2e53
lea eax, [esp + 0x54]
add esp, 0x10
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49bab0
sub eax, edx
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x30]
call fcn.00401eb0
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x254], 7
call fcn.004b8960
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
pop esi
pop ebp
pop ebx
jb 0x49baf8
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c2c15
add esp, 4
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x238]
call fcn.004c2e45
add esp, 0x248
ret