Function at 0x4101b0
Capabilities:
Check os version
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43fae4
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x456ea4]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esp + 0x20], esi
mov dword [esi], vtable.CComponentSetup.0
call fcn.00415cb0
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14c], 0
call fcn.00415cb0
mov byte [esp + 0x14c], 1
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410234
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x4c], eax
mov byte [esp + 0x14c], 2
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410265
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x50], eax
mov byte [esp + 0x14c], 3
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410296
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x54], eax
mov byte [esp + 0x14c], 4
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4102c7
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x58], eax
mov byte [esp + 0x14c], 5
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4102f8
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x5c], eax
mov byte [esp + 0x14c], 6
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410329
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x60], eax
mov byte [esp + 0x14c], 7
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41035a
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x64], eax
mov byte [esp + 0x14c], 8
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41038b
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x68], eax
mov byte [esp + 0x14c], 9
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4103bc
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x6c], eax
lea ecx, [esi + 0x70]
mov byte [esp + 0x14c], 0xa
call fcn.00415060
mov byte [esp + 0x14c], 0xb
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4103fd
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10c], eax
mov byte [esp + 0x14c], 0xc
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410431
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x110], eax
mov byte [esp + 0x14c], 0xd
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410465
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x114], eax
mov byte [esp + 0x14c], 0xe
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410499
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x118], eax
mov byte [esp + 0x14c], 0xf
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4104cd
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x11c], eax
mov byte [esp + 0x14c], 0x10
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410501
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x124], eax
mov byte [esp + 0x14c], 0x11
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410535
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x12c], eax
mov byte [esp + 0x14c], 0x12
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410569
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x134], eax
mov byte [esp + 0x14c], 0x13
lea ebx, [esi + 0x138]
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4105a3
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x14c], 0x14
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4105d3
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x13c], eax
mov byte [esp + 0x14c], 0x15
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410607
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x140], eax
mov byte [esp + 0x14c], 0x16
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41063b
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x144], eax
mov byte [esp + 0x14c], 0x17
lea ebp, [esi + 0x148]
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410675
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
push 0xa
lea ecx, [esi + 0x14c]
mov byte [esp + 0x150], 0x18
call fcn.0042171e
mov byte [esp + 0x14c], 0x19
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4106bb
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x16c], eax
push 0xa
lea ecx, [esi + 0x170]
mov byte [esp + 0x150], 0x1a
call fcn.00421969
mov byte [esp + 0x14c], 0x1b
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410704
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x14c], 0x1c
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410736
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 0x1d
mov dword [esi + 0x48], 0
call fcn.00407310
mov ecx, esi
call fcn.0040d730
mov ecx, esi
call fcn.0040ee00
push 0xd
push 0x4477c0
lea ecx, [esi + 0x12c]
call fcn.004073e0
push 4
push str._Lv
mov ecx, ebp
call fcn.004073e0
lea ecx, [esi + 0x58]
call fcn.00407310
lea ecx, [esi + 0x114]
mov dword [esi + 0x34], 0
call fcn.00407310
lea ecx, [esp + 0x24]
mov ebp, 1
push ecx
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], 0
mov dword [esp + 0x28], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410a18
cmp dword [esp + 0x28], 6
jb 0x410a18
mov eax, dword [edi - 8]
mov ecx, ebp
sub ecx, dword [edi - 4]
sub eax, 0x105
or eax, ecx
jge 0x410801
push 0x105
lea ecx, [esp + 0x18]
call fcn.00407500
mov edi, dword [esp + 0x14]
push edi
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test edi, edi
jne 0x410818
xor eax, eax
jmp 0x410835
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410820
sub eax, edx
sar eax, 1
js 0x410a0e
cmp eax, dword [edi - 8]
jg 0x410a0e
mov dword [edi - 0xc], eax
push 0x442694
lea ecx, [esp + 0x18]
mov word [edi + eax*2], 0
call fcn.00405cf0
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edx
call edi
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405da0
push 0x442694
push eax
call fcn.004060c0
mov bl, al
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4108b5
push 0x442694
lea ecx, [esp + 0x18]
call fcn.00405910
push str.Siemens
lea ecx, [esp + 0x18]
call fcn.00405910
mov ecx, dword [esp + 0x14]
push 0
push ecx
call edi
push 0x445740
lea ecx, [esp + 0x18]
call fcn.00405910
mov edx, dword [esp + 0x14]
push 0
push edx
call edi
push str.Logfiles
lea ecx, [esp + 0x18]
call fcn.00405910
mov eax, dword [esp + 0x14]
push 0
push eax
call edi
push str.Setup
lea ecx, [esp + 0x18]
call fcn.00405910
mov ecx, dword [esp + 0x14]
push 0
push ecx
call edi
push 0x442694
lea ecx, [esp + 0x18]
call fcn.00405910
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x138]
call fcn.00407040
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x13c]
call fcn.00407040
lea eax, [esi + 0x118]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00405eb0
add esp, 0xc
push eax
lea ecx, [esi + 0x124]
mov byte [esp + 0x150], 0x1e
call fcn.00407040
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x14c], 0x1d
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x14c], 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x14c], 0x1b
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00425f3c
add esp, 0x13c
ret
push 0x80070057
call fcn.00406210
push ebx
call fcn.00401d20
push str.SetupLogfiles_
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.00405f60
add esp, 0x10
push eax
lea ecx, [esi + 0x13c]
mov byte [esp + 0x150], 0x1f
call fcn.00407040
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x14c], 0x1d
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410a6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x442b58
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00405f60
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0xc
push 0
push eax
call ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410aad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.SetupLogfiles
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00405f60
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
call ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410998
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410998