Function at 0x416210
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 0x4d5448
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.00472490
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00418010
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x188]
mov dword [ebp - 4], 1
call fcn.00479d20
mov ecx, dword [eax + 4]
cmp ecx, 6
jne 0x4162b1
cmp dword [eax + 8], 0
je 0x4162be
cmp ecx, ecx
jne 0x4162b1
cmp dword [eax + 8], 1
je 0x4162be
cmp ecx, ecx
ja 0x4162be
cmp ecx, 6
jne 0x4162f8
cmp dword [eax + 8], 2
jb 0x4162f8
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4162db
mov eax, dword [ecx]
jmp 0x4162dd
mov eax, ecx
push 0x12
xor edx, edx
push str.SeRelabelPrivilege
mov word [eax], dx
call fcn.00415880
push 1
lea ecx, [ebp - 0x3c]
call fcn.00472620
test esi, esi
jne 0x416314
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x3c]
call fcn.00472780
mov al, byte [ebp - 0x3d]
jmp 0x41644c
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [esi], ax
jne 0x416331
xor ecx, ecx
jmp 0x416345
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416336
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00415880
mov byte [ebp - 4], 2
xor esi, esi
push 2
lea eax, [esi + 1]
push eax
push 0x4f40d8
lea ecx, [ebp - 0x2c]
call fcn.00417480
mov esi, eax
cmp esi, 0xffffffff
je 0x4163a8
lea ecx, [esi + 1]
push ecx
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00417160
cmp dword [eax + 0x14], 8
jb 0x416389
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x416355
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00415a10
jmp 0x416355
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 0x416410
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4163ef
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00415a10
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00472780
mov al, byte [ebp - 0x3d]
jmp 0x41644c
shr eax, 4
and al, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x41642d
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00415a10
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00472780
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.00493bec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret