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

Disassembly:
push 0xffffffffffffffff
push 0x45c1eb
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
push 1
call fcn.0042f396
mov dword [esp + 0x1c], eax
mov byte [eax], 0
xor edi, edi
push 1
mov dword [esp + 0x9c], edi
call fcn.0042f396
mov dword [esp + 0x1c], 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 + 0x40], eax
mov byte [eax], 0
push 1
call fcn.0042f396
add esp, 0x14
mov dword [esp + 0x2c], eax
mov byte [eax], 0
mov ebp, dword [esp + 0xa0]
mov byte [esp + 0x94], 4
cmp dword [0x474d7c], edi
je 0x4116a1
cmp dword [esp + 0xb0], 0xffffffff
jne 0x4116a1
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x48], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x34], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0xa4]
mov eax, esi
cmp esi, edi
jne 0x41155c
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa8]
cmp eax, edi
jne 0x411579
mov eax, 0x46043c
push eax
call fcn.0042f484
mov edi, eax
add esp, 4
mov dword [esp + 0x50], edi
mov eax, esi
test esi, esi
jne 0x411593
mov eax, 0x46043c
push eax
call fcn.0042f484
mov esi, eax
mov dword [esp + 0x50], esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x64]
push ebp
push edx
call fcn.00407af0
mov ebx, eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x64]
push ebp
push edx
call fcn.00407af0
movzx edx, byte [esp + 0xd8]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x64]
push ecx
push ebx
mov ebx, dword [esp + 0xec]
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
mov byte [esp + 0xf8], 0x10
call fcn.0040c0f0
mov edx, dword [esp + 0xac]
add esp, 0x64
push edx
mov dword [esp + 0xb4], eax
call fcn.0042f4d9
mov eax, dword [esp + 0x5c]
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 + 0x38]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
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 + 0x60]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x70]
push edx
mov byte [esp + 0xc4], 4
call fcn.0042f4d9
add esp, 0x30
xor edi, edi
jmp 0x4116a8
mov ebx, dword [esp + 0x9c]
mov ecx, dword [0x4746a8]
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0xa8]
or eax, 0x20019
push eax
push edi
push edx
push ebp
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x411b54
push 1
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], 0
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push ecx
push edx
mov byte [esp + 0xac], 0x11
call fcn.00416ab0
add esp, 0x18
test eax, eax
jne 0x411b3c
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
jmp 0x411720
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411720
sub eax, edx
je 0x411b3c
lea ecx, [esp + 0x74]
call fcn.00402f60
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x78]
push eax
push ecx
push edx
mov byte [esp + 0xa4], 0x12
call fcn.004110b0
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x90]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
add eax, edx
mov dword [esp + 0x24], edi
je 0x411b33
mov dword [esp + 0x28], edi
cmp dword [esp + 0x24], eax
jb 0x411795
call fcn.004305db
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x80]
mov edx, dword [eax + ecx + 0x14]
sub edx, dword [eax + ecx + 0x10]
lea esi, [eax + ecx]
sar edx, 2
test edx, edx
ja 0x4117b7
call fcn.004305db
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
push eax
call fcn.0042f484
push edi
mov dword [esp + 0x1c], eax
call fcn.0042f4d9
push 0
lea eax, [esp + 0x64]
push esi
push eax
call fcn.0040b350
mov eax, dword [eax]
mov edi, dword [esp + 0x2c]
push eax
call fcn.0042f484
mov esi, eax
push edi
mov dword [esp + 0x34], esi
call fcn.0042f4d9
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042f4d9
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x44]
push eax
push esi
push ebx
call fcn.0040b950
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x50]
push ecx
push ebx
call fcn.0040bd70
add esp, 0x44
test al, al
je 0x411afc
cmp dword [esp + 0xb0], 0xffffffff
jne 0x411a10
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x54], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x54], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x54], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x44], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x4c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x54], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0xa4]
mov eax, esi
test esi, esi
jne 0x4118c1
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa8]
test eax, eax
jne 0x4118de
mov eax, 0x46043c
push eax
call fcn.0042f484
mov ebx, eax
add esp, 4
mov dword [esp + 0x5c], ebx
mov eax, esi
test esi, esi
jne 0x4118f8
mov eax, 0x46043c
push eax
call fcn.0042f484
mov esi, eax
mov dword [esp + 0x64], esi
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x74]
push ebp
push ecx
call fcn.00407af0
mov edi, eax
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x80]
push ebp
push ecx
call fcn.00407af0
movzx ecx, byte [esp + 0xd8]
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x80]
push edx
push ecx
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x84]
push edx
push edi
push eax
mov eax, dword [esp + 0xf0]
push 0
push 0xffffffffffffffff
push 0
push eax
mov byte [esp + 0xf8], 0x1e
call fcn.0040c0f0
mov ecx, dword [esp + 0xc8]
add esp, 0x64
push ecx
mov dword [esp + 0xb4], eax
call fcn.0042f4d9
mov edx, dword [esp + 0x6c]
push edx
call fcn.0042f4d9
push esi
call fcn.0042f4d9
push ebx
call fcn.0042f4d9
mov eax, dword [esp + 0x54]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x54]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x54]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x6c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x74]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0042f4d9
mov ebx, dword [esp + 0xcc]
add esp, 0x30
mov esi, dword [esp + 0xa8]
mov eax, esi
test esi, esi
jne 0x411a22
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x50], eax
test esi, esi
jne 0x411a38
mov esi, 0x46043c
push esi
call fcn.0042f484
mov edi, eax
add esp, 4
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0xa4]
test eax, eax
jne 0x411a57
mov eax, 0x46043c
push eax
call fcn.0042f484
mov esi, eax
mov dword [esp + 0x60], esi
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x7c]
push ebp
push ecx
call fcn.00407af0
movzx ecx, byte [esp + 0xc8]
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x70]
push edx
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0xe8]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0xa8]
push eax
lea eax, [esp + 0x54]
push eax
push 1
push ecx
push edx
push ebx
mov byte [esp + 0xe8], 0x22
call fcn.0040c0f0
mov eax, dword [esp + 0xc4]
add esp, 0x54
push eax
call fcn.0042f4d9
push esi
call fcn.0042f4d9
push edi
call fcn.0042f4d9
mov ecx, dword [esp + 0x5c]
push ecx
mov byte [esp + 0xa4], 0x12
call fcn.0042f4d9
add esp, 0x10
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x24]
add dword [esp + 0x28], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x24], esi
cmp esi, eax
jb 0x41178a
lea ecx, [esp + 0x74]
call fcn.00403160
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042f4d9
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x34]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x28]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x28]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0xc4]
add esp, 0x14
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret