Function at 0x4200d0
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x45e426
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
xor ebx, ebx
push 1
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x4c], ebx
call fcn.0042f396
mov dword [esp + 0x1c], eax
mov byte [eax], bl
push 1
mov dword [esp + 0xdc], ebx
call fcn.0042f396
mov dword [esp + 0x34], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x40], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x2c], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x78], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x40], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x90], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x44], eax
add esp, 0x20
mov byte [eax], bl
mov ebp, dword [esp + 0xe4]
mov byte [esp + 0xd4], 7
cmp dword [0x474d7c], ebx
je 0x420368
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x6c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x68], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x64], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x60], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x50], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x58], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x44], eax
mov eax, ebp
cmp ebp, ebx
jne 0x42020b
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x58], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x5c], eax
mov eax, ebp
cmp ebp, ebx
jne 0x420231
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0xe4]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x84]
push edi
push edx
mov byte [esp + 0xe8], 0x11
call fcn.00407af0
mov esi, eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x88]
push edi
push edx
mov byte [esp + 0xf8], 0x12
call fcn.00407af0
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [esp + 0x98]
push ecx
push 1
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x88]
push edx
push esi
push eax
mov eax, dword [esp + 0x130]
push ebx
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x138], 0x13
call fcn.0040c0f0
mov ecx, dword [esp + 0xd0]
add esp, 0x64
push ecx
mov dword [esp + 0x3c], eax
call fcn.0042f4d9
mov edx, dword [esp + 0x7c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x54]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x64]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x58]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x58]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x70]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x88]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x94]
push eax
mov byte [esp + 0x104], 7
call fcn.0042f4d9
add esp, 0x30
mov edx, dword [reloc.OLEAUT32.dll_SysReAllocString]
lea ecx, [esp + 0x70]
push ecx
push 0x20019
push ebx
push ebp
push edx
call fcn.00409f10
add esp, 0x14
cmp eax, ebx
je 0x4203d7
mov eax, dword [esp + 0x24]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x30]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x70]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x48]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x44]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x420c31
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x2c]
push edx
push ebx
push eax
call fcn.00416b90
add esp, 0xc
test eax, eax
jne 0x420bdb
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
push edx
push eax
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x420bb8
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x84]
push edx
push ebx
push ebx
push str.Start
mov esi, 4
push eax
mov dword [esp + 0x48], esi
call edi
test eax, eax
jne 0x420bad
mov eax, dword [esp + 0x80]
cmp eax, 2
je 0x420462
cmp eax, esi
je 0x420462
cmp eax, 3
jne 0x420bad
mov dword [esp + 0x30], esi
cmp eax, esi
je 0x420471
mov byte [esp + 0x17], 1
jmp 0x420498
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x84]
push edx
push ebx
push ebx
push str.AutorunsDisabled
push eax
call edi
test eax, eax
jne 0x420c57
mov byte [esp + 0x17], bl
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0xa0]
push edx
push ebx
push ebx
push str.Type
push eax
call edi
test eax, eax
jne 0x420bad
cmp dword [esp + 0x9c], 2
jbe 0x420bad
mov esi, dword [esp + 0x1c]
push 0x46043c
call fcn.0042f484
push esi
mov dword [esp + 0x24], eax
call fcn.0042f4d9
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push str.ServiceDll
push edx
call fcn.00416ab0
add esp, 0x1c
test eax, eax
jne 0x4205b5
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x2c], eax
call fcn.0042f4d9
add esp, 8
lea ecx, [esp + 0xb0]
call fcn.00402320
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb0]
push ecx
push edx
mov byte [esp + 0xdc], 0x14
call fcn.0040ef90
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x9c]
push ecx
call fcn.0040b350
mov eax, dword [eax]
mov esi, dword [esp + 0x30]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x38], eax
call fcn.0042f4d9
mov edx, dword [esp + 0xa8]
push edx
call fcn.0042f4d9
add esp, 0x20
lea ecx, [esp + 0xb4]
mov byte [esp + 0xd4], 7
call fcn.00402070
mov eax, dword [esp + 0xb4]
push eax
call fcn.0042f2c2
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.0042f4d9
add esp, 8
jmp 0x42067a
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x7c]
push edx
push 1
push ebx
push str.Parameters
push eax
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x42067a
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push str.ServiceDll
push edx
call fcn.00416ab0
add esp, 0x14
test eax, eax
jne 0x42066f
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.00401690
lea ecx, [esp + 0xb0]
call fcn.00402320
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb0]
push ecx
push edx
mov byte [esp + 0xdc], 0x15
call fcn.0040ef90
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xbc]
push ecx
call fcn.0040b350
add esp, 0x14
push eax
lea ecx, [esp + 0x20]
call fcn.00401690
mov edx, dword [esp + 0xac]
push edx
call fcn.0042f4d9
add esp, 4
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd4], 7
call fcn.00402290
mov eax, dword [esp + 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
cmp byte [eax], bl
jne 0x420812
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push str.ImagePath
push edx
call fcn.00416ab0
add esp, 0x14
test eax, eax
jne 0x420806
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xa8]
push ecx
push ebx
push ebx
push str.WOW64
push edx
mov dword [esp + 0x48], 4
call edi
test eax, eax
je 0x420752
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.00401690
lea ecx, [esp + 0xb0]
call fcn.00402320
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb0]
push ecx
push edx
mov byte [esp + 0xdc], 0x16
call fcn.00411310
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.0040b350
add esp, 0x14
push eax
lea ecx, [esp + 0x20]
call fcn.00401690
mov edx, dword [esp + 0x94]
push edx
call fcn.0042f4d9
add esp, 4
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd4], 7
call fcn.00402290
jmp 0x420806
cmp dword [esp + 0xa4], ebx
je 0x420806
mov eax, dword [0x474eac]
cmp eax, ebx
je 0x42077d
push 1
call eax
mov eax, dword [0x4746a8]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401690
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0xac], esp
push edx
call fcn.00401670
lea eax, [esp + 0x88]
push eax
call fcn.00406d90
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.00410680
add esp, 0x14
push eax
lea ecx, [esp + 0x20]
call fcn.00401690
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0042f4d9
mov eax, dword [0x474eac]
add esp, 4
cmp eax, ebx
je 0x420806
push ebx
call eax
mov edx, dword [0x4746a8]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0x1c]
cmp byte [eax], bl
je 0x420bad
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [esp + 0xe8]
push eax
call fcn.0040b950
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x38]
push ecx
push ebx
push ebx
push str.Description
push edx
mov edi, eax
call fcn.00416ab0
mov ecx, dword [esp + 0x4c]
add esp, 0x24
cmp byte [ecx], 0x40
jne 0x420876
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xb0], esp
mov esi, esp
push ecx
call fcn.0042f484
add esp, 4
mov dword [esi], eax
call fcn.0041ff00
add esp, 8
jmp 0x4208e2
mov eax, ecx
lea esi, [eax + 1]
jmp 0x420880
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x420880
sub eax, esi
cmp eax, 3
jbe 0x4208e2
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x420893
sub eax, esi
cmp byte [eax + ecx - 1], 0xa
jne 0x4208e2
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4208a8
sub eax, esi
mov byte [eax + ecx - 1], bl
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4208c0
sub eax, esi
cmp byte [eax + ecx - 1], 0xd
jne 0x4208e2
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4208d5
sub eax, esi
mov byte [eax + ecx - 1], bl
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
push edx
call fcn.0042f484
push esi
mov dword [esp + 0x3c], eax
call fcn.0042f4d9
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0xec]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.0040bd70
add esp, 0x1c
test al, al
je 0x420bad
cmp dword [esp + 0x38], 0xffffffff
jne 0x420ae8
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x50], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x5c], eax
push 0x46043c
lea ecx, [esp + 0x58]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x48]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x44]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x40]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x54]
call fcn.00401160
push ebp
lea ecx, [esp + 0x5c]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x64]
call fcn.00401160
push ebp
lea ecx, [esp + 0x6c]
call fcn.00401160
mov ecx, dword [esp + 0xe0]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
lea edx, [esp + 0xa4]
push edx
mov byte [esp + 0xe4], 0x20
call fcn.00407af0
mov esi, eax
mov edx, dword [esp + 0xf0]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edx
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0xf4], 0x21
call fcn.00407af0
movzx edx, byte [esp + 0x37]
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [esp + 0x78]
push ecx
push edx
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x80]
mov byte [esp + 0x114], 0x22
push edx
lea ecx, [esp + 0x80]
mov edx, dword [esp + 0x120]
push ecx
push esi
push eax
push ebx
push 0xffffffffffffffff
push ebx
push edx
call fcn.0040c0f0
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xf0]
add esp, 0x60
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x70]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x6c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x64]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x54]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x64]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x78]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x78]
push edx
call fcn.0042f4d9
add esp, 0x30
push 0x46043c
call fcn.0042f484
add esp, 4
mov dword [esp + 0x6c], eax
push ebp
lea ecx, [esp + 0x7c]
call fcn.00401160
mov edx, dword [esp + 0xe0]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edx
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0xe4], 0x24
call fcn.00407af0
movzx edx, byte [esp + 0x27]
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x114]
push eax
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x70]
push edx
push 8
push eax
push edi
push ecx
mov byte [esp + 0x124], 0x25
call fcn.0040c0f0
mov edx, dword [esp + 0xf0]
add esp, 0x50
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x7c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x74]
push ecx
mov byte [esp + 0xe0], 7
call fcn.0042f4d9
add esp, 0xc
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00416b90
add esp, 0xc
test eax, eax
je 0x4203f2
mov ecx, dword [esp + 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x78]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x70]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x44]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f4d9
mov eax, dword [esp + 0x58]
add esp, 0x20
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
mov edx, dword [esp + 0x20]
push edx
jmp 0x420bb2