Function at 0x4093b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4205d3
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x42807c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2e4], 0xffffffff
mov dword [ebp - 0x304], esi
jae 0x4093ff
lea eax, [ebp + 8]
lea ecx, [ebp - 0x304]
push ecx
push 0x425894
push eax
call fcn.0041043b
mov ebx, eax
add esp, 0xc
cmp ebx, esi
jne 0x409452
cmp dword [ebp + 0x1c], 8
jb 0x40942c
mov edx, dword [ebp + 8]
push edx
call fcn.0040ed52
add esp, 4
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ed5d
mov esp, ebp
pop ebp
ret
xor esi, esi
push 0x23
push ebx
call fcn.0040fff1
add esp, 8
cmp eax, esi
je 0x409478
mov edx, 0x22
push 0x23
push ebx
mov word [eax], dx
call fcn.0040fff1
add esp, 8
cmp eax, esi
jne 0x409461
push 0x48
mov dword [ebp - 0x2f0], esi
call fcn.0040f26d
add esp, 4
cmp eax, esi
je 0x409b5c
mov dword [ebp - 0x2f4], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x2f4]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x2f4]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x2f4]
mov al, 1
mov byte [ecx + 0x44], al
mov edx, dword [ebp - 0x2f4]
mov byte [edx + 0x45], al
mov byte [ebp - 4], al
cmp ebx, esi
je 0x4094f7
cmp word [ebx], si
je 0x4094f7
push ebx
push str.Command_line:__s.
push str.kupdate::KCommandLine::ParseCommandLine
push str.miscKCommandLine.cpp
push 7
mov edx, 0x82
call fcn.00402b80
add esp, 0x14
push ebx
lea ebx, [ebp - 0x2f8]
call fcn.00405e50
jmp 0x409514
push str.Invalid_args.
push str.kupdate::KCommandLine::ParseCommandLine
push str.miscKCommandLine.cpp
push esi
mov edx, 0x7e
call fcn.00402b80
add esp, 0x10
push 0x425898
lea esi, [ebp - 0x28c]
lea ebx, [ebp - 0x2f8]
call fcn.00405f40
mov byte [ebp - 4], 2
cmp dword [ebp - 0x278], 8
mov eax, dword [ebp - 0x28c]
jae 0x40953f
mov eax, esi
push 0x4258a4
push eax
call fcn.0041011b
add esp, 8
test eax, eax
jne 0x4099bc
push 0x4258ac
lea esi, [ebp - 0x238]
lea ebx, [ebp - 0x2f8]
call fcn.00405f40
push str.valuename
lea esi, [ebp - 0x270]
mov byte [ebp - 4], 3
call fcn.00405f40
push str.valuetype
lea esi, [ebp - 0x2a8]
mov byte [ebp - 4], 4
call fcn.00405f40
push str.value
lea esi, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.00405f40
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x2fc], 0x5c
test eax, eax
je 0x4095f3
mov ecx, eax
mov dword [ebp - 0x2e4], ecx
cmp eax, 1
jb 0x4095f3
cmp dword [ebp - 0x224], 8
mov edi, dword [ebp - 0x238]
jae 0x4095e1
lea edi, [ebp - 0x238]
mov eax, edi
test ecx, ecx
je 0x4095f3
cmp word [eax], 0x5c
je 0x409607
add eax, 2
dec ecx
jne 0x4095e7
mov dword [ebp - 0x2e4], 0
mov ebx, 7
jmp 0x40991a
test eax, eax
je 0x4095f3
mov esi, 1
lea edx, [ebp - 0x2fc]
mov ecx, eax
jmp 0x409620
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x409724
add ecx, 2
add edx, 2
dec esi
jne 0x409620
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40964a
lea ecx, [ebp - 0x238]
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4095f3
cmp esi, 2
jbe 0x4095f3
push esi
xor ecx, ecx
lea eax, [ebp - 0x2e0]
lea edx, [ebp - 0x238]
mov dword [ebp - 0x2e8], 0
call fcn.00405010
push 0xffffffffffffffff
lea ecx, [esi + 1]
lea eax, [ebp - 0x2c4]
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 7
call fcn.00405010
mov edi, eax
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 8
call fcn.00401320
mov esi, 8
mov byte [ebp - 4], 7
cmp dword [ebp - 0x2b0], esi
jb 0x4096c3
mov eax, dword [ebp - 0x2c4]
push eax
call fcn.0040ed52
add esp, 4
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x224], esi
jae 0x4096d7
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x2e8]
push ecx
push 0x20019
xor edi, edi
push edi
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004086e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x409751
cmp dword [ebp - 0x2cc], esi
jb 0x409714
mov edx, dword [ebp - 0x2e0]
push edx
call fcn.0040ed52
add esp, 4
mov dword [ebp - 0x2e4], edi
mov ebx, 7
jmp 0x40991a
sbb edx, edx
and edx, 0xfffffffe
inc edx
je 0x409635
mov ecx, eax
sub ecx, edi
sar ecx, 1
or edx, 0xffffffff
sub edx, ecx
mov ecx, dword [ebp - 0x2e4]
add ecx, edx
mov dword [ebp - 0x2e4], ecx
lea edi, [eax + 2]
jmp 0x4095e1
xor eax, eax
mov word [ebp - 0x2c4], ax
mov ebx, 7
push 6
mov eax, str.REG_SZ
lea ecx, [ebp - 0x2c4]
xor esi, esi
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2b4], edi
call fcn.00401540
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 9
call fcn.00408ab0
cmp dword [ebp - 0x2b0], 8
mov dword [ebp - 0x300], eax
jb 0x4097b2
mov ecx, dword [ebp - 0x2c4]
push ecx
call fcn.0040ed52
mov eax, dword [ebp - 0x300]
add esp, 4
cmp eax, 1
jne 0x409875
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x2e4], 0x104
mov word [ebp - 0x21c], dx
call fcn.00412f10
mov eax, dword [ebp - 0x270]
add esp, 0xc
cmp dword [ebp - 0x25c], 8
jae 0x4097f8
lea eax, [ebp - 0x270]
lea ecx, [ebp - 0x2e4]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x2e8]
lea ecx, [ebp - 0x300]
push ecx
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x2e4]
cmp ecx, edi
je 0x4098e6
cmp eax, edi
jne 0x4098e6
mov eax, dword [ebp - 0x244]
cmp eax, edi
je 0x4098e1
jbe 0x4098e6
cmp ecx, edi
jbe 0x4098e6
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x409863
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0041011b
add esp, 8
jmp 0x4098dd
cmp eax, 4
jne 0x4098e6
cmp dword [ebp - 0x25c], 8
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x270]
jae 0x409895
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x2fc]
push edx
mov edx, dword [ebp - 0x2e8]
push edi
lea ecx, [ebp - 0x300]
push ecx
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4098e6
cmp dword [ebp - 0x244], edi
je 0x4098e1
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x4098d4
lea eax, [ebp - 0x254]
push eax
call fcn.0040fd46
add esp, 4
test eax, eax
jne 0x4098e6
mov esi, 1
mov eax, dword [ebp - 0x2e8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2cc], 8
jb 0x40990b
mov ecx, dword [ebp - 0x2e0]
push ecx
call fcn.0040ed52
add esp, 4
mov dword [ebp - 0x2e4], esi
cmp esi, 1
je 0x409a48
mov esi, 8
cmp dword [ebp - 0x240], esi
jb 0x409936
mov edx, dword [ebp - 0x254]
push edx
call fcn.0040ed52
add esp, 4
xor edi, edi
xor eax, eax
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], ax
cmp dword [ebp - 0x294], esi
jb 0x409964
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.0040ed52
add esp, 4
xor edx, edx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x298], edi
mov word [ebp - 0x2a8], dx
cmp dword [ebp - 0x25c], esi
jb 0x409990
mov eax, dword [ebp - 0x270]
push eax
call fcn.0040ed52
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x260], edi
mov word [ebp - 0x270], cx
cmp dword [ebp - 0x224], esi
jb 0x4099bc
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040ed52
add esp, 4
lea eax, [ebp - 0x304]
push eax
push 0x425894
push 0
call fcn.0041043b
add esp, 0xc
cmp dword [ebp - 0x278], 8
mov ebx, eax
jb 0x4099ec
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.0040ed52
add esp, 4
xor edx, edx
mov dword [ebp - 0x278], 7
mov dword [ebp - 0x27c], 0
mov word [ebp - 0x28c], dx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x308]
lea esi, [ebp - 0x2f8]
call fcn.00406200
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2f4]
push eax
call fcn.0040ed52
add esp, 4
test ebx, ebx
jne 0x409450
jmp 0x40941a
cmp dword [ebp - 0x240], 8
jb 0x409a60
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.0040ed52
add esp, 4
xor edx, edx
cmp dword [ebp - 0x294], 8
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], dx
jb 0x409a8d
mov eax, dword [ebp - 0x2a8]
push eax
call fcn.0040ed52
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x25c], 8
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x298], edi
mov word [ebp - 0x2a8], cx
jb 0x409aba
mov edx, dword [ebp - 0x270]
push edx
call fcn.0040ed52
add esp, 4
xor eax, eax
cmp dword [ebp - 0x224], 8
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x260], edi
mov word [ebp - 0x270], ax
jb 0x409ae7
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0040ed52
add esp, 4
xor edx, edx
cmp dword [ebp - 0x278], 8
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
jb 0x409b14
mov eax, dword [ebp - 0x28c]
push eax
call fcn.0040ed52
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x27c], edi
mov word [ebp - 0x28c], cx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x308]
lea esi, [ebp - 0x2f8]
call fcn.00406200
mov edx, dword [ebp - 0x2f4]
push edx
call fcn.0040ed52
add esp, 4
jmp 0x40941a
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x318]
mov dword [ebp - 0x30c], esi
call fcn.0040edf4
push 0x426820
lea ecx, [ebp - 0x318]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00410891
int3