Function at 0x4101c0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x537e76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], esi
call fcn.00516bdf
mov eax, dword [0x5ab980]
xor ebx, ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xdc]
push ebx
push 0x20
lea ecx, [esp + 0x40]
mov eax, dword [eax]
mov byte [esp + 0xdc], 3
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call fcn.00516c54
test eax, eax
jne 0x410288
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 2
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], bl
call fcn.005128e4
lea ecx, [esp + 0x38]
mov dword [esp + 0xd4], 0xffffffff
call fcn.00516c11
mov eax, 0xffffffca
jmp 0x41097c
lea ecx, [esp + 0x1c]
mov dword [esi + 0xc], ebx
push ecx
lea ecx, [esp + 0x3c]
call fcn.00516e37
test eax, eax
je 0x4108e4
push 0x3c
lea ecx, [esp + 0x20]
call fcn.00512dab
mov edi, eax
cmp edi, ebx
jl case.default.0x4105bf
lea ebp, [edi + 1]
lea ecx, [esp + 0x1c]
push ebp
push 0x3e
call fcn.00512db9
mov esi, eax
cmp esi, ebx
jl case.default.0x4105bf
mov edx, esi
lea eax, [esp + 0x30]
sub edx, edi
lea ecx, [esp + 0x1c]
dec edx
push edx
push ebp
push eax
call fcn.0050e195
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xd8], 4
call fcn.00512a1d
lea ecx, [esp + 0x30]
mov byte [esp + 0xd4], 3
call fcn.005128e4
lea ecx, [esp + 0x14]
call fcn.00512e18
lea ecx, [esp + 0x14]
call fcn.0050e7b8
lea ecx, [esp + 0x14]
call fcn.0050e8af
lea ecx, [esp + 0x10]
call fcn.0051286f
lea edi, [esi + 1]
lea ecx, [esp + 0x1c]
push edi
push 0x3c
call fcn.00512db9
cmp eax, esi
jle 0x4103a2
sub eax, esi
lea ecx, [esp + 0x34]
dec eax
push eax
push edi
push ecx
lea ecx, [esp + 0x28]
call fcn.0050e195
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 5
call fcn.00512a1d
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 3
call fcn.005128e4
lea ecx, [esp + 0x10]
call fcn.0050e7b8
lea ecx, [esp + 0x10]
call fcn.0050e8af
push 0x5982cc
lea ecx, [esp + 0x14]
call fcn.0050e723
push 0x5982cc
lea ecx, [esp + 0x14]
call fcn.0050e804
mov edx, dword [esp + 0x18]
cmp dword [edx + 0xc], ebx
jne 0x4103f5
mov eax, dword [esp + 0x14]
mov esi, str.uninstall
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4103d8
cmp cl, bl
je 0x4103d4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4103d8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4103b4
xor eax, eax
jmp 0x4103dd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne case.default.0x4105bf
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], 1
jmp case.default.0x4105bf
mov edi, dword [esp + 0x14]
mov esi, str._uninstall
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410424
cmp cl, bl
je 0x410420
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410424
add eax, 2
add esi, 2
cmp cl, bl
jne 0x410400
xor eax, eax
jmp 0x410429
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4108d1
mov esi, 0x5982ac
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41045c
cmp cl, bl
je 0x410458
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41045c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x410438
xor eax, eax
jmp 0x410461
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x410475
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], 0xb
jmp case.default.0x4105bf
mov esi, str.directories
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4104a0
cmp cl, bl
je 0x41049c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4104a0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41047c
xor eax, eax
jmp 0x4104a5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4104b9
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], 0xc
jmp case.default.0x4105bf
mov esi, str.icons
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4104e4
cmp cl, bl
je 0x4104e0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4104e4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4104c0
xor eax, eax
jmp 0x4104e9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4104fd
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], 0xd
jmp case.default.0x4105bf
mov esi, 0x598294
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410528
cmp cl, bl
je 0x410524
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410528
add eax, 2
add esi, 2
cmp cl, bl
jne 0x410504
xor eax, eax
jmp 0x41052d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x410541
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], 0xf
jmp case.default.0x4105bf
push str.HKEY_
push edi
call fcn.00422ad0
add esp, 8
test eax, eax
je 0x410582
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0xc], 0xe
add esi, 0x10
mov ecx, esi
call fcn.00512a1d
mov ecx, esi
call fcn.00512e06
push esi
call fcn.0041f9c0
add esp, 4
jmp case.default.0x4105bf
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x2f
jne 0x4105a3
mov esi, dword [esp + 0x18]
lea ecx, [esi + 0x10]
call fcn.0051286f
mov dword [esi + 0xc], 0xa
jmp case.default.0x4105bf
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0xc]
cmp ecx, 0xa
jle case.default.0x4105bf
add ecx, 0xfffffff5
cmp ecx, 4
ja case.default.0x4105bf
jmp dword [ecx*4 + 0x410998]
mov esi, str.file
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4105ef
cmp cl, bl
je 0x4105eb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4105ef
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4105cb
xor eax, eax
jmp 0x4105f4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne case.default.0x4105bf
mov ecx, dword [esp + 0xe0]
lea eax, [esp + 0x10]
push eax
call fcn.00407e10
inc dword [esp + 0x28]
jmp case.default.0x4105bf
mov esi, 0x598280
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41063f
cmp cl, bl
je 0x41063b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41063f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41061b
xor eax, eax
jmp 0x410644
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne case.default.0x4105bf
push ebx
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00512659
mov ecx, dword [esp + 0xe8]
call fcn.00408690
inc dword [esp + 0x24]
jmp case.default.0x4105bf
mov esi, 0x59827c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41069c
cmp cl, bl
je 0x410698
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41069c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x410678
xor eax, eax
jmp 0x4106a1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne case.default.0x4105bf
mov eax, dword [0x5ab980]
mov dword [esp + 0x20], eax
push 0x598278
lea ecx, [esp + 0x18]
mov byte [esp + 0xd8], 6
call fcn.0050e804
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
add edx, 0x10
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00512b13
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xd8], 7
call fcn.00512a1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 6
call fcn.005128e4
push ebx
push ebx
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.00512659
mov ecx, dword [esp + 0xec]
call fcn.00407760
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 3
call fcn.005128e4
jmp case.default.0x4105bf
mov esi, str.icon
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410760
cmp cl, bl
je 0x41075c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410760
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41073c
xor eax, eax
jmp 0x410765
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne case.default.0x4105bf
lea ecx, [esp + 0x50]
call fcn.00404710
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xdc], 8
call fcn.004041e0
test eax, eax
jle 0x4107a3
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0xe4]
call fcn.00407e10
lea ecx, [esp + 0x78]
mov byte [esp + 0xd4], 0x11
call fcn.00510e5f
lea ecx, [esp + 0x74]
mov byte [esp + 0xd4], 0x10
call fcn.005128e4
lea ecx, [esp + 0x70]
mov byte [esp + 0xd4], 0xf
call fcn.005128e4
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd4], 0xe
call fcn.005128e4
lea ecx, [esp + 0x68]
mov byte [esp + 0xd4], 0xd
call fcn.005128e4
lea ecx, [esp + 0x64]
mov byte [esp + 0xd4], 0xc
call fcn.005128e4
lea ecx, [esp + 0x60]
mov byte [esp + 0xd4], 0xb
call fcn.005128e4
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd4], 0xa
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0xd4], 9
call fcn.005128e4
mov byte [esp + 0xd4], 3
jmp case.default.0x4105bf
mov esi, str.file
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41086f
cmp cl, bl
je 0x41086b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41086f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41084b
xor eax, eax
jmp 0x410874
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne case.default.0x4105bf
lea ecx, [esp + 0x9c]
call fcn.004100f0
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xa4]
mov byte [esp + 0xdc], 0x12
call fcn.004101c0
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd4], 3
call fcn.00410160
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x38]
push edx
call fcn.00516e37
test eax, eax
jne 0x4102a1
jmp 0x4108d8
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], ebx
cmp dword [esp + 0x28], ebx
jg 0x410931
cmp dword [esp + 0x24], ebx
jg 0x410931
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 2
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], bl
call fcn.005128e4
lea ecx, [esp + 0x38]
mov dword [esp + 0xd4], 0xffffffff
call fcn.00516c11
mov eax, 0xffffffc9
jmp 0x41097c
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 2
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], bl
call fcn.005128e4
lea ecx, [esp + 0x38]
mov dword [esp + 0xd4], 0xffffffff
call fcn.00516c11
mov eax, 1
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret 8