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

Disassembly:
push 0xffffffffffffffff
push 0x45fc29
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
mov eax, dword [0x473354]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0x530]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x540]
xor eax, eax
push 1
mov dword [esp + 0x53c], eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x6c], eax
call fcn.0042f396
mov dword [esp + 0x1c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov edi, eax
mov dword [esp + 0x88], edi
mov byte [edi], 0
push 1
call fcn.0042f396
mov esi, eax
mov dword [esp + 0x68], esi
mov byte [esi], 0
push 1
call fcn.0042f396
mov dword [esp + 0x48], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x5c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x5c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x88], eax
mov byte [eax], 0
push 1
call fcn.0042f396
add esp, 0x20
mov dword [esp + 0x64], eax
mov byte [eax], 0
cmp dword [0x474d7c], 0
mov bl, 8
mov byte [esp + 0x538], bl
je 0x42d5ab
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x40], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x38], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x38], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x44], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x30], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x568]
push ecx
lea edx, [esp + 0x68]
push reloc.OLEAUT32.dll_SysReAllocString
push edx
mov byte [esp + 0x568], 0x10
call fcn.00407af0
mov esi, eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x578]
push ecx
lea edx, [esp + 0x84]
push reloc.OLEAUT32.dll_SysReAllocString
push edx
mov byte [esp + 0x578], 0x11
call fcn.00407af0
add esp, 0x40
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x48]
push ecx
push 1
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x48]
push edx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebp
mov byte [esp + 0x578], 0x12
call fcn.0040c0f0
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x8c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x84]
add esp, 0x44
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x40]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x50]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x5c]
push eax
mov byte [esp + 0x55c], bl
call fcn.0042f4d9
mov esi, dword [esp + 0x80]
add esp, 0x24
mov edx, dword [esp + 0x544]
mov eax, dword [reloc.OLEAUT32.dll_SysReAllocString]
lea ecx, [esp + 0x50]
push ecx
push 0x20019
push 0
push edx
push eax
call fcn.00409f10
add esp, 0x14
test eax, eax
je 0x42d62e
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x70]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x48]
push edx
call fcn.0042f4d9
push esi
call fcn.0042f4d9
push edi
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x564]
push ecx
call fcn.0042f4d9
add esp, 0x24
jmp 0x42dbaf
push 1
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], 0
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov byte [esp + 0x548], 0x13
call fcn.00416b90
add esp, 0x10
test eax, eax
jne 0x42db42
mov edx, dword [0x4746a8]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
mov eax, dword [esp + 0x58]
push 0
push esi
push eax
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x42db1a
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xb4]
push edx
push eax
push eax
mov eax, dword [esp + 0x68]
push str.PackedCatalogItem
push eax
mov dword [esp + 0x88], 0x378
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42db0f
lea ecx, [esp + 0xb0]
push ecx
call fcn.0042f484
add esp, 4
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x538], 0x14
call fcn.00402320
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x94]
push edx
push eax
mov byte [esp + 0x540], 0x15
call fcn.00411310
push 0
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.0040b350
mov eax, dword [eax]
mov esi, dword [esp + 0x2c]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x34], eax
call fcn.0042f4d9
mov eax, dword [esp + 0x94]
push eax
call fcn.0042f4d9
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x5c]
push edx
push eax
push ebp
call fcn.0040b950
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0xa8], eax
call fcn.0042f484
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x48]
push edx
push 0
push 0
push str.ProtocolName
push eax
mov byte [esp + 0x580], 0x16
call fcn.00416ab0
add esp, 0x48
test eax, eax
jne 0x42d883
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x40
jne 0x42d883
push eax
call fcn.0042f484
mov esi, eax
mov dword [esp + 0x94], esi
push 0x2c
push esi
mov byte [esp + 0x544], 0x17
xor edi, edi
call fcn.004308e5
add esp, 0xc
test eax, eax
je 0x42d7eb
push 0x2c
push esi
call fcn.004308e5
mov byte [eax], 0
inc eax
push eax
call fcn.004332fa
cdq
mov edi, eax
xor edi, edx
add esp, 0xc
sub edi, edx
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.00416cc0
mov eax, dword [eax]
push eax
call fcn.0042f484
push esi
mov ebx, eax
call fcn.0042f4d9
mov eax, dword [esp + 0x94]
push eax
call fcn.0042f4d9
add esp, 0x14
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x42d86b
push 0x104
lea ecx, [esp + 0x42c]
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x42d864
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x428]
push edx
call fcn.0042f484
push edi
mov dword [esp + 0x1c], eax
call fcn.0042f4d9
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
mov byte [esp + 0x53c], 0x16
call fcn.0042f4d9
mov edi, dword [esp + 0x84]
add esp, 4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.0040bd70
add esp, 0x14
test al, al
je 0x42dac7
cmp dword [esp + 0x54], 0xffffffff
jne 0x42da29
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x44], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x68], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x30], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x40], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x44], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x50], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x568]
push edx
lea eax, [esp + 0xb0]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov byte [esp + 0x568], 0x1f
call fcn.00407af0
mov esi, eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x578]
push edx
lea eax, [esp + 0xc4]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov byte [esp + 0x578], 0x20
call fcn.00407af0
add esp, 0x40
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
push 1
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebp
mov byte [esp + 0x578], 0x21
call fcn.0040c0f0
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xcc]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0xcc]
add esp, 0x44
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x40]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x38]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x44]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x7c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x60]
push eax
call fcn.0042f4d9
add esp, 0x24
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54c]
push edx
lea eax, [esp + 0x88]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov byte [esp + 0x54c], 0x22
call fcn.00407af0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x6c]
push ecx
push 1
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0xb0]
push eax
lea eax, [esp + 0x54]
push eax
push 0xb
push ecx
push edx
push ebp
mov byte [esp + 0x58c], 0x23
call fcn.0040c0f0
mov eax, dword [esp + 0xd0]
add esp, 0x54
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042f4d9
add esp, 8
mov edx, dword [esp + 0x14]
push edx
call fcn.0042f4d9
add esp, 4
lea ecx, [esp + 0x98]
call fcn.00402070
mov eax, dword [esp + 0x98]
push eax
call fcn.0042f2c2
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x28]
push edx
mov byte [esp + 0x544], 0x13
call fcn.0042f4d9
add esp, 0xc
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x1c]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x74], eax
call fcn.00416b90
add esp, 0xc
test eax, eax
je 0x42d660
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x68]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x74]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x58]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042f4d9
push esi
call fcn.0042f4d9
push edi
call fcn.0042f4d9
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x568]
push edx
call fcn.0042f4d9
add esp, 0x28
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.00430430
add esp, 0x528
ret