Function at 0x4124c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2e48
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4c8104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
push dword [0x50b8e0]
mov edi, eax
add eax, 0xfffffea0
neg edi
sbb edi, edi
and edi, eax
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0x190]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x412527
cmp dword [eax], esi
je 0x4126ec
mov eax, dword [eax + 8]
test eax, eax
jne 0x412518
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.0040d230
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 0x608]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [edi + 0x190]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x70], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x23], 1
mov byte [ebp - 0x77], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
push 0x34
mov dword [ebp - 0x40], eax
call fcn.0042ae70
mov edx, eax
add esp, 4
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x41d9d0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov cl, byte [ebp - 0x23]
mov byte [edx + 0x21], cl
mov ecx, edi
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x23], 0
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x30]
push edx
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0042acf0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x40]
call fcn.0041d750
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4126a2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4126a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4126a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 9
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x4126ce
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4126ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4126ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 0
je 0x412527
mov ecx, dword [ebp - 0x28]
mov edi, dword [ecx]
mov esi, dword [edi]
cmp esi, edi
je 0x4126ce
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
lea eax, [eax + 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0x14]
push eax
lea eax, [ecx + 0x18]
mov ecx, dword [ecx + 0x10]
push eax
call fcn.00435e70
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x412748
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x412744
cmp esi, dword [eax + 8]
jne 0x412744
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x412734
mov esi, eax
jmp 0x41275e
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41275e
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x412752
mov eax, dword [ebp - 0x28]
cmp esi, edi
jne 0x412712
jmp 0x4126ce