Function at 0x41d6e0
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45dd55
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
push 1
call fcn.0042f396
mov ebp, eax
mov dword [esp + 0x60], ebp
mov byte [ebp], 0
push 1
mov dword [esp + 0xc8], 0
call fcn.0042f396
mov dword [esp + 0x44], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x60], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x60], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x60], eax
add esp, 0x14
mov byte [eax], 0
cmp dword [0x474d7c], 0
mov bl, 4
mov byte [esp + 0xc0], bl
je 0x41d954
cmp dword [esp + 0xd4], 0xffffffff
jne 0x41d954
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x24], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x2c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x34], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0xd0]
mov eax, edi
test edi, edi
jne 0x41d7ff
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x28], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x28], eax
mov eax, edi
test edi, edi
jne 0x41d825
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0xd0]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xd4], 0xe
call fcn.00407af0
mov esi, eax
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0xe4], 0xf
call fcn.00407af0
movzx ecx, byte [esp + 0xfc]
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x68]
push edx
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x64]
push edx
push esi
push eax
mov eax, dword [esp + 0x11c]
push 0
push 0xffffffffffffffff
push 0
push eax
mov byte [esp + 0x124], 0x10
call fcn.0040c0f0
mov ecx, dword [esp + 0xa4]
add esp, 0x64
push ecx
mov dword [esp + 0xd8], eax
call fcn.0042f4d9
mov edx, dword [esp + 0x48]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x34]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x34]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x5c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x64]
push eax
mov byte [esp + 0xf0], bl
call fcn.0042f4d9
add esp, 0x30
jmp 0x41d95b
mov edi, dword [esp + 0xd0]
mov edx, dword [0x4746a8]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
mov eax, dword [esp + 0xd4]
push 0
push edi
push eax
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x41e0dd
cmp byte [esp + 0xdc], al
mov eax, str.DLLDirectory
jne 0x41d9a1
mov eax, str.DLLDirectory32
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push eax
push edx
call fcn.00416ab0
add esp, 0x14
test eax, eax
jne 0x41e0d2
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00416cc0
push 1
mov dword [esp + 0x70], 0
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x2c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x34], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov ebx, eax
mov dword [esp + 0x40], ebx
mov byte [ebx], 0
push 1
call fcn.0042f396
mov esi, eax
mov dword [esp + 0x48], esi
mov byte [esi], 0
push 1
call fcn.0042f396
mov dword [esp + 0x44], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x3c], eax
mov byte [eax], 0
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x6c]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
push edx
mov byte [esp + 0xfc], 0x18
call fcn.00416c10
add esp, 0x3c
test eax, eax
jne 0x41e087
lea ecx, [ecx]
mov eax, dword [esp + 0x44]
cmp eax, 1
je 0x41da87
cmp eax, 2
je 0x41da87
cmp eax, 7
jne 0x41dfa4
mov edx, dword [esp + 0x14]
push str.DLLDirectory
push edx
call fcn.00439b20
add esp, 8
test eax, eax
je 0x41dfa4
mov eax, dword [esp + 0x14]
push str.DLLDirectory32
push eax
call fcn.00439b20
add esp, 8
test eax, eax
je 0x41dfa4
mov ecx, dword [esp + 0x14]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41dac4
sub eax, esi
jne 0x41daec
push str._Default_
mov esi, ecx
call fcn.0042f484
push esi
mov dword [esp + 0x1c], eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x1c]
add esp, 8
mov esi, dword [esp + 0x1c]
push ecx
call fcn.0042f484
push esi
mov dword [esp + 0x24], eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
push ecx
call fcn.0042f484
push esi
mov dword [esp + 0x34], eax
call fcn.0042f4d9
lea edx, [esp + 0x50]
push edx
mov eax, 0x460cb4
lea ecx, [esp + 0x9c]
call fcn.0041d6a0
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x98]
call fcn.0041d670
mov eax, dword [eax]
push eax
mov esi, ebp
call fcn.0042f484
mov ebp, eax
push esi
mov dword [esp + 0x7c], ebp
call fcn.0042f4d9
mov edx, dword [esp + 0xa0]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0xac]
push eax
call fcn.0042f4d9
add esp, 0x28
lea ecx, [esp + 0x9c]
call fcn.00402320
lea ecx, [esp + 0x9c]
push ecx
push ebp
mov byte [esp + 0xc8], 0x19
call fcn.0040ef90
push 0
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0xa8]
push eax
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 ecx, dword [esp + 0xb4]
push ecx
call fcn.0042f4d9
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0xec]
lea eax, [esp + 0x60]
push eax
push ecx
push edx
call fcn.0040b950
mov edi, eax
mov eax, dword [esp + 0x4c]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41dbf6
sub eax, ecx
jne 0x41dc54
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41dc10
sub eax, edx
je 0x41dc54
push 0x5c
push esi
call fcn.004306d0
add esp, 8
test eax, eax
je 0x41dc46
mov eax, dword [esp + 0x18]
push 0x5c
push eax
call fcn.004306d0
add esp, 8
inc eax
push eax
lea ecx, [esp + 0x20]
call fcn.00401200
jmp 0x41dc54
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401690
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0040bd70
add esp, 0x14
test al, al
je 0x41df37
cmp dword [esp + 0xd4], 0xffffffff
jne 0x41de7f
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x7c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x70], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x88], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x70], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x6c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x84], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x74], eax
mov esi, dword [esp + 0xd0]
mov eax, esi
test esi, esi
jne 0x41dd0b
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x34], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x34], eax
mov eax, esi
test esi, esi
jne 0x41dd31
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 0xd0]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x90]
push ebx
push eax
mov byte [esp + 0xd4], 0x23
call fcn.00407af0
mov esi, eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0xac]
push ebx
push eax
mov byte [esp + 0xe4], 0x24
call fcn.00407af0
movzx edx, byte [esp + 0xfc]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0xa8]
push ecx
push edx
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x110]
lea ecx, [esp + 0xb4]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push edx
mov byte [esp + 0x124], 0x25
call fcn.0040c0f0
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0xf4]
add esp, 0x64
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x40]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x40]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x88]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x84]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x80]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0xa0]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0xa4]
push edx
call fcn.0042f4d9
add esp, 0x30
jmp 0x41de86
mov ebx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x41de96
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x74], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x98]
push ebx
push edx
mov byte [esp + 0xd4], 0x26
call fcn.00407af0
movzx edx, byte [esp + 0xec]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x104]
push eax
mov eax, dword [esp + 0x114]
lea edx, [esp + 0x5c]
push edx
push 1
push eax
push edi
push ecx
mov byte [esp + 0x114], 0x27
call fcn.0040c0f0
mov edx, dword [esp + 0xe0]
add esp, 0x54
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x74]
push eax
call fcn.0042f4d9
mov ebx, dword [esp + 0x30]
add esp, 8
lea ecx, [esp + 0xa0]
call fcn.00402070
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0042f2c2
mov edx, dword [esp + 0xa0]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x20]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042f4d9
push ebx
call fcn.0042f4d9
mov eax, dword [esp + 0x38]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x34]
push edx
call fcn.0042f4d9
add esp, 0x24
jmp 0x41dfe5
mov eax, dword [esp + 0x18]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f4d9
push esi
call fcn.0042f4d9
push ebx
call fcn.0042f4d9
mov edx, dword [esp + 0x30]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x30]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f4d9
add esp, 0x1c
mov esi, dword [esp + 0x64]
inc esi
push 1
mov dword [esp + 0x68], esi
call fcn.0042f396
mov dword [esp + 0x18], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x24], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x2c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x38], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x40], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x3c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x34], eax
mov byte [eax], 0
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x64]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push esi
push edx
mov byte [esp + 0xf4], 0x18
call fcn.00416c10
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
add esp, 0x34
test eax, eax
je 0x41da70
mov eax, dword [esp + 0x18]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f4d9
push esi
call fcn.0042f4d9
push ebx
call fcn.0042f4d9
mov edx, dword [esp + 0x30]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x30]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x5c]
push edx
call fcn.0042f4d9
add esp, 0x20
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x54]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x5c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042f4d9
push ebp
call fcn.0042f4d9
mov eax, dword [esp + 0xe8]
add esp, 0x14
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret