Function at 0x512f85
Capabilities:
Create directory

Disassembly:
push 0x190
mov eax, 0x792835
call fcn.00700ca1
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x10], ecx
jne 0x5131a2
push 0xf
pop ebx
push 7
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push str.GPCUtil
mov dword [ebp - 0x14], ebx
call fcn.00439710
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.006210e3
pop ecx
mov edi, eax
mov dword [ebp - 0x5c], ebx
xor eax, eax
lea ecx, [ebp - 0x70]
push eax
push 0x858903
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x70], al
call fcn.00439710
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push str.null_path
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
push ecx
push eax
lea ecx, [ebp - 0xd0]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x858903
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], al
call fcn.00439710
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
push str.CFileSystem::RecursiveCreateFolder
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
push ecx
push eax
lea ecx, [ebp - 0x100]
call fcn.0061c551
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00621a54
lea ecx, [ebp - 0xe8]
call fcn.00438e20
lea ecx, [ebp - 0x100]
call fcn.00438e20
lea ecx, [ebp - 0x88]
call fcn.00438e20
mov eax, dword [ebp - 0x44]
mov esi, 0x1000
cmp eax, 0x10
jb 0x5130d8
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x194], ecx
cmp eax, esi
jb 0x5130cf
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x19c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x58], 0
call fcn.00438e20
lea ecx, [ebp - 0xd0]
call fcn.00438e20
lea ecx, [ebp - 0xa0]
call fcn.00438e20
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x51314a
mov ecx, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x19c], ecx
cmp eax, esi
jb 0x513141
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x194]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x19c]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x51319b
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x19c], ecx
cmp eax, esi
jb 0x513192
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x194]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x19c]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
xor eax, eax
jmp 0x513538
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.004c0690
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 7
cmovae eax, dword [ebp - 0x40]
pop esi
push 0
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov ebx, 0x1000
mov dword [ebp - 0x19c], edi
test edi, edi
je 0x5131eb
lea eax, [ebp - 0x40]
push eax
call fcn.00504901
pop ecx
jmp 0x5134ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
sub ecx, 3
je 0x5137df
dec ecx
sub ecx, 1
je 0x513543
sub ecx, 0xb2
je 0x51353e
and dword [ebp - 0x78], 0
lea ecx, [ebp - 0x88]
push esi
push str.GPCUtil
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.00439710
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x14
push eax
call fcn.006210e3
and dword [ebp - 0x18], 0
mov ebx, eax
pop ecx
push 0xf
pop esi
push 6
push str.uError
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
call fcn.00439710
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0x15
push edi
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x16
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.0061c551
mov edi, eax
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push 7
push str.strPath
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x58], 0
call fcn.00439710
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00620ff2
add esp, 0xc
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x19
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x1a
push eax
push 0x858903
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.00439710
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0xa0]
push str.recursiveCreate_folder_failed
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x1c
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0061c551
push edi
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x1d
call fcn.00621500
lea ecx, [ebp - 0x118]
call fcn.00438e20
lea ecx, [ebp - 0x130]
call fcn.00438e20
lea ecx, [ebp - 0xa0]
call fcn.00438e20
mov eax, dword [ebp - 0x5c]
mov ebx, 0x1000
cmp eax, 0x10
jb 0x5133a9
mov ecx, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x198], ecx
cmp eax, ebx
jb 0x5133a0
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x194]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x198]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x148]
push 0xf
pop esi
mov dword [ebp - 0x5c], esi
mov byte [ebp - 0x70], 0
call fcn.00438e20
lea ecx, [ebp - 0x160]
call fcn.00438e20
lea ecx, [ebp - 0xb8]
call fcn.00438e20
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x51341e
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
cmp eax, ebx
jb 0x513415
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x58], 0
call fcn.00438e20
lea ecx, [ebp - 0x190]
call fcn.00438e20
lea ecx, [ebp - 0xe8]
call fcn.00438e20
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x513490
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
cmp eax, ebx
jb 0x513487
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x5134e4
mov ecx, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x198], eax
cmp eax, ebx
jb 0x5134db
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
mov edi, dword [ebp - 0x19c]
mov esi, dword [ebp - 0x2c]
cmp esi, 8
jb 0x513536
mov eax, dword [ebp - 0x40]
lea esi, [esi*2 + 2]
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x194], eax
cmp esi, ebx
jb 0x51352d
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov esi, dword [ebp - 0x198]
mov eax, dword [ebp - 0x194]
pop ecx
pop ecx
push esi
push eax
call fcn.007009b8
pop ecx
pop ecx
mov eax, edi
call fcn.00700c4b
ret
xor edi, edi
inc edi
jmp 0x5134ea
xor eax, eax
mov dword [ebp - 0x74], 0xf
push esi
push str.GPCUtil
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x88], al
call fcn.00439710
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
call fcn.006210e3
and dword [ebp - 0x48], 0
mov ebx, eax
pop ecx
push 0xf
pop esi
push 6
push str.uError
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x58], 0
call fcn.00439710
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 9
push 5
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0061c551
mov edi, eax
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x70]
push 7
push str.strPath
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x5c], esi
mov byte [ebp - 0x70], 0
call fcn.00439710
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00620ff2
add esp, 0xc
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0xe
push eax
push 0x858903
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00439710
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0xe8]
push str.recursiveCreate_folder_failed__access_denied
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.0061c551
push edi
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.00621500
lea ecx, [ebp - 0x178]
call fcn.00438e20
lea ecx, [ebp - 0x190]
call fcn.00438e20
lea ecx, [ebp - 0xe8]
call fcn.00438e20
mov eax, dword [ebp - 0x14]
mov ebx, 0x1000
cmp eax, 0x10
jb 0x5136df
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
cmp eax, ebx
jb 0x5136d6
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00438e20
lea ecx, [ebp - 0x160]
call fcn.00438e20
lea ecx, [ebp - 0xb8]
call fcn.00438e20
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x513755
mov ecx, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
cmp eax, ebx
jb 0x51374c
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00438e20
lea ecx, [ebp - 0x130]
call fcn.00438e20
lea ecx, [ebp - 0xa0]
call fcn.00438e20
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x5137cb
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
cmp eax, ebx
jb 0x5137c2
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
and dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
jmp 0x51349b
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
push 8
pop edi
cmp esi, edi
push 0x5c
cmovae eax, dword [ebp - 0x40]
pop ecx
cmp word [eax + edx*2 - 2], cx
jne 0x51389e
and dword [ebp - 0x78], 0
lea ecx, [edx - 1]
xor eax, eax
mov dword [ebp - 0x74], 7
cmp edx, ecx
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x40]
cmovb ecx, edx
cmp esi, edi
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x88]
push eax
call fcn.004c09a6
mov byte [ebp - 0x198], 0
lea eax, [ebp - 0x88]
push dword [ebp - 0x198]
lea ecx, [ebp - 0x40]
push eax
call fcn.004cc546
mov eax, dword [ebp - 0x74]
cmp eax, edi
jb 0x51389b
mov ecx, dword [ebp - 0x88]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
cmp eax, ebx
jb 0x513892
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
mov edx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], edi
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
test edx, edx
je 0x5134e4
lea eax, [edx - 1]
or ecx, 0xffffffff
cmp eax, ecx
push 0x5c
cmovb ecx, eax
pop eax
lea ecx, [esi + ecx*2]
jmp 0x5138ce
cmp ecx, esi
je 0x5134e4
sub ecx, 2
cmp word [ecx], ax
jne 0x5138c3
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x5134e4
and dword [ebp - 0x18], 0
xor eax, eax
cmp edx, ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], 7
cmovb ecx, edx
cmp dword [ebp - 0x2c], edi
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.004c09a6
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x12
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004c01bc
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x13
push 0
push eax
call fcn.00512f85
pop ecx
pop ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x12
mov esi, eax
call fcn.004c0931
test esi, esi
je 0x513972
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
je 0x513978
lea eax, [ebp - 0x40]
push eax
call fcn.00504901
pop ecx
jmp 0x513978
mov edi, dword [ebp - 0x19c]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x5134ea
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
cmp eax, ebx
jb 0x5139bf
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x198]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.007009b8
pop ecx
jmp 0x5131e5