Function at 0x418760
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa233
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x54], 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 - 0x68], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 4
jne 0x418955
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 - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x50], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x10], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x18], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x14], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push 0
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x60]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x58]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0048faf7
add esp, 0x2c
lea eax, [ebp - 0x5c]
push eax
push dword [0x4de020]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
or eax, 0x20019
push eax
push 0
push edi
push ebx
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x419249
push 2
mov dword [ebp - 0x60], eax
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], 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 - 0x4c], eax
mov word [eax], cx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x15
push eax
push ecx
push dword [ebp - 0x5c]
call fcn.00410500
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x20
test eax, eax
jne 0x4191d9
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xb0]
push 0x4afac0
push eax
call fcn.00417070
mov esi, dword [ebp - 0x10]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push dword [ebp - 0xb0]
call fcn.0048faf7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
add esp, 0x18
push eax
push dword [0x4de020]
call edi
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocStringLen
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x418a8d
push dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
call fcn.0048faa4
push esi
mov dword [ebp - 0x14], eax
call fcn.0048faf7
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x1c]
call fcn.00410620
add esp, 0x1c
jmp 0x418aef
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [0x4de020]
call edi
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x5c]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x419137
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x1c]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x419132
push dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
call fcn.0048faa4
push esi
mov dword [ebp - 0x20], eax
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x1c]
call ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc4]
push 0x4afac0
push eax
call fcn.00417070
push 0x4b0594
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00418660
mov esi, dword [ebp - 0x10]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push dword [ebp - 0xc0]
call fcn.0048faf7
push dword [ebp - 0xc4]
call fcn.0048faf7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
add esp, 0x28
push eax
push dword [0x4de020]
call edi
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocStringLen
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x419137
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4b500c
push dword [ebp - 0x1c]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x418c16
push 0x4b5020
push dword [ebp - 0x10]
call fcn.004929b1
add esp, 8
test eax, eax
jne 0x418bd9
mov eax, dword [ebp - 0x10]
mov ecx, 0x4af9b8
add eax, 0x12
cmovne ecx, eax
push ecx
call fcn.0048faa4
mov edi, dword [ebp - 0x10]
mov esi, eax
push esi
call fcn.0048faa4
push edi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push esi
call fcn.0048faf7
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x10]
call fcn.00406bd0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push 0
push eax
lea eax, [ebp - 0x94]
push edi
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 - 0x94]
jmp 0x418c71
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x1c]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x419132
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x10]
call fcn.00406bd0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push 0
push eax
lea eax, [ebp - 0xa0]
push edi
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 - 0xa0]
call fcn.0048faf7
add esp, 0x24
push dword [ebp - 0x1c]
call ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x18]
push edi
call fcn.00404ce0
push 0x4afac0
mov dword [ebp - 0xb4], eax
call fcn.0048faa4
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0041ca30
mov edi, dword [ebp - 0x10]
push dword [eax]
call fcn.0048faa4
push edi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push dword [ebp - 0xa8]
call fcn.0048faf7
push esi
call fcn.0048faf7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push 0x4b05b4
push eax
call fcn.00417070
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
mov byte [ebp - 4], 0x16
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x24], eax
push esi
call fcn.0048faf7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
add esp, 4
push eax
push dword [0x4de020]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocStringLen
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x418d8b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x1c]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x418d86
mov eax, dword [ebp - 0x10]
mov edx, eax
lea esi, [edx + 2]
mov edi, edi
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x418d60
sub edx, esi
sar edx, 1
je 0x418d86
mov esi, dword [ebp - 0x24]
push eax
call fcn.0048faa4
push esi
mov dword [ebp - 0x24], eax
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x1c]
call ebx
mov edi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test edi, edi
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.00407620
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0x1b
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00403c00
add esp, 0x4c
mov bl, al
push dword [ebp - 0xb8]
call fcn.0048faf7
push dword [ebp - 0x98]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
add esp, 0x14
test bl, bl
je 0x4190f1
cmp dword [ebp + 0x14], 0xffffffff
jne 0x418ff3
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x7c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x84], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x6c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x74], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x90], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x80], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x78], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x88], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x50], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x27
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x84]
push 0
push ecx
lea ecx, [ebp - 0x6c]
push ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.00403eb0
push dword [ebp - 0x9c]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0xa4]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x88]
call fcn.0048faf7
push dword [ebp - 0x78]
call fcn.0048faf7
push dword [ebp - 0x80]
call fcn.0048faf7
push dword [ebp - 0x90]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
push dword [ebp - 0x6c]
call fcn.0048faf7
push dword [ebp - 0x84]
call fcn.0048faf7
push dword [ebp - 0x7c]
call fcn.0048faf7
add esp, 0x2c
jmp 0x418ff6
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x419000
sub ecx, esi
mov esi, dword [ebp - 0x24]
sar ecx, 1
jne 0x419037
cmp word [esi], 0x7b
jne 0x419049
mov eax, dword [ebp - 0x64]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x2c], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x419025
sub edx, dword [ebp - 0x2c]
sar edx, 1
je 0x419049
push eax
call fcn.0048faa4
push esi
mov dword [ebp - 0x24], eax
call fcn.0048faf7
add esp, 8
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x70], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x29
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xbc]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x2a
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push dword [ebp - 0xac]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0xb4]
push ebx
call fcn.00403eb0
add esp, 0x5c
push dword [ebp - 0xbc]
call fcn.0048faf7
push dword [ebp - 0x8c]
call fcn.0048faf7
push dword [ebp - 0x70]
call fcn.0048faf7
add esp, 0xc
push dword [ebp - 0x58]
call fcn.0048faf7
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.00402130
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x41915f
push dword [ebp - 0x1c]
call ebx
lea ecx, [ebp - 0x4c]
call fcn.00402130
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
mov esi, dword [ebp - 0x60]
add esp, 0x10
inc esi
mov dword [ebp - 0x60], esi
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], 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 - 0x4c], eax
mov word [eax], cx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x15
push eax
push esi
push dword [ebp - 0x5c]
call fcn.00410500
add esp, 0x20
test eax, eax
je 0x418a00
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x419219
mov edi, dword [ebp - 0x44]
cmp esi, edi
je 0x4191fb
push dword [esi]
call fcn.0048faf7
add esi, 4
add esp, 4
cmp esi, edi
jne 0x4191e7
mov esi, dword [ebp - 0x48]
push esi
call fcn.0048f453
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
add esp, 0x14
push dword [ebp - 0x5c]
call ebx
push dword [ebp - 0x68]
call fcn.0048faf7
push dword [ebp - 0x64]
call fcn.0048faf7
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x24]
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 esp, ebp
pop ebp
ret