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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x4e26d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x590], eax
cmp dword [esi + 0x10], 0x104
mov byte [ebp - 0x594], al
mov dword [ebp - 0x598], ebx
jae 0x4425eb
cmp dword [edi + 0x10], 0x104
jae 0x4425eb
push edi
lea ecx, [ebp - 0x34]
call fcn.0043fe50
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4423cd
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00442f80
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.0043ffa0
lea ecx, [ebp - 0x1c]
call fcn.0043ff00
cmp dword [ebp - 0x24], ebx
je 0x442408
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00442f80
mov eax, dword [ebp - 0x84]
add esp, 8
test eax, eax
je 0x4425c3
cmp dword [ebp - 0x24], eax
jb 0x442388
lea ecx, [ebp - 0x94]
push ecx
push eax
push 0
lea ecx, [ebp - 0x34]
call fcn.004433f0
test eax, eax
je 0x4425c3
cmp byte [ebp - 0x590], bl
mov ecx, 3
mov eax, 1
cmovne eax, ecx
lea ecx, [ebp - 0x338]
push eax
push dword [ebp - 0x594]
push esi
call fcn.0044a530
push esi
call fcn.00443160
add esp, 4
test al, al
jne 0x442425
lea ecx, [ebp - 0x338]
xor bl, bl
call fcn.0044a6d0
jmp 0x4425c5
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
call fcn.00440900
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00442f80
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.0043ffa0
lea ecx, [ebp - 0x1c]
call fcn.0043ff00
lea ecx, [ebp - 0x64]
call fcn.0043ff00
cmp dword [ebp - 0x24], ebx
jne 0x44234b
lea ecx, [ebp - 0x34]
xor bl, bl
call fcn.0043ff00
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x4c]
call fcn.0043fe50
push esi
call fcn.00442bc0
add esp, 4
mov byte [ebp - 0x58a], al
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x589], 1
push esi
call fcn.0043fe50
cmp byte [ebp - 0x590], bl
je 0x44247e
push edi
call fcn.00442bc0
add esp, 4
test al, al
je 0x44247e
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00440900
push eax
lea ecx, [ebp - 0x7c]
call fcn.0043ffa0
lea ecx, [ebp - 0x64]
call fcn.0043ff00
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x3c], 0
je 0x442594
push edi
lea ecx, [ebp - 0x1c]
call fcn.0043fe50
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00440010
test al, al
je 0x4424bf
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004404b0
test al, al
je 0x4425b7
cmp byte [ebp - 0x58a], 0
lea eax, [ebp - 0x1c]
je 0x442504
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4424e6
shr eax, 4
and al, 1
jne 0x44252f
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x44252f
test bl, 4
je 0x442528
and ebx, 0xfffffffb
jmp 0x44251d
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00442600
add esp, 8
test al, al
jne 0x44252f
test bl, 8
je 0x442528
and ebx, 0xfffffff7
lea ecx, [ebp - 0x648]
call fcn.0043c9e0
mov byte [ebp - 0x589], 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x338]
call fcn.0044a7f0
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043ffa0
lea ecx, [ebp - 0x64]
call fcn.0043ff00
cmp dword [ebp - 0x3c], 0
je 0x44257f
lea eax, [ebp - 0x588]
push eax
lea ecx, [ebp - 0x338]
call fcn.0044a750
mov ecx, eax
call fcn.0044a7e0
lea ecx, [ebp - 0x588]
mov byte [ebp - 0x58a], al
call fcn.00404da0
lea ecx, [ebp - 0x1c]
call fcn.0043ff00
cmp byte [ebp - 0x589], 0
jne 0x442484
mov bl, byte [ebp - 0x589]
lea ecx, [ebp - 0x7c]
call fcn.0043ff00
lea ecx, [ebp - 0x4c]
call fcn.0043ff00
lea ecx, [ebp - 0x338]
call fcn.0044a6d0
jmp 0x4425c5
lea ecx, [ebp - 0x1c]
xor bl, bl
call fcn.0043ff00
jmp 0x44259a
xor bl, bl
lea ecx, [ebp - 0x94]
call fcn.0043ff00
lea ecx, [ebp - 0x34]
call fcn.0043ff00
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049653f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049653f
mov esp, ebp
pop ebp
ret