Function at 0x1c9c810
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x1d69870
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x1dbb89c]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1dbb89c]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, dword [esp + 0x314]
mov edx, dword [0x1dbdb58]
mov ebp, dword [esp + 0x310]
mov esi, dword [esp + 0x318]
mov ebx, dword [esp + 0x31c]
mov edi, ecx
mov ecx, dword [esp + 0x320]
mov dword [esp + 0x1c], eax
mov dword [edi + 0x30], edx
mov eax, dword [0x1dbdb5c]
mov dword [edi + 0x34], eax
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x16], al
mov byte [esp + 0x17], 1
cmp dword [edi], eax
jne 0x1c9c8b5
mov byte [esp + 0x16], 1
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x328]
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
push ebx
xor eax, eax
push esi
push eax
push ebp
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
call fcn.01c90b00
add esp, 0x20
mov dword [esp + 0x50], eax
cmp eax, 1
jne 0x1c9c8f2
xor al, al
jmp 0x1c9d0aa
test eax, eax
je 0x1c9c8fb
cmp eax, 2
jne 0x1c9c922
mov eax, dword [esp + 0x54]
push 0
push eax
mov ecx, ebp
call fcn.01c71a20
mov eax, dword [eax]
and eax, 7
cmp eax, 3
je 0x1c9c91d
cmp eax, 4
jne 0x1c9c922
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
cmp byte [esp + 0x17], 0
mov dword [esp + 0x58], 3
je 0x1c9c989
mov eax, dword [esp + 0x324]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x48]
push edx
push eax
push ecx
push ebx
push esi
push 1
push ebp
call fcn.01c90b00
add esp, 0x20
mov dword [esp + 0x58], eax
cmp eax, 1
je 0x1c9c8eb
test eax, eax
je 0x1c9c967
cmp eax, 2
jne 0x1c9c989
mov edx, dword [esp + 0x44]
push 1
push edx
mov ecx, ebp
call fcn.01c71a20
mov eax, dword [eax]
and eax, 7
cmp eax, 3
je 0x1c9c984
cmp eax, 4
jne 0x1c9c989
mov byte [esp + 0x16], 0
cmp dword [esp + 0x54], 0
jne 0x1c9c9b2
cmp dword [esp + 0x44], 0
jne 0x1c9c9b2
mov ecx, ebp
call fcn.01c8d7e0
cmp eax, 3
je 0x1c9c9ad
call fcn.01c8d7e0
cmp eax, 4
jne 0x1c9c9b2
mov byte [esp + 0x16], 0
lea eax, [edi + 0x10]
push eax
call dword [0x1da3df0]
test byte [edi + 0x38], 4
je 0x1c9cfbb
cmp byte [esp + 0x16], 0
je 0x1c9cfbb
cmp dword [edi + 8], 0x80000001
jne 0x1c9ca36
lea ecx, [esp + 0x6c]
call fcn.01d26ef0
mov dword [esp + 0x308], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
lea ebx, [esp + 0x6c]
call fcn.01c8d6f0
mov ecx, dword [esp + 0x324]
mov edi, dword [esp + 0x6c]
push ecx
mov esi, ebp
call fcn.01c914c0
add esp, 4
test al, al
je 0x1c9ca1e
mov byte [esp + 0x16], 0
mov dword [esp + 0x308], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.01d26680
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x16], 0
je 0x1c9cfbb
mov ecx, dword [esp + 0x1c]
mov esi, 5
test ecx, ecx
je 0x1c9ca7b
lea eax, [edi + 0x30]
push eax
push 0
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x84]
push edx
push 0
push 0
push 0
push ecx
call dword [0x1da3e1c]
mov esi, eax
mov byte [esp + 0x16], 0
cmp esi, 5
jne 0x1c9cb35
lea ecx, [esp + 0x6c]
call fcn.01d26ef0
mov dword [esp + 0x308], 1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
lea ebx, [esp + 0x6c]
call fcn.01c8d6f0
xor esi, esi
call fcn.01c8d300
test al, al
je 0x1c9cad1
movzx esi, byte [esp + 0x324]
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0x200
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x1c]
push eax
or esi, 9
push esi
push 0
push ecx
push edx
call dword [0x1da3df8]
mov esi, eax
test esi, esi
jne 0x1c9cb21
lea eax, [edi + 0x30]
push eax
push esi
push esi
push esi
push esi
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x84]
push edx
push esi
push esi
push esi
push eax
mov byte [esp + 0x46], 1
call dword [0x1da3e1c]
mov esi, eax
mov dword [esp + 0x308], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.01d26680
test esi, esi
jne 0x1c9cfa9
cmp dword [esp + 0x68], esi
je 0x1c9cfa9
lea ecx, [esp + 0x110]
call fcn.01d26ef0
mov dword [esp + 0x308], 2
lea ecx, [esp + 0x6c]
call fcn.01d26ef0
mov byte [esp + 0x308], 3
mov ecx, dword [esp + 0x30]
inc ecx
push ecx
lea ecx, [esp + 0x114]
call fcn.01d26b30
mov edx, dword [esp + 0x38]
inc edx
push edx
lea ecx, [esp + 0x70]
call fcn.01d26b30
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
add edi, 0x18
sar eax, 2
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x74]
mov edi, dword [0x1da3e18]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x118]
push ecx
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x30]
push edx
push eax
push esi
push ecx
call edi
mov ebp, eax
cmp ebp, 5
jne 0x1c9cc78
lea ecx, [esp + 0x1b4]
call fcn.01d26ef0
mov byte [esp + 0x308], 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
lea ebx, [esp + 0x1b4]
call fcn.01c8d6f0
mov eax, dword [esp + 0x1b4]
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x1c]
push edx
push 9
push 0
push eax
push ecx
call dword [0x1da3df8]
mov ebp, eax
test ebp, ebp
jne 0x1c9cc64
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x118]
push ecx
mov ecx, dword [esp + 0x28]
push ebp
lea edx, [esp + 0x30]
push edx
push eax
push esi
push ecx
mov byte [esp + 0x36], 1
call edi
mov ebp, eax
mov byte [esp + 0x308], 3
lea ecx, [esp + 0x1b4]
call fcn.01d26680
cmp ebp, 0xea
jne 0x1c9ccf0
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x30]
jbe 0x1c9cc9c
mov dword [esp + 0x30], eax
inc eax
push eax
lea ecx, [esp + 0x114]
call fcn.01d26b30
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x38]
jbe 0x1c9ccb6
inc eax
mov dword [esp + 0x38], eax
inc eax
push eax
lea ecx, [esp + 0x70]
call fcn.01d26b30
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
inc edx
inc eax
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
push esi
push eax
call edi
mov ebp, eax
mov ecx, ebp
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x114]
call fcn.01d26c20
mov edx, ebp
neg edx
sbb edx, edx
not edx
and edx, dword [esp + 0x2c]
lea ecx, [esp + 0x6c]
push edx
call fcn.01d26c20
mov byte [esp + 0x2b], 0
test ebp, ebp
jne 0x1c9cf3c
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0x80000001
jne 0x1c9cda8
lea ecx, [esp + 0x258]
call fcn.01d26ef0
mov byte [esp + 0x308], 5
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x110]
mov ecx, dword [ecx + 0xc]
lea ebx, [esp + 0x258]
call fcn.01c8d6f0
mov edx, dword [esp + 0x324]
mov edi, dword [esp + 0x258]
mov esi, dword [esp + 0x60]
push edx
call fcn.01c914c0
add esp, 4
mov bl, 1
test al, al
jne 0x1c9cd8c
mov bl, byte [esp + 0x2b]
mov byte [esp + 0x308], 3
lea ecx, [esp + 0x258]
call fcn.01d26680
test bl, bl
jne 0x1c9cf44
xor edi, edi
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x24], 0xffffffff
jle 0x1c9ce7a
cmp dword [esp + 0x24], 0xffffffff
jne 0x1c9ce55
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
sub ecx, dword [eax + 0x24]
add eax, 0x18
sar ecx, 2
cmp edi, ecx
jb 0x1c9cde0
call fcn.01d38f43
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x24]
add eax, 0x18
lea esi, [edi*4]
mov eax, dword [esi + edx]
mov ebx, dword [eax + 4]
cmp ebx, dword [esp + 0x20]
jne 0x1c9ce43
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
sub ecx, dword [eax + 0x24]
add eax, 0x18
sar ecx, 2
cmp edi, ecx
jb 0x1c9ce16
call fcn.01d38f43
mov eax, dword [esp + 0x18]
add eax, 0x18
mov eax, dword [eax + 0xc]
add eax, esi
mov eax, dword [eax]
mov eax, dword [eax]
lea edx, [ebx + ebx]
push edx
push eax
mov eax, dword [esp + 0x118]
push eax
call fcn.01d39cfa
add esp, 0xc
test eax, eax
jne 0x1c9ce43
mov dword [esp + 0x24], edi
inc edi
cmp edi, dword [esp + 0x4c]
jl 0x1c9cdbc
cmp dword [esp + 0x24], 0xffffffff
je 0x1c9ce7a
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x24]
mov edi, dword [esp + 0x24]
add esi, 0x18
sar ecx, 2
cmp edi, ecx
jb 0x1c9ce72
call fcn.01d38f43
mov edx, dword [esi + 0xc]
mov esi, dword [edx + edi*4]
jmp 0x1c9cec1
push 0x150
call fcn.01c60170
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x308], 6
test eax, eax
je 0x1c9cea0
mov ecx, eax
call fcn.01c8fa20
jmp 0x1c9cea2
xor eax, eax
mov byte [esp + 0x308], 3
mov ecx, dword [esp + 0x18]
mov esi, eax
lea eax, [esp + 0x24]
push eax
add ecx, 0x18
mov dword [esp + 0x28], esi
call fcn.01cd70c0
lea edi, [esi + 0xa4]
lea ecx, [esp + 0x6c]
cmp edi, ecx
je 0x1c9cef2
mov edx, dword [esp + 0x6c]
neg edx
sbb edx, edx
neg edx
dec edx
push edx
mov ecx, edi
call fcn.01d26c20
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x74]
push eax
mov ecx, edi
call fcn.01d27060
lea ecx, [esp + 0x110]
cmp esi, ecx
je 0x1c9cf26
mov edx, dword [esp + 0x110]
neg edx
sbb edx, edx
neg edx
dec edx
push edx
mov ecx, esi
call fcn.01d26c20
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x118]
push eax
mov ecx, esi
call fcn.01d27060
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x148], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x14c], edx
jmp 0x1c9cf68
cmp ebp, 0x103
je 0x1c9cf68
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x48]
mov ecx, dword [ecx + 8]
push edx
push eax
call fcn.01c8d5b0
push eax
push ebp
push str.do_load_subkeys::RegEnumKeyEx_return__d_for__ls_ls__d__n
call fcn.01c605b0
add esp, 0x14
mov esi, dword [esp + 0x48]
inc esi
mov dword [esp + 0x48], esi
test ebp, ebp
je 0x1c9cba4
mov byte [esp + 0x308], 2
lea ecx, [esp + 0x6c]
call fcn.01d26680
mov dword [esp + 0x308], 0xffffffff
lea ecx, [esp + 0x110]
call fcn.01d26680
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x16], 0
je 0x1c9cfbb
mov eax, dword [esp + 0x1c]
push eax
call dword [0x1da3df4]
cmp byte [esp + 0x17], 0
je 0x1c9d025
cmp dword [esp + 0x58], 0
jne 0x1c9d025
mov ecx, dword [esp + 0x44]
push 1
push ecx
mov ecx, ebp
call fcn.01c71a20
mov esi, eax
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x3c]
push ecx
lea ebx, [edi + 0x30]
push ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call dword [0x1da3e14]
test eax, eax
jge 0x1c9d005
mov edx, dword [esi + 0x10]
mov dword [ebx], edx
mov eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x30]
push ecx
push 1
push ebp
mov ecx, edi
call fcn.01c955a0
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
push edx
push eax
push 1
push ebp
mov ecx, edi
call fcn.01c9c070
cmp dword [esp + 0x50], 0
jne 0x1c9d088
mov ecx, dword [esp + 0x54]
push 0
push ecx
mov ecx, ebp
call fcn.01c71a20
mov esi, eax
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x3c]
push ecx
lea ebx, [edi + 0x30]
push ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call dword [0x1da3e14]
test eax, eax
jge 0x1c9d068
mov edx, dword [esi + 0x10]
mov dword [ebx], edx
mov eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x30]
push ecx
push 0
push ebp
mov ecx, edi
call fcn.01c955a0
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
push edx
push eax
push 0
push ebp
mov ecx, edi
call fcn.01c9c070
cmp dword [edi + 0x30], 0
lea eax, [edi + 0x30]
jne 0x1c9d0a8
cmp dword [edi + 0x34], 0
jne 0x1c9d0a8
mov ecx, dword [0x1dbdb58]
mov dword [eax], ecx
mov edx, dword [0x1dbdb5c]
mov dword [eax + 4], edx
mov al, 1
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.01d389aa
add esp, 0x2f8
ret 0x18