Function at 0x405aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4891b5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea edi, [ebp + 8]
mov esi, dword [ebp + 0x1c]
cmp esi, 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae edi, edx
test eax, eax
je 0x405b13
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edi + ecx*2], 0x5c
lea eax, [edi + ecx*2]
je 0x405b0d
nop word [eax + eax]
cmp eax, edi
je 0x405b13
sub eax, 2
cmp word [eax], 0x5c
jne 0x405b00
sub eax, edi
sar eax, 1
jmp 0x405b16
or eax, 0xffffffff
mov edi, dword [ebp + 0x18]
lea ecx, [edi - 1]
mov dword [ebp - 0x48], ecx
cmp ecx, eax
je 0x405b65
cmp esi, 8
lea ecx, [ebp + 8]
cmovae ecx, edx
test edi, edi
je 0x405b57
or eax, 0xffffffff
cmp dword [ebp - 0x48], eax
cmovb eax, dword [ebp - 0x48]
cmp word [ecx + eax*2], 0x2f
lea eax, [ecx + eax*2]
je 0x405b51
cmp eax, ecx
je 0x405b57
sub eax, 2
cmp word [eax], 0x2f
jne 0x405b44
sub eax, ecx
sar eax, 1
jmp 0x405b5a
or eax, 0xffffffff
lea ecx, [edi - 1]
cmp ecx, eax
jne 0x405be7
cmp edi, ecx
mov dword [ebp - 0x18], 0
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 0
cmovb ecx, edi
xorps xmm0, xmm0
cmp esi, 8
push ecx
cmovae eax, edx
lea ecx, [ebp - 0x28]
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.0040eeb0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x405bcc
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405bc2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e5e
push ecx
push edx
call fcn.00467ca1
add esp, 8
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ebp + 8], xmm0
mov edx, dword [ebp + 8]
movq xmm0, qword [ebp - 0x18]
movq qword [ebp + 0x18], xmm0
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x405bf4
mov byte [ebp - 0x41], 0
jmp 0x405e0b
cmp esi, 8
lea eax, [ebp + 8]
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405c12
mov byte [ebp - 0x41], 1
jmp 0x405e05
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
mov edi, dword [ebp + 0x18]
cmovae esi, dword [ebp + 8]
test edi, edi
je 0x405c53
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [esi + ecx*2], 0x5c
lea edx, [esi + ecx*2]
je 0x405c4d
nop dword [eax]
cmp edx, esi
je 0x405c53
sub edx, 2
cmp word [edx], 0x5c
jne 0x405c40
sub edx, esi
sar edx, 1
jmp 0x405c56
or edx, 0xffffffff
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
test edi, edi
je 0x405c93
lea eax, [edi - 1]
mov ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp word [esi + ecx*2], 0x2f
lea ecx, [esi + ecx*2]
je 0x405c8d
nop dword [eax]
cmp ecx, esi
je 0x405c93
sub ecx, 2
cmp word [ecx], 0x2f
jne 0x405c80
sub ecx, esi
sar ecx, 1
jmp 0x405c96
or ecx, 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 7
xor eax, eax
xor esi, esi
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], si
cmp edx, ecx
mov byte [ebp - 4], 1
cmovg ecx, edx
cmp ecx, 0xffffffff
je 0x405cf6
cmp edi, ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp + 8]
mov dword [ebp - 0x14], esi
cmovb ecx, edi
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.0040eeb0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x30], xmm0
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
sub esp, 0x18
xorps xmm0, xmm0
cmp dword [ebp - 0x2c], 8
mov esi, esp
cmovae ecx, edi
mov dword [ebp - 0x48], ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp eax, 0x7ffffffe
ja 0x405e59
mov dword [esi + 0x14], 7
cmp eax, 8
jae 0x405d41
mov dword [esi + 0x10], eax
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
jmp 0x405d8e
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x405d55
mov edi, SysReAllocString
jmp 0x405d5f
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.0040ef50
mov ecx, eax
mov dword [esi + 0x14], edi
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x10], eax
mov dword [esi], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x48]
push ecx
call fcn.004696f0
mov edi, dword [ebp - 0x40]
add esp, 0xc
call fcn.00405aa0
add esp, 0x18
test al, al
je 0x405dce
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x1c]
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], 0xc
cmovae eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete byte [ebp - 0x41]
jmp 0x405dd2
mov byte [ebp - 0x41], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x405e05
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x405dfb
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e5e
push ecx
push edi
call fcn.00467ca1
add esp, 8
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
cmp esi, 8
jb 0x405e3b
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x405e31
mov edx, dword [eax - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e5e
push esi
push edx
call fcn.00467ca1
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.0046780a
mov esp, ebp
pop ebp
ret
call fcn.0040ef40
call fcn.0046c9ef
int3