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

Disassembly:
push 0xffffffffffffffff
push 0x45c3cc
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x473354]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x228]
mov esi, dword [esp + 0x22c]
mov edi, dword [esp + 0x230]
push 1
call fcn.0042f396
mov dword [esp + 0x3c], eax
mov byte [eax], 0
push 1
mov dword [esp + 0x228], 0
call fcn.0042f396
mov dword [esp + 0x4c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x54], eax
mov byte [eax], 0
push 1
call fcn.0042f396
add esp, 0x10
mov dword [esp + 0x4c], eax
mov byte [eax], 0
cmp dword [0x474d7c], 0
mov byte [esp + 0x220], 3
je 0x411eff
cmp dword [esp + 0x234], 0xffffffff
jne 0x411eff
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x18], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x20], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x2c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x2c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x40], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x30], eax
mov eax, edi
test edi, edi
jne 0x411dc9
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x30], eax
push str._Default_
call fcn.0042f484
add esp, 8
mov dword [esp + 0x3c], eax
mov eax, edi
test edi, edi
jne 0x411def
mov eax, 0x46043c
push eax
call fcn.0042f484
mov ebx, eax
mov dword [esp + 0x54], ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push esi
push edx
call fcn.00407af0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x5c]
push esi
push edx
call fcn.00407af0
movzx edx, byte [esp + 0x25c]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
push 0
push 0xffffffffffffffff
push 0
push ebp
mov byte [esp + 0x284], 0xf
call fcn.0040c0f0
mov dword [esp + 0x298], eax
mov eax, dword [esp + 0xa4]
add esp, 0x64
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f4d9
push ebx
call fcn.0042f4d9
mov edx, dword [esp + 0x48]
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 + 0x40]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x50]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x44]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x40]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x40]
push ecx
mov byte [esp + 0x250], 3
call fcn.0042f4d9
add esp, 0x30
mov eax, dword [0x4746a8]
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push edi
push esi
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x41231a
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x88]
push edx
push eax
push eax
mov eax, dword [esp + 0x68]
push 0x46043c
push eax
mov dword [esp + 0x74], 0x190
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41230f
cmp dword [esp + 0x5c], eax
je 0x41230f
lea ecx, [esp + 0x68]
call fcn.00402320
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0x228], 0x10
call fcn.00411310
add esp, 8
test al, al
je 0x4122ef
push 0
lea ecx, [esp + 0x70]
call fcn.00405d30
mov ebx, dword [eax]
mov dword [esp + 0x64], ebx
mov ecx, 0x4606fc
mov eax, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x411fd0
test dl, dl
je 0x411fcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x411fd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x411fb0
xor eax, eax
jmp 0x411fd5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4122ef
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040b350
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
call fcn.00401690
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
push ebp
call fcn.0040b950
add esp, 0x14
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], eax
call fcn.00401160
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push ebp
mov byte [esp + 0x234], 0x11
call fcn.0040bd70
mov ecx, dword [esp + 0x28]
push ecx
mov bl, al
mov byte [esp + 0x238], 0x10
call fcn.0042f4d9
add esp, 0x18
test bl, bl
je 0x4122ef
cmp dword [esp + 0x234], 0xffffffff
jne 0x4121ff
push 0x46043c
call fcn.0042f484
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
push 0x46043c
lea ecx, [esp + 0x40]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x30]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x34]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x2c]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x38]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x20]
call fcn.00401160
push edi
lea ecx, [esp + 0x24]
call fcn.00401160
push str._Default_
lea ecx, [esp + 0x1c]
call fcn.00401160
push edi
lea ecx, [esp + 0x18]
call fcn.00401160
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.00407af0
mov dword [esp + 0x50], eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
push esi
push ecx
call fcn.00407af0
movzx ecx, byte [esp + 0x258]
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x50]
push edx
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x268], 0x1d
push ecx
push eax
push 0
push 0xffffffffffffffff
push 0
push ebp
call fcn.0040c0f0
mov edx, dword [esp + 0xb4]
add esp, 0x60
push edx
mov dword [esp + 0x238], eax
call fcn.0042f4d9
mov eax, dword [esp + 0x54]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x30]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x4c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x44]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x50]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x64]
push eax
call fcn.0042f4d9
push ebx
call fcn.0042f4d9
add esp, 0x30
push 0x46043c
call fcn.0042f484
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
push 0x46043c
lea ecx, [esp + 0x20]
call fcn.00401160
push str._Default_
lea ecx, [esp + 0x24]
call fcn.00401160
push edi
lea ecx, [esp + 0x1c]
call fcn.00401160
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401160
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x48]
push esi
push ecx
call fcn.00407af0
movzx ecx, byte [esp + 0x248]
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x40]
push edx
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x268]
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x98]
push eax
lea eax, [esp + 0x50]
push eax
push 0xc
push ecx
push edx
push ebp
mov byte [esp + 0x270], 0x23
call fcn.0040c0f0
mov eax, dword [esp + 0x90]
add esp, 0x50
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x20]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f4d9
push ebx
call fcn.0042f4d9
add esp, 0x18
lea ecx, [esp + 0x6c]
call fcn.00402070
mov edx, dword [esp + 0x6c]
push edx
call fcn.0042f2c2
mov eax, dword [esp + 0x6c]
push eax
call fcn.0042f4d9
add esp, 8
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x4c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x44]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x244]
add esp, 0x10
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00430430
add esp, 0x210
ret