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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d50a8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x178
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xorps xmm0, xmm0
mov byte [ebp - 0x3d], 0
lea ecx, [ebp - 0x3c]
movups xmmword [ebp - 0x3c], xmm0
call fcn.00472120
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00417bf0
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x188]
mov dword [ebp - 4], 1
call fcn.004799b0
mov ecx, dword [eax + 4]
cmp ecx, 6
jne 0x415e91
cmp dword [eax + 8], 0
je 0x415e9e
cmp ecx, ecx
jne 0x415e91
cmp dword [eax + 8], 1
je 0x415e9e
cmp ecx, ecx
ja 0x415e9e
cmp ecx, 6
jne 0x415ed8
cmp dword [eax + 8], 2
jb 0x415ed8
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x415ebb
mov eax, dword [ecx]
jmp 0x415ebd
mov eax, ecx
push 0x12
xor edx, edx
push str.SeRelabelPrivilege
mov word [eax], dx
call fcn.00415460
push 1
lea ecx, [ebp - 0x3c]
call fcn.004722b0
test esi, esi
jne 0x415ef4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x3c]
call fcn.00472410
mov al, byte [ebp - 0x3d]
jmp 0x41602c
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [esi], ax
jne 0x415f11
xor ecx, ecx
jmp 0x415f25
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415f16
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00415460
mov byte [ebp - 4], 2
xor esi, esi
push 2
lea eax, [esi + 1]
push eax
push 0x4f40d8
lea ecx, [ebp - 0x2c]
call fcn.00417060
mov esi, eax
cmp esi, 0xffffffff
je 0x415f88
lea ecx, [esi + 1]
push ecx
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416d40
cmp dword [eax + 0x14], 8
jb 0x415f69
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x415f35
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.004155f0
jmp 0x415f35
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push edi
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415ff0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x415fcf
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004155f0
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00472410
mov al, byte [ebp - 0x3d]
jmp 0x41602c
shr eax, 4
and al, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x41600d
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004155f0
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00472410
mov al, byte [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret