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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e98b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x451723
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00449bc0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 3
jbe 0x4518bf
lea edx, [ecx - 1]
cmp ecx, edx
jbe 0x451917
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 8
cmovae eax, edi
cmp word [eax + edx*2], 0x5c
jne 0x4517bc
xor eax, eax
mov dword [ebp - 0x30], 0
cmp ecx, edx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
cmovb edx, ecx
cmp esi, 8
push edx
cmovae eax, edi
lea ecx, [ebp - 0x40]
push eax
call fcn.00449bc0
lea ecx, [ebp - 0x28]
call fcn.00449b10
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
mov edi, dword [ebp - 0x28]
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
mov esi, dword [ebp - 0x14]
cmp esi, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4517d9
test al, 0x10
jne 0x4518bf
push ecx
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.004531d0
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4517f2
xor esi, esi
jmp 0x4518c4
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x18], ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], 7
call fcn.00449bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
call fcn.004516e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x2c]
test eax, eax
jne 0x45188c
cmp edx, 8
jb 0x451888
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45187e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45191c
push edx
push ecx
call fcn.0050ed4e
add esp, 8
xor esi, esi
jmp 0x4518c4
cmp edx, 8
jb 0x4518bf
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4518b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451921
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov esi, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4518fa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4518f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451926
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
call fcn.0044ef30
call fcn.005978c6
call fcn.005978c6
call fcn.005978c6
int3