Function at 0x47cf00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3827
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4eb6b8]
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 esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x47d237
xor eax, eax
push ebx
mov word [ebp - 0x2c], ax
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.004138e0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x47cf6f
push str.invalid_string_position
call fcn.0049af59
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp edi, 8
jae 0x47cf7d
lea edx, [ebp - 0x2c]
cmp word [edx + eax*2], 0x5c
je 0x47cfb3
cmp ecx, eax
ja 0x47cf92
push str.invalid_string_position
call fcn.0049af59
mov ecx, dword [ebp - 0x2c]
cmp edi, 8
jae 0x47cf9d
lea ecx, [ebp - 0x2c]
cmp word [ecx + eax*2], 0x2f
je 0x47cfb3
push 1
mov eax, 0x4cccdc
lea ecx, [ebp - 0x2c]
call fcn.004137b0
lea ecx, [ebp - 0x2c]
call fcn.0047c950
test al, al
jne 0x47d0f1
lea ecx, [ebp - 0x138]
push ecx
call fcn.00410ff0
mov byte [ebp - 4], 1
push esi
push ecx
lea edx, [ebp - 0x138]
push 0x4d8ef0
push edx
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 8
push 0x17
mov esi, 0xf
push str.CFileUtility::CreateDir
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.004159b0
mov byte [ebp - 4], 2
push esi
push str.FileUtility.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004159b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x138]
push ecx
call fcn.004110f0
mov byte [ebp - 4], 4
push eax
push 0x2c7
push ebx
call fcn.004117f0
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x48]
call fcn.0047acf0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x6c], 8
jb 0x47d070
mov edx, dword [ebp - 0x80]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 2
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x47d09a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], edi
jb 0x47d0b8
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x138]
call fcn.004039f0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x47d0e8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
xor al, al
jmp 0x47d464
cmp dword [ebp - 0x1c], ebx
je 0x47d13c
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x47d106
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x47d13c
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jb 0x47d12f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov al, 1
jmp 0x47d468
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0047cc50
mov eax, dword [ebp - 0x58]
add esp, 4
cmp eax, dword [ebp - 0x54]
jne 0x47d23e
lea edx, [ebp - 0x138]
push edx
call fcn.00410ff0
mov byte [ebp - 4], 6
push esi
push ecx
lea eax, [ebp - 0x138]
push str.PARTH_DIR_FAILED:
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 8
push str.CFileUtility::CreateDir
lea ecx, [ebp - 0x80]
call fcn.0040fb20
mov byte [ebp - 4], 7
push str.FileUtility.cpp
lea ecx, [ebp - 0x9c]
call fcn.0040fb20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x138]
push edx
call fcn.004110f0
mov byte [ebp - 4], 9
push eax
push 0x2d4
push ebx
call fcn.004117f0
push eax
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.0047acf0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x48]
call fcn.00410c70
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x9c]
call fcn.0040fb80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x80]
call fcn.0040fb80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x138]
call fcn.004039f0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x58]
call fcn.00412600
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00410c70
xor al, al
jmp 0x47d472
mov byte [ebp - 0x9d], 1
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x47d251
mov eax, dword [edi]
jmp 0x47d253
mov eax, edi
xor ecx, ecx
mov word [ebp - 0x48], cx
mov ecx, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
lea esi, [ecx + 2]
jmp 0x47d270
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x47d270
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x48]
call fcn.00415f60
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x38], ebx
jne 0x47d295
xor al, al
jmp 0x47d2ae
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x47d2a1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
sete byte [ebp - 0x9e]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 8
jb 0x47d2cd
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp byte [ebp - 0x9e], bl
je 0x47d2fe
cmp dword [edi + 0x14], 8
jb 0x47d2f0
mov eax, dword [edi]
jmp 0x47d2f2
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x47d30f
add edi, 0x1c
cmp edi, dword [ebp - 0x54]
jne 0x47d247
jmp 0x47d41c
lea ecx, [ebp - 0x138]
push ecx
call fcn.00410ff0
mov byte [ebp - 4], 0xb
push edi
push ecx
lea edx, [ebp - 0x138]
push str.Create_directory_FAILED.
push edx
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 8
push str.CFileUtility::CreateDir
lea ecx, [ebp - 0x80]
call fcn.0040fb20
mov byte [ebp - 4], 0xc
push str.FileUtility.cpp
lea ecx, [ebp - 0x48]
call fcn.0040fb20
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x138]
push ecx
call fcn.004110f0
mov byte [ebp - 4], 0xe
push eax
push 0x2df
push 3
call fcn.004117f0
push eax
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x48]
call fcn.0047acf0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x88], 8
jb 0x47d3ac
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 0xc
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x47d3db
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x6c], edi
jb 0x47d3fe
mov edx, dword [ebp - 0x80]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x138]
call fcn.004039f0
mov byte [ebp - 0x9d], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x58], ebx
je 0x47d43a
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
mov eax, esi
call fcn.00416490
push esi
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x47d45c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
mov al, byte [ebp - 0x9d]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
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.0049b315
mov esp, ebp
pop ebp
ret