Function at 0x41edd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c787d
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x51fee0]
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
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x6c], 0
call fcn.004178a0
test al, al
jne 0x41ee48
mov eax, 0x2e
mov esi, 0x16
lea ebx, [ebx]
test esi, esi
je 0x41ee41
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x41ee30
add eax, esi
mov dword [0x521340], eax
push 0
lea ecx, [ebp - 0xa4]
call fcn.00443cd0
push str.success
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
call fcn.00443c90
lea eax, [ebp - 0x90]
push eax
push 0x4da4ec
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.00444170
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.00443ee0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x74], esi
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x68], eax
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 3
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x80], ebx
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x7c], edi
mov ecx, dword [ebp - 0x54]
push str.hive
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 6
call fcn.00444250
sub esp, 0x18
mov ecx, eax
push esp
call fcn.00444a40
lea eax, [ebp - 0x64]
push eax
call fcn.0044ff60
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 7
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x60], ecx
cmp eax, ecx
je 0x41ef88
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x41ef79
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41ef79
push dword [ebp - 0x50]
call fcn.00404880
add esp, 4
mov dword [ebp - 0x50], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41ef71
mov edx, dword [ebp - 0x60]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
lea esi, [eax + 0x10]
mov dword [ebp - 0x74], esi
jmp 0x41ef88
push dword [edx - 0xc]
lea ecx, [ebp - 0x74]
push edx
call fcn.004097a0
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41efa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
push ecx
mov ecx, dword [esi]
mov dword [ebp - 0x60], esp
mov eax, dword [ecx]
mov dword [ebp - 0x64], esi
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x41efd6
cmp ecx, dword [esi]
jne 0x41efd6
mov ecx, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41f019
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x50], edx
test edx, edx
jne 0x41efed
call fcn.0040c350
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.004a8205
mov ecx, dword [ebp - 0x50]
add esp, 0x10
lea eax, [ecx + 0x10]
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
call fcn.00415480
add esp, 4
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x41f150
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push str.writeReg_hive_error_
push eax
call fcn.0040b870
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 8
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 9
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.00444170
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 9
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41f0af
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f0d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f0f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f10d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f12d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f147
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41f947
mov ecx, dword [ebp - 0x54]
push 0x4da994
call fcn.00444250
sub esp, 0x18
mov ecx, eax
push esp
call fcn.00444a40
lea eax, [ebp - 0x58]
push eax
call fcn.0044ff60
add esp, 0x1c
mov edx, dword [eax]
mov esi, dword [ebp - 0x68]
lea eax, [edx - 0x10]
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x78], ecx
cmp eax, ecx
je 0x41f1db
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x41f1cc
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41f1cc
push dword [ebp - 0x50]
call fcn.00404880
add esp, 4
mov dword [ebp - 0x50], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41f1c4
mov edx, dword [ebp - 0x78]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
lea esi, [eax + 0x10]
mov dword [ebp - 0x68], esi
jmp 0x41f1db
push dword [edx - 0xc]
lea ecx, [ebp - 0x68]
push edx
call fcn.004097a0
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f1fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x54]
push 0x4da998
call fcn.00444250
sub esp, 0x18
mov ecx, eax
push esp
call fcn.00444a40
lea eax, [ebp - 0x50]
push eax
call fcn.0044ff60
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [ebx - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x78], ecx
cmp eax, ecx
je 0x41f284
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
jl 0x41f275
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41f275
push dword [ebp - 0x58]
call fcn.00404880
add esp, 4
mov dword [ebp - 0x58], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41f26d
mov edx, dword [ebp - 0x78]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x80], ebx
jmp 0x41f284
push dword [edx - 0xc]
lea ecx, [ebp - 0x80]
push edx
call fcn.004097a0
mov ebx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f2a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x54]
xor eax, eax
push 0x4daa4c
mov dword [ebp - 0x50], eax
call fcn.00444250
mov ecx, eax
call fcn.00445280
mov ecx, dword [ebp - 0x54]
push 0x4daa4c
test al, al
je 0x41f2de
call fcn.00444250
mov ecx, eax
call fcn.00444940
mov dword [ebp - 0x70], eax
jmp 0x41f3a2
call fcn.00444250
mov ecx, eax
call fcn.004452f0
test al, al
je 0x41f789
mov ecx, dword [ebp - 0x54]
push 0x4daa4c
mov dword [ebp - 0x50], 1
call fcn.00444250
sub esp, 0x18
mov ecx, eax
push esp
call fcn.00444a40
lea eax, [ebp - 0x5c]
push eax
call fcn.0044ff60
add esp, 0x1c
mov edx, dword [eax]
lea ecx, [edi - 0x10]
lea eax, [edx - 0x10]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x78], ecx
cmp eax, ecx
je 0x41f381
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x41f372
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41f372
push dword [ebp - 0x58]
call fcn.00404880
add esp, 4
mov dword [ebp - 0x58], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x41f36a
mov edx, dword [ebp - 0x78]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
lea edi, [eax + 0x10]
mov dword [ebp - 0x7c], edi
jmp 0x41f381
push dword [edx - 0xc]
lea ecx, [ebp - 0x7c]
push edx
call fcn.004097a0
mov edi, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f3a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x54]
push 0x4da9a0
call fcn.004452a0
test al, al
je 0x41f3c9
mov ecx, dword [ebp - 0x54]
push 0x4da9a0
call fcn.00444250
mov ecx, eax
call fcn.00444940
jmp 0x41f3cb
xor eax, eax
mov ecx, 0x2001f
mov dword [ebp - 0x54], 0xf003f
cmp eax, 0x20
jne 0x41f3ea
mov ecx, 0x2021f
mov dword [ebp - 0x54], 0xf023f
jmp 0x41f3fb
cmp eax, 0x40
jne 0x41f3fb
mov ecx, 0x2011f
mov dword [ebp - 0x54], 0xf013f
lea eax, [ebp - 0x6c]
push eax
push ecx
push 0
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x41f42c
push 0
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x54]
push 0
push 0
push 0
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41f57f
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0043f5e0
add esp, 8
push eax
lea eax, [ebp - 0x60]
push str.writeReg_RegOpenKeyEx_or_RegCreateKeyEx_
push eax
mov byte [ebp - 4], 0x11
call fcn.0040b870
add esp, 0xc
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f478
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x14
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x15
call fcn.00444170
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x14
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41f4da
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f4fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f51b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f538
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f555
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f147
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41f947
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x41f590
push 4
lea eax, [ebp - 0x70]
push eax
push 4
jmp 0x41f5a7
cmp eax, 1
jne 0x41f706
mov eax, dword [edi - 0xc]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41f706
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0043f5e0
add esp, 8
push eax
lea eax, [ebp - 0x50]
push str.writeReg_RegSetValueEx_
push eax
mov byte [ebp - 4], 0x16
call fcn.0040b870
add esp, 0xc
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x18
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f5ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x19
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x1a
call fcn.00444170
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x19
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41f661
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f682
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f6a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f6bf
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f6dc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f147
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41f947
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov dword [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f729
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f746
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f763
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f947
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f947
push str.writeReg_invalid_value_type
lea ecx, [ebp - 0x50]
call fcn.00401ff0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x10
call fcn.00444170
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x41f7fc
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f81d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f83d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f85a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f877
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f147
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41f947
mov eax, dword [ebp - 0x6c]
mov ebx, 1
test eax, eax
je 0x41f961
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x4c]
call fcn.00445f40
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0x1f
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0x20
call fcn.004177d0
test al, al
jne 0x41f99c
mov eax, dword [0x521340]
test eax, eax
cmove eax, ebx
mov dword [0x521340], eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00448e50
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x21
jb 0x41f9bd
mov edx, dword [edx]
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x41f9dc
xor ecx, ecx
jmp 0x41f9ea
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f9e1
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.00401460
lea eax, [ebp - 0x5c]
push eax
call fcn.0044ff60
add esp, 0x1c
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x22
call fcn.00402b30
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x21
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41fa2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 0x20
jb 0x41fa41
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov ebx, dword [ebp - 0x94]
mov esi, dword [ebp - 0x70]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41fa65
call fcn.0040c350
mov dword [ebx + 8], eax
mov eax, dword [0x521340]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 0x8000000f
jns 0x41fa80
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 0xd
jne 0x41fa9b
call fcn.004a8009
mov ecx, dword [0x521340]
cmp ecx, eax
jne 0x41fa9b
dec ecx
mov dword [0x521340], ecx
add esi, 0xfffffff0
mov byte [ebp - 4], 0x1f
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41fab6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x4c], 0x4da4e4
jb 0x41fad2
push dword [ebp - 0x48]
call fcn.004a6c2e
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00446040
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.00443ee0
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.004a7434
mov esp, ebp
pop ebp
ret