Function at 0x402370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7674
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 2
mov dword [ebp - 0x74], ebx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x50], eax
add esp, 0x20
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 7
jne 0x402598
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x24], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x44], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x40], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x13
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push ebx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push esi
push eax
mov eax, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push ebx
push eax
call fcn.00403eb0
push dword [ebp - 0x54]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x44]
call fcn.0048faf7
push dword [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0048faf7
mov esi, dword [ebp + 0xc]
add esp, 0x2c
lea eax, [ebp - 0x48]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push edi
push esi
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x402a4e
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x48]
call fcn.00410500
add esp, 0xc
test eax, eax
jne 0x402a45
jmp 0x4025e0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x48]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x402a29
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x48]
call fcn.00410690
add esp, 0xc
test eax, eax
jne 0x402a20
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
push 0x4af9bc
push dword [ebp - 0x5c]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x402654
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x402679
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4af9dc
push dword [ebp - 0x5c]
call fcn.00410620
mov eax, dword [ebp - 0x10]
add esp, 0x14
cmp word [eax], 0
je 0x402a20
mov esi, dword [ebp - 0x1c]
cmp word [esi], 0
jne 0x402698
push 0x4af9f0
call fcn.0048faa4
push esi
mov dword [ebp - 0x1c], eax
call fcn.0048faf7
add esp, 8
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xa4], eax
mov word [eax], cx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], ecx
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0x14
push eax
push dword [ebp - 0x10]
call fcn.00406840
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x50]
call fcn.0048faa4
push esi
mov dword [ebp - 0x50], eax
call fcn.0048faf7
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xa4]
push 0
push eax
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x18]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x18], eax
call fcn.0048faf7
push dword [ebp - 0x84]
call fcn.0048faf7
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00404ce0
add esp, 0x40
mov dword [ebp - 0x88], eax
test edi, edi
mov ecx, 0x4af9b8
cmovne ecx, edi
push ecx
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x44], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x8c]
push eax
call fcn.00407620
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x19
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00403c00
add esp, 0x4c
mov bl, al
push dword [ebp - 0x8c]
call fcn.0048faf7
push dword [ebp - 0x78]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x44]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
add esp, 0x14
test bl, bl
je 0x402a0e
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40296f
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x6c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x70], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x68], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x24
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x25
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x70]
push 0
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x94]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x7c]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x68]
call fcn.0048faf7
push dword [ebp - 0x70]
call fcn.0048faf7
push dword [ebp - 0x6c]
call fcn.0048faf7
add esp, 0x2c
jmp 0x402972
mov ebx, dword [ebp + 0xc]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x54], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x28
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0x88]
push dword [ebp + 8]
call fcn.00403eb0
add esp, 0x5c
push dword [ebp - 0x90]
call fcn.0048faf7
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x54]
call fcn.0048faf7
add esp, 0xc
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
call fcn.00402130
mov ebx, dword [ebp - 0x74]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
inc ebx
push eax
push ebx
push dword [ebp - 0x48]
mov dword [ebp - 0x74], ebx
call fcn.00410500
add esp, 0xc
test eax, eax
je 0x4025e0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x64]
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
mov eax, dword [ebp + 0x14]
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret