Function at 0x49cc40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f3b29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdac
mov eax, dword [0x53ffd0]
xor eax, dword [esp + 0xdb8]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x518ffc]
mov dword [esp + 0xdb4], eax
lea ebp, [esi + 0x34]
push edi
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x519000]
mov dword [eax + 4], edx
mov ecx, dword [0x519004]
xor ebx, ebx
push ebx
mov dword [eax + 8], ecx
mov edx, dword [0x519008]
push 1
push 0x914
lea ecx, [esp + 0x2ac]
mov dword [eax + 0xc], edx
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x78], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
xor edi, edi
call dword [eax + 8]
test eax, eax
jne 0x49cd29
lea esp, [esp]
cmp edi, 0x3e8
jge 0x49cd29
mov eax, dword [esp + 0x2a0]
cmp eax, 0xba010000
je 0x49cf85
cmp eax, 0x5367674f
je 0x49d077
cmp eax, 0x46464952
jne 0x49cd0d
cmp dword [esp + 0x2a8], 0x20495641
je 0x49d0bd
mov edx, dword [esi]
push ebx
push 1
push 0x914
lea eax, [esp + 0x2ac]
push eax
mov ecx, esi
inc edi
call dword [edx + 8]
test eax, eax
je 0x49ccd0
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
xor esi, esi
mov dword [esp + 0x64], esi
push 0x50d750
lea ecx, [esp + 0x38]
mov dword [esp + 0xdc8], ebx
call fcn.00403260
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
push 0x2001f
push ebx
push eax
push DirectSoundCreate
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x49d7b3
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4c], ebx
lea edx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x50]
push ebx
push ebx
push ebx
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xb0]
push ecx
push edx
push eax
mov dword [esp + 0x80], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x49d7af
xor esi, esi
mov dword [esp + 0x58], esi
push 0x506a3c
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0xdd0], 2
call fcn.00410a70
lea ecx, [esp + 0xa8]
push ecx
push eax
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0xddc], 3
call fcn.00410a70
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
push 0x2001f
push ebx
push eax
push DirectSoundCreate
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x49ce28
mov esi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x58], esi
cmp eax, ebx
mov eax, dword [esp + 0x74]
setne byte [esp + 0x13]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49ce4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ce71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x49d6a5
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x8c]
push 0x4fae90
push ecx
call fcn.004b82c2
add esp, 0xc
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0xbb8]
push eax
lea ecx, [esp + 0x84]
push ecx
push ebx
lea edx, [esp + 0x98]
push edx
push esi
mov dword [esp + 0x50], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x49d6a5
cmp dword [esp + 0x7c], 1
jne 0x49d6a5
lea eax, [esp + 0xbb4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403260
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 4]
mov edi, dword [ecx - 0xc]
mov edx, 1
sub edx, eax
mov eax, dword [ecx - 8]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
mov byte [esp + 0xdc4], 4
jge 0x49cf1f
push esi
lea ecx, [esp + 0x1c]
call fcn.00402a90
mov ecx, dword [esp + 0x18]
mov word [ecx + edi*2], 0x2c
mov ecx, dword [esp + 0x18]
mov dword [ecx - 0xc], esi
mov edx, dword [esp + 0x18]
mov word [edx + esi*2], bx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0xdc4], 5
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xdc4], 6
mov dword [esp + 0x50], ebx
mov dword [esp + 0x28], ebx
xor esi, esi
jmp 0x49d120
mov ecx, dword [esi + 0x28]
mov eax, edi
imul eax, eax, 0x914
cdq
sub ecx, eax
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x2c]
push ebx
sbb ecx, edx
mov edx, dword [esi]
push 1
push 0x914
lea eax, [esp + 0x2ac]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edi
push eax
mov ecx, esi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
xor edi, edi
call dword [edx + 8]
test eax, eax
jne 0x49d7e4
jmp 0x49cfd0
cmp edi, 0x3e8
jge 0x49d7e4
xor eax, eax
mov edi, edi
cmp dword [esp + eax + 0x2a0], 0xb3010000
je 0x49d016
inc eax
cmp eax, 0x90d
jl 0x49cfe0
mov edx, dword [esi]
push ebx
push 1
push 0x914
lea eax, [esp + 0x2ac]
push eax
mov ecx, esi
inc edi
call dword [edx + 8]
test eax, eax
je 0x49cfd0
jmp 0x49d7e4
movzx ecx, byte [esp + eax + 0x2a5]
movzx edx, byte [esp + eax + 0x2a4]
mov esi, ecx
shl edx, 4
shr esi, 4
or edx, esi
cmp edx, 0x180
jg 0x49d054
movzx eax, byte [esp + eax + 0x2a6]
and ecx, 0xf
shl ecx, 8
or eax, ecx
cmp eax, 0x120
mov eax, 0x507664
jle 0x49d059
mov eax, 0x507414
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp + 0xc], edx
mov al, 1
jmp 0x49d7e6
mov ecx, dword [esi + 0x28]
mov eax, edi
imul eax, eax, 0x914
cdq
sub ecx, eax
sbb dword [esi + 0x2c], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], edi
mov eax, dword [0x50d62c]
mov dword [ebp], eax
mov ecx, dword [0x50d630]
mov dword [ebp + 4], ecx
mov edx, dword [0x50d634]
mov dword [ebp + 8], edx
mov eax, dword [0x50d638]
mov dword [ebp + 0xc], eax
mov al, 1
jmp 0x49d7e6
mov ecx, dword [esp + 0x2a4]
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
add ecx, 8
cmp eax, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
jg 0x49d0e1
jl 0x49d0dd
cmp edx, ecx
jae 0x49d0e1
mov ecx, edx
jmp 0x49d0e3
mov eax, ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], edi
mov ecx, dword [0x507654]
mov dword [ebp], ecx
mov edx, dword [0x507658]
mov dword [ebp + 4], edx
mov eax, dword [0x50765c]
mov dword [ebp + 8], eax
mov ecx, dword [0x507660]
mov dword [ebp + 0xc], ecx
mov al, 1
jmp 0x49d7e6
xor ebx, ebx
jmp 0x49d120
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 0xc]
jge 0x49d60d
lea eax, [eax + esi*2]
push 0x2c
push eax
call fcn.004b7104
add esp, 8
cmp eax, ebx
je 0x49d60d
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, ebx
mov dword [esp + 0x38], eax
jl 0x49d60d
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406e00
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x54]
and eax, 3
cmp eax, 3
mov byte [esp + 0xdc4], 7
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x48], eax
ja case.default.0x49d18b
jmp dword [eax*4 + 0x49d814]
push 0xa
lea edx, [esp + 0x60]
push edx
push esi
call fcn.004b764f
cdq
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x49d5d1
cmp dword [esp + 0x48], 3
jne 0x49d5d1
mov edi, dword [esp + 0x20]
test edi, edi
jbe 0x49d5d1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x49d5d1
mov ebx, dword [esp + 0x40]
test ebx, ebx
jl 0x49d411
jg 0x49d1f7
mov eax, dword [esp + 0x3c]
test eax, eax
jb 0x49d411
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
call dword [edx + 4]
test eax, eax
je 0x49d434
jmp 0x49d415
push 0xa
lea eax, [esp + 0x60]
push eax
push esi
call fcn.004b764f
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x49d1ab
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x49d258
cmp eax, dword [esi]
jne 0x49d258
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x49d28c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x49d6b9
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [ebx], eax
lea eax, [esp + 0x7c]
push eax
call fcn.0049ca70
add esp, 8
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea esi, [ebp - 0x10]
cmp ecx, esi
mov byte [esp + 0xdc4], 8
je 0x49d2fd
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jge 0x49d2d7
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00439600
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
jmp 0x49d3d9
push ecx
call fcn.004460a0
add esp, 4
mov ebp, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x49d2f6
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x78]
jmp 0x49d3d9
mov esi, dword [esp + 0x54]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x49d337
cmp eax, dword [esi]
jne 0x49d337
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x49d36b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x49d6b9
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [ebx], eax
lea eax, [esp + 0x74]
push eax
call fcn.0049ca70
add esp, 8
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
mov byte [esp + 0xdc4], 9
je 0x49d3d5
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jge 0x49d3af
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00439600
jmp 0x49d3d5
push ecx
call fcn.004460a0
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x49d3ce
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d1ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x49d1ab
mov dword [esp + 0x28], 0xffffffff
jmp 0x49d5d1
mov esi, dword [esp + 0x44]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
add eax, ecx
mov ecx, dword [esi + 0x2c]
adc ecx, ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 4]
test eax, eax
jne 0x49d534
mov dword [esp + 0x24], 0
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0xdc8], 0xa
call fcn.0044be40
test al, al
je 0x49d51f
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x24]
push 1
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x58], 0
call dword [edx + 8]
test eax, eax
jne 0x49d51f
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x48]
jne 0x49d51f
mov eax, dword [ebp - 0xc]
mov edx, ecx
cmp eax, edx
jae 0x49d4ef
lea ecx, [esp + 0x1c]
call fcn.00438fc0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
test ecx, ecx
jle 0x49d4ef
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x49d4d8
push esi
lea ecx, [esp + 0x20]
call fcn.00439160
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov byte [edi + ebp], 0xff
mov dword [ebp - 0xc], esi
mov byte [esi + ebp], 0
mov eax, dword [ecx - 0xc]
inc ebx
cmp ebx, eax
jl 0x49d4b1
mov esi, dword [esp + 0x20]
test esi, esi
jbe 0x49d509
mov eax, dword [esp + 0x24]
mov ecx, ebp
sub ecx, eax
nop
mov dl, byte [ecx + eax]
and byte [eax], dl
inc eax
dec esi
jne 0x49d500
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x49d51f
inc dword [esp + 0x50]
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0xdc8], 7
call fcn.004d2f9a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
xor edi, edi
cmp ecx, edi
lea eax, [ebp - 0x10]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x20], edi
je 0x49d584
mov edx, dword [eax + 0xc]
cmp edx, edi
lea ecx, [eax + 0xc]
jge 0x49d562
mov dword [ebp - 0xc], edi
mov byte [ebp], 0
jmp 0x49d584
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
mov esi, dword [eax - 0x10]
add eax, 0xfffffff0
cmp ecx, edi
je 0x49d5d1
mov edx, dword [eax + 0xc]
test edx, edx
lea ecx, [eax + 0xc]
jge 0x49d5af
mov eax, dword [esp + 0x14]
mov dword [eax - 0xc], 0
mov byte [eax], 0
jmp 0x49d5d1
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d5c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d5f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
inc esi
inc eax
mov dword [esp + 0x28], eax
jns 0x49d116
xor ebx, ebx
mov eax, dword [esp + 0x50]
cmp eax, ebx
jle 0x49d624
mov ecx, dword [esp + 0x28]
shl eax, 2
cmp eax, ecx
je 0x49d6be
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d64a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0xdc4], 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49d66d
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d693
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x58]
inc eax
mov dword [esp + 0x2c], eax
jmp 0x49ce81
cmp esi, ebx
je 0x49d6b0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x4c]
jmp 0x49cd7d
jmp fcn.00402690
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, ebx
jne 0x49d6dc
push 0x8007000e
call fcn.00401d80
mov ecx, dword [esp + 0x68]
push ecx
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
push esi
setge byte [esp + 0x17]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49d71c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0xdc4], 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49d73f
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x49d774
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d79a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x49d7a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
jmp 0x49d7e6
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xdc4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d7d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebx
je 0x49d7e4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0xdbc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xdb0]
xor ecx, dword [esp + 0xdc0]
pop ebp
pop ebx
add esp, 0xdb8
jmp fcn.004b8f56