Function at 0x454590
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560256
mov eax, dword fs:[0]
push eax
sub esp, 0x854
mov eax, dword [0x5c49f0]
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 edi, edx
mov ebx, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00536540
add esp, 0xc
lea ecx, [ebp - 0x840]
call fcn.00434ac0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x840]
cmp dword [ebp - 0x82c], 0x10
cmovae eax, dword [ebp - 0x840]
push eax
push str._s7z.exe_x
lea eax, [ebp - 0x810]
push 0x800
push eax
call fcn.004347d0
add esp, 0x10
mov dword [ebp - 0x844], 0xf
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x848], 0
mov byte [ebp - 0x858], 0
push 0xffffffffffffffff
push 0
push edi
call fcn.0042c2b0
cmp dword [ebp - 0x844], 0x10
lea eax, [ebp - 0x858]
cmovae eax, dword [ebp - 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45466e
test al, 0x10
je 0x45466e
mov esi, 1
jmp 0x454670
xor esi, esi
mov eax, dword [ebp - 0x844]
cmp eax, 0x10
jb 0x45468e
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.0042ce80
test esi, esi
jne 0x4546f2
push 0xffffffffffffffff
push esi
push edi
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x844], 0xf
mov dword [ebp - 0x848], esi
mov byte [ebp - 0x858], 0
call fcn.0042c2b0
cmp dword [ebp - 0x844], 0x10
lea eax, [ebp - 0x858]
push esi
cmovae eax, dword [ebp - 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x844]
cmp eax, 0x10
jb 0x4546f2
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.0042ce80
cmp byte [ebp - 0x810], 0
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
jne 0x45471a
xor ecx, ecx
jmp 0x45472c
lea ecx, [ebp - 0x810]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454723
sub ecx, edx
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.0042c1b0
push 2
push 0x5b2f00
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 1
call fcn.0042c490
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x828]
call fcn.0042c5c0
push 5
push str.___o_
lea ecx, [ebp - 0x828]
call fcn.0042c490
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x828]
call fcn.0042c5c0
push 4
push str.___y
lea ecx, [ebp - 0x828]
call fcn.0042c490
cmp dword [ebp - 0x814], 0x10
lea edx, [ebp - 0x828]
cmovae edx, dword [ebp - 0x828]
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x4547cc
xor ecx, ecx
jmp 0x4547da
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4547d1
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.0042c1b0
mov edx, 0x40
lea ecx, [edx - 0x3f]
call fcn.00435480
mov ecx, dword [ebp - 0x814]
add esp, 0x18
mov esi, eax
cmp ecx, 0x10
jb 0x454813
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.0042ce80
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
cmp eax, 0x10
jb 0x45484c
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.0042ce80
mov eax, esi
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.0053342f
mov esp, ebp
pop ebp
ret