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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ab0d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
cmova eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b4c5
test al, 0x10
je 0x40b4c5
mov byte [ebp - 0x41], 1
jmp 0x40b6a6
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
xor edi, edi
mov edx, 7
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 2
cmp eax, edx
jbe 0x40b516
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x45]
push eax
call fcn.00408450
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
cmp dword [ebp + 0x1c], 7
lea esi, [ebp + 8]
cmova esi, dword [ebp + 8]
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
cmp esi, eax
je 0x40b621
movzx ecx, word [esi]
mov dword [ebp - 0x4c], ecx
cmp edi, edx
jae 0x40b561
lea eax, [edi + 1]
cmp edx, 7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + edi*2], cx
mov word [eax + edi*2 + 2], dx
jmp 0x40b576
push ecx
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x45]
push 1
call fcn.00408310
mov ecx, dword [ebp - 0x4c]
cmp cx, 0x5c
je 0x40b592
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
dec eax
lea eax, [ecx + eax*2]
cmp esi, eax
jne 0x40b60a
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00410690
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b5c4
test al, 0x10
jne 0x40b5f3
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x58], 0xc
cmova eax, dword [ebp - 0x40]
push ecx
push eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b618
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x14]
add esi, 2
mov edi, dword [ebp - 0x18]
jmp 0x40b521
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x41], 0
jmp 0x40b625
mov byte [ebp - 0x41], 1
cmp edx, 7
jbe 0x40b65c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b652
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6fa
push edx
push ecx
call fcn.004ef1f0
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x40b692
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b688
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6fa
push ecx
push edx
call fcn.004ef1f0
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x40b6dc
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b6d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6fa
push ecx
push edx
call fcn.004ef1f0
add esp, 8
mov al, byte [ebp - 0x41]
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.004ef253
mov esp, ebp
pop ebp
ret
call fcn.004ff818
int3