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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6050
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4c9860]
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
cmp dword [ecx + 0x10], 0
jne 0x4454d8
xor al, al
jmp 0x445752
xor eax, eax
push 0xffffffffffffffff
push eax
push ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040bd60
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
lea ecx, [edx - 1]
cmp edx, ecx
ja 0x445521
push str.invalid_string_position
call fcn.0047920d
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp esi, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
cmp word [eax + ecx*2], 0x5c
je 0x445564
cmp edx, ecx
ja 0x445545
push str.invalid_string_position
call fcn.0047920d
cmp esi, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
cmp word [eax + ecx*2], 0x2f
je 0x445564
push 1
push 0x4b3f78
lea ecx, [ebp - 0x28]
call fcn.004035b0
lea ecx, [ebp - 0x28]
call fcn.00445070
test al, al
jne 0x445577
xor bh, bh
jmp 0x445724
cmp dword [ebp - 0x18], 0
je 0x4455a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x4455a0
mov bh, 1
jmp 0x445724
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x28]
call fcn.00445220
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
cmp esi, edi
jne 0x4455d5
xor bh, bh
jmp 0x4456f1
mov bh, 1
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040bd60
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040c1d0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x48], 0
jne 0x44562b
xor al, al
jmp 0x445643
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
sete bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
jb 0x44565d
push dword [ebp - 0x58]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
test bl, bl
je 0x44568d
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4456c3
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
jb 0x4456a2
push dword [ebp - 0x40]
call fcn.0047cf40
add esp, 4
xor eax, eax
add esi, 0x18
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp esi, edi
jne 0x4455d7
jmp 0x4456ee
xor bh, bh
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
jb 0x4456da
push dword [ebp - 0x40]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov esi, dword [ebp - 0x64]
mov byte [ebp - 4], 0
test esi, esi
je 0x445724
push dword [ebp - 0x68]
mov edx, edi
push ecx
mov ecx, esi
call fcn.004044c0
push esi
call fcn.0047cf40
add esp, 0xc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x44573c
push dword [ebp - 0x28]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov al, bh
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.0047cf45
mov esp, ebp
pop ebp
ret