Function at 0x401c70
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412c65
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x41a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x134], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401cf5
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.00402180
mov dword [ebp - 0x11c], 2
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x120]
mov eax, edx
mov ecx, dword [ebp - 0x124]
sub eax, ecx
push 8
push str.Genetec
cmp eax, 8
jb 0x401d6b
cmp edx, 0x10
lea esi, [ebp - 0x134]
lea eax, [ecx + 8]
cmovae esi, dword [ebp - 0x134]
add esi, ecx
mov dword [ebp - 0x124], eax
push esi
call fcn.00404f90
add esp, 0xc
mov byte [esi + 8], 0
lea eax, [ebp - 0x134]
jmp 0x401d85
mov byte [ebp - 0x118], 0
lea ecx, [ebp - 0x134]
push dword [ebp - 0x118]
push 8
call fcn.00402360
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x11c], 7
cmp edx, 0x10
jb 0x401dfc
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401df2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fcd
push edx
push ecx
call fcn.004026b0
add esp, 8
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x401e06
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call esi
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0xd
jb 0x401e4e
lea eax, [ecx + 0xd]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x401e2f
mov eax, dword [edi]
push 0xd
lea esi, [eax + ecx]
push str.Installation
push esi
call fcn.00404f90
mov byte [esi + 0xd], 0
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x401e6b
push 0xd
push str.Installation
mov byte [ebp - 0x118], 0
mov ecx, edi
push dword [ebp - 0x118]
push 0xd
call fcn.00402360
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x401e75
mov eax, dword [edi]
push 0
push eax
call esi
mov ecx, dword [ebp + 0x18]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x401fd2
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
push 1
push 0x418270
push ecx
push dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
call fcn.004024c0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 4], 3
lea edx, [ebp - 0x134]
cmp dword [ebp - 0x120], 0x10
mov ecx, dword [edi + 0x10]
cmovae edx, dword [ebp - 0x134]
mov eax, dword [edi + 0x14]
sub eax, ecx
mov dword [ebp - 0x118], ecx
mov ecx, dword [ebp - 0x124]
cmp ecx, eax
ja 0x401f22
cmp dword [edi + 0x14], 0x10
mov esi, dword [ebp - 0x118]
lea eax, [ecx + esi]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x401f03
mov eax, dword [edi]
push ecx
add esi, eax
push edx
push esi
call fcn.00404f90
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov byte [eax + esi], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x401f39
push ecx
push edx
mov byte [ebp - 0x118], 0
push dword [ebp - 0x118]
push ecx
mov ecx, edi
call fcn.00402360
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x134]
cmp eax, 0x10
jb 0x401f71
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fd7
push edx
push ecx
call fcn.004026b0
add esp, 8
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x401f7b
mov eax, dword [edi]
push 0
push eax
call esi
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x401fb0
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401fa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fd7
push edx
push ecx
call fcn.004026b0
add esp, 8
mov eax, edi
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.0040269f
mov esp, ebp
pop ebp
ret
call fcn.00405d82
call fcn.004011d0
call fcn.00405d82
int3