Function at 0x402bc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42747c
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, esi
mov dword [ebp - 0xb4], esi
cmp dword [esi + 0x14], 7
jbe 0x402c09
mov eax, dword [esi]
lea ecx, [ebp - 0x94]
push ecx
push 0x20119
push 0
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc8], eax
call eax
test eax, eax
jne 0x403503
push 0x208
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x8c], 0x104
call fcn.0042605a
mov ecx, dword fs:[0x2c]
add esp, 4
mov edx, dword [0x43b1a8]
mov edi, eax
mov dword [ebp - 0x90], edi
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x439868]
cmp ecx, dword [edx + 4]
jg 0x40351e
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
push 0
push dword [ebp - 0x94]
mov dword [ebp - 0xb0], eax
call eax
test eax, eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xac], eax
jne 0x4034f2
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xcc], eax
mov eax, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov dword [ebp - 0xd0], eax
mov eax, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov dword [ebp - 0xd4], eax
mov eax, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov dword [ebp - 0xd8], eax
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0x84], ecx
mov edx, 0xa
cmp eax, 1
jb 0x403586
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x98], esi
jbe 0x402d0f
mov eax, dword [esi]
mov dword [ebp - 0x98], eax
lea esi, [ecx + 1]
mov dword [ebp - 0x48], 0
mov eax, 7
mov dword [ebp - 0x44], 0
lea edi, [ebp - 0x58]
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
cmp esi, eax
jbe 0x402d76
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x402d46
mov eax, SysReAllocString
jmp 0x402d4c
cmp eax, 0xa
cmovb eax, edx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402010
mov ecx, dword [ebp - 0x84]
mov edi, eax
mov eax, dword [ebp - 0x88]
add esp, 8
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x48], esi
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x98]
mov dword [ebp - 0x44], eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x5c
add esp, 0xc
mov word [esi + edi], ax
xor ecx, ecx
mov eax, dword [ebp - 0x84]
mov word [edi + eax*2 + 2], cx
mov esi, dword [ebp - 0x90]
mov edi, esi
mov dword [ebp - 4], 1
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402db7
mov edx, dword [ebp - 0x44]
sub edi, ecx
mov ecx, dword [ebp - 0x48]
mov eax, edx
sar edi, 1
sub eax, ecx
mov dword [ebp - 0x84], ecx
cmp edi, eax
ja 0x402e13
lea eax, [edi + ecx]
cmp edx, 7
mov dword [ebp - 0x48], eax
lea esi, [ebp - 0x58]
cmova esi, dword [ebp - 0x58]
lea eax, [edi + edi]
push eax
push dword [ebp - 0x90]
lea ecx, [esi + ecx*2]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x84]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x58]
jmp 0x402e24
push edi
push esi
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x58]
push edi
call fcn.00402430
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x402e9b
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034e6
push ecx
push edx
call fcn.0042604c
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0xa0]
push ecx
mov word [ebp - 0x58], ax
xorps xmm0, xmm0
push 0x20119
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 7
cmova eax, dword [ebp - 0x28]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movlpd qword [ebp - 0xe8], xmm0
call dword [ebp - 0xc8]
test eax, eax
jne 0x403445
lea eax, [ebp - 0xe8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0xa0]
call dword [ebp - 0xcc]
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe8]
push eax
call dword [ebp - 0xd0]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xbc]
push eax
call dword [ebp - 0xd4]
push dword [ebp - 0xa0]
call dword [ebp - 0xac]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00403590
add esp, 8
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0xa4]
call dword [ebp - 0xd8]
mov edi, dword [ebp - 0xbc]
mov edx, 0xe57a42bd
sub edi, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xb8]
mov eax, edi
sbb ecx, dword [ebp - 0xdc]
mul edx
mov eax, edi
mov dword [ebp - 0x84], ecx
mov esi, edx
mov edx, 0xd6bf94d5
mul edx
mov edi, eax
mov dword [ebp - 0x88], edx
mov eax, ecx
mov ecx, 0xe57a42bd
mul ecx
mov ecx, eax
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x84]
mov edx, 0xd6bf94d5
mul edx
add ecx, esi
mov dword [ebp - 0xc0], edx
mov edx, dword [ebp - 0x98]
adc edx, 0
mov dword [ebp - 0x84], eax
mov esi, eax
add edi, ecx
mov ecx, dword [ebp - 0x88]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xc0]
adc eax, eax
add esi, edx
adc ecx, eax
mov eax, dword [ebp - 0xb8]
shrd esi, ecx, 0x17
cmp eax, dword [ebp - 0xdc]
jbe 0x4033f3
cmp esi, 0xa
jle 0x4033f3
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmp edi, 7
mov dword [ebp - 0x84], edx
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x88], eax
cmp edx, 4
jb 0x4030e3
lea ecx, [edx - 3]
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x98], ecx
mov edx, ecx
mov esi, 0
sub edx, eax
sar edx, 1
je 0x403084
cmp word [eax], 0x55
je 0x403082
cmp edx, 1
je 0x403084
add eax, 2
dec edx
cmp word [eax], 0x55
jne 0x403073
mov esi, eax
mov eax, esi
test eax, eax
je 0x4030da
mov esi, 0x42a6fc
mov ecx, eax
sub ecx, esi
mov edi, 4
mov dword [ebp - 0xc0], ecx
nop
movzx edx, word [ecx + esi]
movzx ecx, word [esi]
cmp dx, cx
jne 0x4030bc
add esi, 2
sub edi, 1
je 0x4030c7
mov ecx, dword [ebp - 0xc0]
jmp 0x4030a0
mov ecx, dword [ebp - 0x98]
add eax, 2
jmp 0x403060
sub eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
mov edi, dword [ebp - 0x14]
sar eax, 1
jmp 0x4030e6
mov edx, dword [ebp - 0x84]
mov edi, dword [ebp - 0x14]
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x403180
lea esi, [eax + 4]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
cmp edx, esi
jb 0x40357c
sub edx, esi
lea eax, [ebp - 0x28]
or ecx, 0xffffffff
cmp edx, 0xffffffff
cmovb ecx, edx
cmp edi, 7
push ecx
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
lea eax, [eax + esi*2]
push eax
call fcn.00402080
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40316b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403161
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034e6
push ecx
push edx
call fcn.0042604c
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x18]
mov ecx, 0x11
mov dword [ebp - 0x30], 0
cmp edx, ecx
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
cmovb ecx, edx
cmp dword [ebp - 0x14], 7
push ecx
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
movups xmmword [ebp - 0x40], xmm0
call fcn.00402080
lea eax, [ebp - 0x40]
mov ecx, 0x439860
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402170
mov esi, dword [ebp - 0x100]
mov edi, dword [0x439860]
cmp byte [esi + 0xd], 0
jne 0x4031f1
lea eax, [esi + 0x10]
mov ecx, 0x439860
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402b00
test al, al
je 0x4031f3
mov esi, edi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x40322d
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403223
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034e6
push ecx
push edx
call fcn.0042604c
add esp, 8
cmp esi, edi
jne 0x4033f3
push str.____Unplugged_device_detected__
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00401d40
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmova ecx, dword [ebp - 0x28]
push ecx
push eax
call fcn.00402230
push 0x42a708
push eax
call fcn.00401d40
add esp, 0x1c
mov ecx, eax
push 0x4026c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push str.____Device_was_unplugged_at:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00401d40
cmp dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x70]
push dword [ebp - 0x60]
cmova ecx, dword [ebp - 0x70]
push ecx
push eax
call fcn.00402230
add esp, 0x14
mov ecx, eax
push 0x4026c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, 0x11
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
cmovb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 7
push ecx
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
movups xmmword [ebp - 0x40], xmm0
call fcn.00402080
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x114]
mov ecx, 0x439860
push eax
call fcn.00402170
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0xfc], xmm0
cmp byte [eax + 0xd], 0
jne 0x40332c
add eax, 0x10
mov ecx, 0x439860
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402b00
test al, al
jne 0x40332c
mov edi, dword [ebp - 0x2c]
jmp 0x4033b8
cmp dword [0x439864], 0x6666666
je 0x403581
mov esi, dword [0x439860]
mov dword [ebp - 0xf0], 0x439860
push 0x28
mov byte [ebp - 4], 6
mov dword [ebp - 0xec], 0
call fcn.0042601c
movups xmm0, xmmword [ebp - 0x40]
add esp, 4
xor ecx, ecx
mov word [ebp - 0x40], cx
mov edi, 7
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movups xmmword [eax + 0x10], xmm0
push eax
movq xmm0, qword [ebp - 0x30]
push dword [ebp - 0xf8]
movq qword [eax + 0x20], xmm0
push dword [ebp - 0xfc]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], cx
mov dword [ebp - 0xec], ecx
mov ecx, 0x439860
call fcn.00403b80
mov byte [ebp - 4], 4
cmp edi, 7
jbe 0x4033f3
mov edx, dword [ebp - 0x40]
lea ecx, [edi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4033e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034e6
push ecx
push edx
call fcn.0042604c
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x403431
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403427
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034e6
push ecx
push edx
call fcn.0042604c
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x403460
dec eax
push eax
push dword [ebp - 0xa4]
lea eax, [ebp - 0x28]
push eax
call fcn.00402bc0
add esp, 0xc
mov esi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x8c], 0x104
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x4034b4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4034aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4034e6
push ecx
push edx
call fcn.0042604c
add esp, 8
mov edi, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
push 0
push 0
push 0
push 0
push eax
push edi
push esi
push dword [ebp - 0x94]
call dword [ebp - 0xb0]
test eax, eax
jne 0x4034ec
mov esi, dword [ebp - 0xb4]
jmp 0x402cdd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebp - 0xac]
push dword [ebp - 0x94]
call eax
push edi
call fcn.00426063
add esp, 4
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.00426399
mov esp, ebp
pop ebp
ret
push 0x439868
call fcn.00426335
add esp, 4
cmp dword [0x439868], 0xffffffff
jne 0x402c79
push 0x28
mov dword [ebp - 4], 0
call fcn.0042601c
push 0x4291c0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x439860], eax
call fcn.004262a4
push 0x439868
mov dword [ebp - 4], 0xffffffff
call fcn.004262e4
add esp, 0xc
jmp 0x402c79
call fcn.00403e30
call fcn.00403db0
call fcn.00403e20
int3