Function at 0x413290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a93a9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 2
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x2a8], edi
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x250], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x268], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x264], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x24c], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov byte [ebp - 4], 4
jne 0x413515
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x248], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x240], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x238], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x244], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x23c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x21c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x220], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x224], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x228], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x10
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push 0
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x234]
call fcn.00403eb0
push dword [ebp - 0x258]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x25c]
call fcn.0048faf7
push dword [ebp - 0x22c]
call fcn.0048faf7
push dword [ebp - 0x228]
call fcn.0048faf7
push dword [ebp - 0x224]
call fcn.0048faf7
push dword [ebp - 0x220]
call fcn.0048faf7
push dword [ebp - 0x21c]
call fcn.0048faf7
push dword [ebp - 0x23c]
call fcn.0048faf7
push dword [ebp - 0x244]
call fcn.0048faf7
push dword [ebp - 0x238]
call fcn.0048faf7
push dword [ebp - 0x240]
call fcn.0048faf7
push dword [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.0048faf7
add esp, 0x2c
lea eax, [ebp - 0x254]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push edi
push ebx
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x41393e
push 2
mov dword [ebp - 0x258], eax
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x22c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x21c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x220], eax
mov word [eax], cx
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0x14
push eax
push ecx
push dword [ebp - 0x254]
call fcn.00410500
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x1c
test eax, eax
jne 0x413907
jmp 0x4135c0
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x228]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x254]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x413861
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0x4b4c64
push dword [ebp - 0x228]
call fcn.00410620
add esp, 0x14
test eax, eax
je 0x413640
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0x4b4c78
push dword [ebp - 0x228]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x413859
mov eax, dword [ebp - 0x230]
cmp word [eax], 0x40
jne 0x41372a
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp - 0x290], ebx
push 0x2c
push ebx
mov byte [ebp - 4], 0x15
xor edi, edi
call fcn.0049110f
add esp, 0xc
test eax, eax
je 0x413693
push 0x2c
push ebx
call fcn.0049110f
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00492994
cdq
add esp, 0xc
mov edi, eax
xor edi, edx
sub edi, edx
lea ecx, [ebx + 2]
push ecx
lea eax, [ebp - 0x29c]
push eax
call fcn.00410090
push dword [eax]
call fcn.0048faa4
push ebx
mov esi, eax
call fcn.0048faf7
push dword [ebp - 0x29c]
call fcn.0048faf7
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x413711
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x41370a
mov edi, dword [ebp - 0x230]
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
push edi
mov dword [ebp - 0x230], eax
call fcn.0048faf7
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
mov byte [ebp - 4], 0x14
call fcn.0048faf7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
mov edi, dword [ebp - 0x2a8]
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x4b4c90
push dword [ebp - 0x228]
call fcn.00410620
add esp, 0x14
test eax, eax
je 0x4139f2
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x4b4c38
push dword [ebp - 0x228]
call fcn.00410620
add esp, 0x14
test eax, eax
je 0x413997
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
push 0x4b4c9c
push dword [ebp - 0x228]
call fcn.00410620
add esp, 0x14
push dword [ebp - 0x228]
test eax, eax
jne 0x41385f
call ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x294]
push 0x4afac0
push eax
call fcn.00417070
push 0x4b0594
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.00418660
mov esi, dword [ebp - 0x21c]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x21c], eax
call fcn.0048faf7
push dword [ebp - 0x2b8]
call fcn.0048faf7
push dword [ebp - 0x294]
call fcn.0048faf7
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x228]
add esp, 0x28
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocStringLen
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x413861
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x228]
call fcn.00410620
add esp, 0x14
test eax, eax
je 0x4139f2
push dword [ebp - 0x228]
call ebx
push dword [ebp - 0x220]
call fcn.0048faf7
push dword [ebp - 0x21c]
call fcn.0048faf7
push dword [ebp - 0x22c]
call fcn.0048faf7
push dword [ebp - 0x224]
call fcn.0048faf7
mov esi, dword [ebp - 0x258]
add esp, 0x10
inc esi
mov dword [ebp - 0x258], esi
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x22c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x21c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x220], eax
mov word [eax], cx
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0x14
push eax
push esi
push dword [ebp - 0x254]
call fcn.00410500
add esp, 0x1c
test eax, eax
je 0x4135c0
push dword [ebp - 0x220]
call fcn.0048faf7
push dword [ebp - 0x21c]
call fcn.0048faf7
push dword [ebp - 0x22c]
call fcn.0048faf7
push dword [ebp - 0x224]
call fcn.0048faf7
add esp, 0x10
push dword [ebp - 0x254]
call ebx
push dword [ebp - 0x24c]
call fcn.0048faf7
push dword [ebp - 0x264]
call fcn.0048faf7
push dword [ebp - 0x268]
call fcn.0048faf7
push dword [ebp - 0x250]
call fcn.0048faf7
push dword [ebp - 0x230]
call fcn.0048faf7
mov eax, dword [ebp + 0x14]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push 6
push 0x4b4cbc
push dword [ebp - 0x21c]
call fcn.004917b4
add esp, 0xc
test eax, eax
jne 0x4139bb
mov esi, dword [ebp - 0x21c]
lea eax, [esi + 0xc]
jmp 0x4139dd
push 7
push 0x4b4ccc
push dword [ebp - 0x21c]
call fcn.004917b4
add esp, 0xc
test eax, eax
jne 0x4139f2
mov esi, dword [ebp - 0x21c]
lea eax, [esi + 0xe]
push eax
call fcn.0048faa4
push esi
mov dword [ebp - 0x21c], eax
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x228]
call ebx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x2cc], eax
mov word [eax], cx
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2c0], ecx
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 0x16
push eax
push dword [ebp - 0x21c]
call fcn.00406bd0
push dword [ebp - 0x21c]
mov esi, dword [ebp - 0x24c]
call fcn.0048faa4
push esi
mov dword [ebp - 0x24c], eax
call fcn.0048faf7
mov ebx, dword [ebp - 0x234]
lea eax, [ebp - 0x2cc]
push 0
push eax
lea eax, [ebp - 0x2bc]
push ebx
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x220]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x220], eax
call fcn.0048faf7
push dword [ebp - 0x2bc]
call fcn.0048faf7
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x220]
push ebx
call fcn.00404ce0
add esp, 0x40
mov dword [ebp - 0x290], eax
test edi, edi
mov ecx, 0x4af9b8
cmovne ecx, edi
push ecx
call fcn.0048faa4
mov dword [ebp - 0x238], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x240], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x248], eax
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2a4]
push ebx
push eax
call fcn.00407620
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0x1b
push ecx
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push esi
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call fcn.00403c00
add esp, 0x4c
mov bl, al
push dword [ebp - 0x2a4]
call fcn.0048faf7
push dword [ebp - 0x2b4]
call fcn.0048faf7
push dword [ebp - 0x248]
call fcn.0048faf7
push dword [ebp - 0x240]
call fcn.0048faf7
push dword [ebp - 0x238]
call fcn.0048faf7
add esp, 0x14
test bl, bl
je 0x413e5c
cmp dword [ebp + 0x14], 0xffffffff
jne 0x413d8d
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x27c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x284], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x288], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x26c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x280], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x278], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x274], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x23c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x244], eax
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp - 0x298]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x2ac]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 0x27
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x27c]
push 0
push ecx
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x234]
call fcn.00403eb0
push dword [ebp - 0x2ac]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x298]
call fcn.0048faf7
push dword [ebp - 0x244]
call fcn.0048faf7
push dword [ebp - 0x23c]
call fcn.0048faf7
push dword [ebp - 0x274]
call fcn.0048faf7
push dword [ebp - 0x278]
call fcn.0048faf7
push dword [ebp - 0x280]
call fcn.0048faf7
push dword [ebp - 0x26c]
call fcn.0048faf7
push dword [ebp - 0x288]
call fcn.0048faf7
push dword [ebp - 0x284]
call fcn.0048faf7
push dword [ebp - 0x27c]
call fcn.0048faf7
push dword [ebp - 0x28c]
call fcn.0048faf7
add esp, 0x2c
jmp 0x413d93
mov ebx, dword [ebp - 0x260]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x25c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0x29
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x2b0]
push ebx
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x2a
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push dword [ebp - 0x2a0]
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0x290]
push dword [ebp - 0x234]
call fcn.00403eb0
add esp, 0x5c
push dword [ebp - 0x2b0]
call fcn.0048faf7
push dword [ebp - 0x270]
call fcn.0048faf7
push dword [ebp - 0x25c]
call fcn.0048faf7
add esp, 0xc
lea ecx, [ebp - 0x2cc]
call fcn.00402130
push dword [ebp - 0x220]
call fcn.0048faf7
push dword [ebp - 0x21c]
call fcn.0048faf7
push dword [ebp - 0x22c]
call fcn.0048faf7
push dword [ebp - 0x224]
call fcn.0048faf7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41388d