Function at 0x417b70
Capabilities:
Query or enumerate registry value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa099
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
mov dword [ebp - 0x70], 0
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x74], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x58], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x50], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x48], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x40], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x4c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x58]
mov edi, dword [ebp + 8]
push ecx
push 1
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.00403eb0
add esp, 0x6c
mov esi, eax
mov dword [ebp - 0x64], esi
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x6c]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x44]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x48]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.0048faf7
lea eax, [ebp - 0x68]
push eax
push 0x20019
push 0
push ebx
push dword [section..data]
call fcn.00406320
add esp, 0x44
test eax, eax
jne 0x418604
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x68]
call fcn.00410500
add esp, 0xc
test eax, eax
jne 0x4185fb
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x68]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x4185d9
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x4b4b30
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x4185d0
mov eax, dword [ebp - 0x78]
cmp eax, 2
je 0x417e22
cmp eax, 4
je 0x417e22
cmp eax, 3
jne 0x4185d0
mov dword [ebp - 0x2c], 4
cmp eax, 4
je 0x417e34
mov byte [ebp - 0xd], 1
jmp 0x417e55
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x4b4ae4
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x4185d0
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xbc]
push eax
push 0
push 0
push 0x4b4b24
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x4185d0
cmp dword [ebp - 0xbc], 2
jbe 0x4185d0
mov esi, dword [ebp - 0x18]
push 0x4af9b8
call fcn.0048faa4
push esi
mov dword [ebp - 0x18], eax
call fcn.0048faf7
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4b4fd0
push dword [ebp - 0x1c]
call fcn.00410620
add esp, 0x1c
test eax, eax
jne 0x417f4f
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
call fcn.0048faa4
push esi
mov dword [ebp - 0x20], eax
call fcn.0048faf7
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xd4], eax
mov word [eax], cx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], ecx
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 0x14
push eax
push dword [ebp - 0x14]
call fcn.00406bd0
push 0
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x18]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x18], eax
call fcn.0048faf7
push dword [ebp - 0xa8]
call fcn.0048faf7
add esp, 0x30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd4]
call fcn.00402130
jmp 0x418008
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push 0x4b4fe8
push dword [ebp - 0x1c]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x418008
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4b4fd0
push dword [ebp - 0x7c]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x417fff
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
call fcn.0048faa4
push esi
mov dword [ebp - 0x20], eax
call fcn.0048faf7
add esp, 8
lea ecx, [ebp - 0xe4]
call fcn.004020f0
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0x15
push eax
push dword [ebp - 0x14]
call fcn.00406bd0
push 0
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.00404cf0
add esp, 0x18
lea ecx, [ebp - 0x18]
push eax
call fcn.00402190
push dword [ebp - 0xb4]
call fcn.0048faf7
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xe4]
call fcn.00402130
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
cmp word [eax], 0
jne 0x41819b
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4b0f98
push dword [ebp - 0x1c]
call fcn.00410620
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0x14
test eax, eax
jne 0x41818e
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0xc0]
push eax
push 0
push 0
push 0x4b5000
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x4180d8
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
call fcn.0048faa4
push esi
mov dword [ebp - 0x20], eax
call fcn.0048faf7
add esp, 8
lea ecx, [ebp - 0xf4]
call fcn.004020f0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0x16
push eax
push dword [ebp - 0x14]
call fcn.00406840
push 0
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00404cf0
add esp, 0x18
lea ecx, [ebp - 0x18]
push eax
call fcn.00402190
push dword [ebp - 0x9c]
call fcn.0048faf7
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xf4]
call fcn.00402130
jmp 0x418188
cmp dword [ebp - 0xc0], 0
je 0x41818e
mov eax, dword [0x4de02c]
test eax, eax
je 0x418103
push 1
call eax
push 0x200
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
call fcn.0048faa4
push esi
mov dword [ebp - 0x20], eax
call fcn.0048faf7
add esp, 4
mov esi, esp
push dword [ebp - 0x14]
call fcn.0048faa4
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004059f0
push dword [ebp - 0xa4]
call fcn.0048faf7
push dword [ebp - 0x14]
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.00404d30
add esp, 0x18
lea ecx, [ebp - 0x18]
push eax
call fcn.00402190
push dword [ebp - 0x90]
call fcn.0048faf7
mov eax, dword [0x4de02c]
add esp, 4
test eax, eax
je 0x418188
push 0
call eax
push 0x100
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp word [eax], 0
je 0x4185d0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push eax
push edi
call fcn.00404ce0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x4b4b84
push dword [ebp - 0x1c]
call fcn.00410620
mov eax, dword [ebp - 0x28]
add esp, 0x24
mov edx, eax
lea esi, [edx + 2]
lea ecx, [ecx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4181d0
sub edx, esi
sar edx, 1
je 0x418208
cmp word [eax], 0x40
jne 0x418208
lea eax, [ebp - 0x28]
push eax
push ecx
mov esi, esp
push dword [ebp - 0x24]
call fcn.0048faa4
add esp, 4
mov dword [esi], eax
call fcn.004179b0
add esp, 8
jmp 0x4182a6
mov edx, eax
lea esi, [edx + 2]
lea ecx, [ecx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x418210
sub edx, esi
sar edx, 1
cmp edx, 3
jbe 0x4182a6
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x418230
sub ecx, esi
sar ecx, 1
cmp word [eax + ecx*2 - 2], 0xa
jne 0x4182a6
mov edx, eax
lea esi, [edx + 2]
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x418250
sub edx, esi
sar edx, 1
xor ecx, ecx
mov word [eax + edx*2 - 2], cx
mov eax, dword [ebp - 0x28]
mov edx, eax
lea esi, [edx + 2]
mov edi, edi
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x418270
sub edx, esi
sar edx, 1
cmp word [eax + edx*2 - 2], 0xd
jne 0x4182a6
mov edx, eax
lea esi, [edx + 2]
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x418290
sub edx, esi
sar edx, 1
xor ecx, ecx
mov word [eax + edx*2 - 2], cx
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x54]
call fcn.0048faa4
push esi
mov dword [ebp - 0x54], eax
call fcn.0048faf7
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x48], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x50], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xac]
push ebx
push eax
call fcn.00407620
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x1b
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.00403c00
add esp, 0x54
mov bl, al
push dword [ebp - 0xac]
call fcn.0048faf7
push dword [ebp - 0xc4]
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.0048faf7
add esp, 0x14
test bl, bl
je 0x4185c7
cmp dword [ebp - 0x64], 0xffffffff
jne 0x418522
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x88], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x8c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x84], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x98]
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x27
push ecx
movzx ecx, byte [ebp - 0xd]
push ecx
lea ecx, [ebp - 0x8c]
push 0
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.00403eb0
push dword [ebp - 0x94]
mov dword [ebp - 0x64], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x98]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x44]
call fcn.0048faf7
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x84]
call fcn.0048faf7
push dword [ebp - 0x8c]
call fcn.0048faf7
push dword [ebp - 0x88]
call fcn.0048faf7
add esp, 0x2c
jmp 0x418525
mov ebx, dword [ebp + 0x10]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x60], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x29
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x2a
push ecx
movzx ecx, byte [ebp - 0xd]
push ecx
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x54]
push eax
push 8
push dword [ebp - 0x64]
push dword [ebp - 0x80]
push edi
call fcn.00403eb0
add esp, 0x5c
push dword [ebp - 0xb0]
call fcn.0048faf7
push dword [ebp - 0x6c]
call fcn.0048faf7
push dword [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.0048faf7
add esp, 0xc
jmp 0x4185ca
mov ebx, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x24]
inc eax
push ecx
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
call fcn.00410500
add esp, 0xc
test eax, eax
je 0x417dc6
mov esi, dword [ebp - 0x64]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x5c]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
add esp, 0x20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret