Function at 0x45cce0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562c22
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x258]
push str.SYSTEMCurrentControlSetEnumUSBSTOR
mov dword [ebp - 0x288], reloc.OLEAUT32.dll_SysReAllocString
call fcn.004031c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x25c]
push str.SYSTEMCurrentControlSetEnumUSB
call fcn.004031c0
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.00450d70
xor esi, esi
lea eax, [ebp - 0x288]
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
push dword [ebp - 0x258]
mov dword [ebp - 0x21c], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x45cdc8
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], ecx
xor eax, eax
test ecx, ecx
sete al
test eax, eax
jne 0x45ce47
mov byte [ebp - 4], 1
test esi, esi
je 0x45cdec
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x25c]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45ce1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45ce40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x45de38
xor eax, eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x2a8]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], 0x100
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x230], eax
push ecx
push eax
push esi
call edi
cmp eax, 0x103
je 0x45d264
test eax, eax
jne 0x45d264
push 0x58af04
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x220]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x210]
push ecx
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 7
mov ecx, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45ceeb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], 9
lea eax, [ebp - 0x22c]
push eax
push 0x20019
push esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x22c], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x45cf45
mov esi, dword [ebp - 0x22c]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ecx
xor eax, eax
test ecx, ecx
sete al
test eax, eax
je 0x45d249
xor edi, edi
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x22c], 0x100
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x45d1e7
test eax, eax
jne 0x45d1e7
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x218]
call fcn.004031c0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax - 0xc]
xor eax, eax
cmp ecx, 2
setg al
test eax, eax
je 0x45d249
lea eax, [ecx - 2]
push 2
push eax
lea ecx, [ebp - 0x218]
call fcn.0045a820
call fcn.00402a00
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45d23f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24c]
push str.FriendlyName
call fcn.004031c0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004031c0
mov esi, eax
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x21c]
push 0x58af04
lea ecx, [ebp - 0x264]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, eax
push esi
lea ecx, [ebp - 0x250]
call fcn.0041c210
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
push eax
lea ecx, [ebp - 0x284]
call fcn.0045de60
mov byte [ebp - 0x211], al
mov byte [ebp - 4], 0xf
mov edx, ebx
mov esi, dword [ebp - 0x250]
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d09f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov ecx, ebx
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d0c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov ecx, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d0e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov ecx, ebx
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d108
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x211], 0
je 0x45d195
push 0x20
call fcn.00529b2d
add esp, 4
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x45d136
mov ecx, eax
call fcn.0044b2e0
jmp 0x45d138
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x16
lea ecx, [eax + 8]
lea eax, [ebp - 0x238]
push eax
call fcn.00416320
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x218]
call fcn.00450c60
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x45d18b
mov ecx, esi
call fcn.004501c0
push esi
call fcn.005295dd
add esp, 4
mov dword [ebp - 0x234], 0
mov byte [ebp - 4], 0xa
mov ecx, ebx
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d1b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov ecx, ebx
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d1db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x248]
inc edi
jmp 0x45cf56
mov byte [ebp - 4], 7
test esi, esi
je 0x45d200
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d22d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x230]
mov esi, dword [ebp - 0x274]
inc eax
jmp 0x45ce4c
push 0x80004005
call fcn.004027b0
push 0x5afaa8
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x80004005
push eax
call fcn.00532408
xor eax, eax
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x220], 0x100
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x250], eax
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push esi
call edi
cmp eax, 0x103
je 0x45d6d1
test eax, eax
jne 0x45d6d1
push 0x58af04
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x228]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x210]
push ecx
mov edx, eax
lea ecx, [ebp - 0x238]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0x1c
mov ecx, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d2ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x230]
push eax
push 0x20019
push esi
push dword [ebp - 0x238]
mov dword [ebp - 0x230], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x45d359
mov esi, dword [ebp - 0x230]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ecx
xor eax, eax
test ecx, ecx
sete al
test eax, eax
je 0x45d6b6
xor edi, edi
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x234], 0x100
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x230], edi
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x45d658
test eax, eax
jne 0x45d658
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x218]
call fcn.004031c0
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax - 0xc]
xor eax, eax
cmp ecx, 2
setg al
test eax, eax
je 0x45d6b6
lea eax, [ecx - 2]
push 2
push eax
lea ecx, [ebp - 0x218]
call fcn.0045a820
call fcn.00402a00
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45d23f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x24c]
push str.FriendlyName
call fcn.004031c0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x27c]
call fcn.004031c0
mov esi, eax
mov byte [ebp - 4], 0x23
lea edx, [ebp - 0x238]
push 0x58af04
lea ecx, [ebp - 0x280]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0x24
mov edx, eax
push esi
lea ecx, [ebp - 0x264]
call fcn.0041c210
add esp, 4
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
push eax
lea ecx, [ebp - 0x284]
call fcn.0045de60
mov byte [ebp - 0x211], al
mov byte [ebp - 4], 0x24
mov edx, ebx
mov esi, dword [ebp - 0x264]
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d4b9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x23
mov ecx, ebx
mov edx, dword [ebp - 0x280]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d4dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x22
mov ecx, ebx
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d4ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
mov ecx, ebx
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d522
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x211], 0
mov esi, dword [ebp - 0x22c]
je 0x45d60c
push 0x20
call fcn.00529b2d
add esp, 4
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 0x2a
test eax, eax
je 0x45d556
mov ecx, eax
call fcn.0044b2e0
jmp 0x45d558
xor eax, eax
mov byte [ebp - 4], 0x21
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0x2b
lea ecx, [eax + 8]
mov edi, dword [ecx]
lea edx, [esi - 0x10]
sub edi, 0x10
mov dword [ebp - 0x254], ecx
cmp edx, edi
je 0x45d5c6
cmp dword [edi + 0xc], 0
jl 0x45d5bd
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x45d5bd
mov ecx, edx
call fcn.004022c0
mov dword [ebp - 0x278], eax
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d5b0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x254]
add eax, 0x10
mov dword [ecx], eax
jmp 0x45d5c6
push dword [esi - 0xc]
push esi
call fcn.00402600
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x218]
call fcn.00450c60
mov byte [ebp - 4], 0x21
mov edi, dword [ebp - 0x21c]
test edi, edi
je 0x45d5fc
mov ecx, edi
call fcn.004501c0
push edi
call fcn.005295dd
add esp, 4
mov edi, dword [ebp - 0x230]
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 0x1f
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d629
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1e
mov ecx, ebx
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d64c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x248]
inc edi
jmp 0x45d36a
mov byte [ebp - 4], 0x1c
test esi, esi
je 0x45d671
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d69e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp - 0x274]
inc eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x45d266
push 0x5afaa8
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x80004005
push eax
call fcn.00532408
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x45d6ec
push esi
call edi
mov dword [ebp - 0x274], 0
mov ecx, dword [ebp - 0x268]
xor eax, eax
mov dword [ebp - 0x270], 0
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x45d72f
mov byte [ebp - 4], al
mov ecx, ebx
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d72a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45ce1c
xor esi, esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], 0x31
lea eax, [ebp - 0x220]
push eax
push 0x20019
push esi
push dword [ebp - 0x25c]
mov dword [ebp - 0x220], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x45d789
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ecx
xor eax, eax
test ecx, ecx
sete al
test eax, eax
jne 0x45d7db
mov byte [ebp - 4], 1
test esi, esi
je 0x45d7a9
push esi
call edi
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d7d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45ce1c
xor edi, edi
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x22c], edi
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
call edi
cmp eax, 0x103
je 0x45ddcc
test eax, eax
jne 0x45ddcc
push 0x58af04
lea edx, [ebp - 0x25c]
lea ecx, [ebp - 0x254]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x210]
push ecx
mov edx, eax
lea ecx, [ebp - 0x234]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0x36
mov ecx, ebx
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d87c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x28c], esi
mov byte [ebp - 4], 0x38
lea eax, [ebp - 0x220]
push eax
push 0x20019
push esi
push dword [ebp - 0x234]
mov dword [ebp - 0x220], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x45d8d6
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x290], ecx
xor eax, eax
test ecx, ecx
sete al
test eax, eax
je 0x45ddb1
xor eax, eax
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x24c], 0x100
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x220], eax
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push esi
call edi
cmp eax, 0x103
je 0x45dd59
test eax, eax
jne 0x45dd59
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x218]
call fcn.004031c0
mov byte [ebp - 4], 0x39
xor ecx, ecx
mov eax, dword [ebp - 0x218]
cmp dword [eax - 0xc], ecx
setne cl
test ecx, ecx
je 0x45ddb1
call fcn.00402a00
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45d23f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x3b
lea ecx, [ebp - 0x260]
push str.Service
call fcn.004031c0
mov byte [ebp - 4], 0x3c
lea eax, [ebp - 0x210]
mov edi, dword [ebp - 0x224]
lea ecx, [ebp - 0x280]
or edi, 1
push eax
mov dword [ebp - 0x224], edi
call fcn.004031c0
mov esi, eax
mov dword [ebp - 4], 0x3d
or edi, 2
push 0x58af04
lea edx, [ebp - 0x234]
mov dword [ebp - 0x224], edi
lea ecx, [ebp - 0x27c]
call fcn.00415f60
add esp, 4
mov dword [ebp - 4], 0x3e
or edi, 4
push esi
mov edx, eax
mov dword [ebp - 0x224], edi
lea ecx, [ebp - 0x278]
call fcn.0041c210
add esp, 4
mov dword [ebp - 4], 0x3f
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x260]
or edi, 8
push ecx
push eax
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x224], edi
call fcn.0045de60
mov esi, dword [ebp - 0x250]
test al, al
je 0x45da76
mov ecx, str.USBSTOR
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45da66
test dx, dx
je 0x45da62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45da66
add eax, 4
add ecx, 4
test dx, dx
jne 0x45da40
xor eax, eax
jmp 0x45da6b
sbb eax, eax
or eax, 1
mov byte [ebp - 0x211], 0
test eax, eax
je 0x45da7d
mov byte [ebp - 0x211], 1
mov dword [ebp - 4], 0x3e
mov edx, dword [ebp - 0x224]
test dl, 8
je 0x45dac4
and edx, 0xfffffff7
mov dword [ebp - 0x224], edx
mov dword [ebp - 4], 0x3e
mov ecx, ebx
mov edi, dword [ebp - 0x278]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dac4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0x3d
test dl, 4
je 0x45db05
and edx, 0xfffffffb
mov dword [ebp - 0x224], edx
mov dword [ebp - 4], 0x3d
mov ecx, ebx
mov edi, dword [ebp - 0x27c]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45db05
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0x3c
test dl, 2
je 0x45db46
and edx, 0xfffffffd
mov dword [ebp - 0x224], edx
mov dword [ebp - 4], 0x3c
mov ecx, ebx
mov edi, dword [ebp - 0x280]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45db46
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0x3b
test dl, 1
je 0x45db7e
and edx, 0xfffffffe
mov dword [ebp - 0x224], edx
mov byte [ebp - 4], 0x3b
mov ecx, ebx
mov edx, dword [ebp - 0x260]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45db7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x211], 0
je 0x45dba9
mov byte [ebp - 4], 0x39
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dba4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45dd1e
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push dword [ebp - 0x218]
call fcn.004428e0
test eax, eax
je 0x45dd01
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x230]
push str.HardwareID
mov dword [ebp - 0x228], eax
call fcn.004031c0
mov byte [ebp - 4], 0x46
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004031c0
mov edi, eax
mov byte [ebp - 4], 0x47
lea edx, [ebp - 0x234]
push 0x58af04
lea ecx, [ebp - 0x238]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0x48
mov edx, eax
push edi
lea ecx, [ebp - 0x264]
call fcn.0041c210
add esp, 4
mov byte [ebp - 4], 0x49
mov ecx, dword [ebp - 0x228]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x230]
push ecx
push eax
lea ecx, [ebp - 0x298]
call fcn.0045e090
xor ecx, ecx
test al, al
setne cl
mov dword [ebp - 0x228], ecx
mov byte [ebp - 4], 0x48
mov ecx, ebx
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dc8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x47
mov ecx, ebx
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dcae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x46
mov ecx, ebx
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dcd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x3b
mov ecx, ebx
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dcf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x228], 0
je 0x45ddb1
mov byte [ebp - 4], 0x39
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dd1e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x38
mov ecx, ebx
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dd41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x294]
inc eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x45d8e7
mov byte [ebp - 4], 0x36
test esi, esi
je 0x45dd72
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 0x31
mov ecx, ebx
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45dd9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x248]
inc edi
jmp 0x45d7dd
push 0x5afaa8
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x80004005
push eax
call fcn.00532408
mov byte [ebp - 4], 1
test esi, esi
je 0x45dde5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45de12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45de36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret