Function at 0x1007c5c0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1d55
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x1010aef8]
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]
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, ecx
mov ecx, dword [ebp + 0x20]
push ebx
push 0xc
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xd4], ecx
call fcn.1009ee60
push eax
mov dword [ebp - 0xec], eax
call dword [0x1010db90]
add esp, 0x18
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], 0xc
fldz
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xe8]
fst dword [eax + 4]
mov ecx, dword [ebp - 0xe8]
fstp dword [ecx + 8]
mov eax, dword [0x100fef8c]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x1007c67d
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1007c674
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x1007c676
xor esi, esi
mov eax, esi
mov dword [0x100fef8c], eax
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 8]
push ecx
lea edx, [ebp - 0x98]
push edx
mov ecx, eax
call fcn.1007b8e0
mov eax, dword [0x100fef8c]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x1007c6c9
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1007c6c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x1007c6c2
xor esi, esi
mov eax, esi
mov dword [0x100fef8c], eax
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx ecx, word [edi + 8]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x110]
push ecx
mov ecx, eax
call fcn.10078120
mov ecx, eax
call fcn.100794d0
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x1007c6fd
xor edx, edx
jmp 0x1007c6ff
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x1007c713
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x104]
call fcn.100733f0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x98]
test al, 4
mov edi, eax
setg dl
lea eax, [ebp - 0x88]
push eax
shr edi, 1
push ecx
mov byte [ebp - 0xc0], dl
and edi, 1
call dword [0x1010ddd0]
add esp, 8
cmp eax, ebx
je 0x1007c766
push eax
call fcn.1009e120
cmp dword [ebp - 0x88], 4
jne 0x1007c7df
lea eax, [ebp + 0xc]
lea edx, [ebp - 0x88]
call fcn.100739a0
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x98]
call fcn.10031950
mov eax, dword [eax]
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0xd8]
push edx
push eax
mov byte [ebp - 4], 2
call dword [0x1010de54]
add esp, 0xc
cmp eax, ebx
je 0x1007c7be
push eax
call fcn.1009e120
mov eax, dword [ebp - 0x88]
movzx esi, word [ebp - 0x84]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x1007c80e
push eax
call dword [0x1010dba0]
add esp, 4
jmp 0x1007c80e
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd8]
push ecx
push edx
call dword [0x1010de54]
add esp, 0xc
cmp eax, ebx
je 0x1007c807
push eax
call fcn.1009e120
movzx esi, word [ebp - 0x84]
movzx eax, si
mov dword [ebp - 0x88], eax
sub esp, 0x20
fild dword [ebp - 0x88]
lea ecx, [ebp - 0xbc]
fst qword [esp + 0x18]
fldz
fst qword [esp + 0x10]
fstp qword [esp + 8]
fstp qword [esp]
call fcn.100733c0
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x88], ebx
mov eax, dword [0x100fef8c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x114], ebx
cmp eax, ebx
jne 0x1007c8e2
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1007c8d9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x1007c8db
xor esi, esi
mov eax, esi
mov dword [0x100fef8c], eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp - 0xd0]
movzx ecx, word [edx + 8]
push ecx
lea edx, [ebp - 0xe0]
push edx
lea ecx, [ebp - 0x17c]
push ecx
mov ecx, eax
call fcn.10078120
mov ecx, eax
call fcn.100794d0
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x1007c91c
xor edx, edx
jmp 0x1007c91e
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x1007c932
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
mov eax, dword [0x100fef8c]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x84], edx
cmp eax, ebx
jne 0x1007c972
push 4
call fcn.100328c0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1007c969
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x1007c96b
xor esi, esi
mov eax, esi
mov dword [0x100fef8c], eax
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 0xd0]
movzx edx, word [ecx + 8]
push edx
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x134]
push edx
mov ecx, eax
call fcn.10078120
mov ecx, eax
call fcn.100794d0
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x1007c9ac
xor edx, edx
jmp 0x1007c9ae
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x1007c9c2
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
lea ecx, [ebp - 0x11c]
push ecx
push 2
lea edx, [ebp - 0x110]
push edx
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x128]
push ecx
push edi
push edx
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0xec]
push edx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.100a0ca0
add esp, 0x30
push eax
lea ecx, [ebp - 0xcc]
call fcn.1009e380
mov edx, dword [0x1010ad54]
mov eax, dword [ebp - 0xcc]
push edx
push eax
mov ecx, 0x1010ad44
mov byte [ebp - 4], 6
call fcn.10028a70
mov esi, eax
cmp esi, ebx
jne 0x1007ca4b
call fcn.1009db00
mov dword [ebp - 0xc8], esi
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x1007ca69
push eax
call dword [0x1010dba0]
add esp, 4
mov ecx, dword [ebp - 0x128]
mov eax, dword [0x1010db8c]
mov byte [ebp - 4], 9
cmp ecx, ebx
je 0x1007ca8b
cmp eax, ebx
je 0x1007ca8b
push ecx
call eax
mov eax, dword [0x1010db8c]
add esp, 4
mov ecx, dword [ebp - 0x110]
mov byte [ebp - 4], 0xa
cmp ecx, ebx
je 0x1007caa3
cmp eax, ebx
je 0x1007caa3
push ecx
call eax
add esp, 4
call fcn.1009a790
mov ecx, dword [eax]
push ebx
push 0x400
call ecx
add esp, 8
push eax
lea ecx, [ebp - 0x170]
call fcn.1009e380
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0xb
call fcn.10074150
fld1
mov eax, 0x80000000
fst dword [ebp - 0x68]
fldz
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
fst dword [ebp - 0x64]
mov eax, 0x7fffffff
fst dword [ebp - 0x60]
mov dword [ebp - 0x30], eax
fst dword [ebp - 0x58]
mov dword [ebp - 0x2c], eax
fstp dword [ebp - 0x54]
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0xd8]
push edx
push eax
fstp dword [ebp - 0x5c]
mov al, byte [ebp - 0xd4]
and al, 1
movsx edx, al
neg edx
push 4
sbb edx, edx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0x68]
and edx, eax
push edx
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx + 0x30]
push ecx
mov byte [ebp - 4], 0xc
call eax
add esp, 0x18
cmp eax, ebx
je 0x1007cb48
push eax
call fcn.1009e120
mov ecx, dword [ebp - 0x160]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x168]
sub edx, dword [eax]
mov ecx, dword [ebp - 0x16c]
sar edx, 2
mov dword [ebp - 0x9c], edx
mov edx, dword [ecx]
mov dword [ebp - 0xa4], edx
mov eax, dword [eax]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xa0], eax
call fcn.1009d630
mov dword [ebp - 0xc0], ebx
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa4]
push 1
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, dword [ebp - 0x9c]
push 0x40000000
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push eax
push ecx
mov byte [ebp - 4], 0xd
call fcn.1009b500
add esp, 0x28
push eax
lea ecx, [ebp - 0x94]
call fcn.1009b490
mov byte [ebp - 4], 0xe
call fcn.1009a740
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x10
call fcn.1009dac0
mov edx, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x140], edx
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x138], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x12c], ecx
push edx
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x130], eax
call fcn.1002fb00
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xb4], edx
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xac], ecx
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], edx
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.10026d10
add esp, 0xc
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x100]
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x14], edx
call fcn.100378c0
mov esi, eax
push esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call fcn.1009e3b0
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x94], eax
call fcn.1009dac0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0x10
call fcn.1009dac0
fld1
fst dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
fldz
push ecx
fst dword [ebp - 0x4c]
lea edx, [ebp - 0xdc]
fstp dword [ebp - 0x48]
push edx
lea ecx, [ebp - 0x94]
fstp dword [ebp - 0x44]
fld qword [ebp + 0x10]
fstp dword [ebp - 0x40]
fld qword [ebp + 0x18]
fstp dword [ebp - 0x3c]
call fcn.100378c0
mov esi, eax
push esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x12
call fcn.1009e3b0
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x94], eax
call fcn.1009dac0
mov edx, dword [esi + 4]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 0x10
call fcn.1009dac0
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0x94]
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x9c]
push eax
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0x10]
push ecx
call eax
add esp, 0x14
cmp eax, ebx
je 0x1007cdff
push eax
call fcn.1009e120
mov esi, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa0]
lea ebx, [esi + ecx*8]
cmp esi, ebx
jae 0x1007cec9
lea esp, [esp]
mov eax, dword [edi]
cmp eax, 3
ja case.default.0x1007ce2b
jmp dword [eax*4 + 0x1007cf5c]
mov ecx, dword [ebp - 0x8c]
fld dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi]
fstp dword [esp]
call eax
jmp case.default.0x1007ce2b
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
jmp case.default.0x1007ce2b
mov ecx, dword [ebp - 0x8c]
fld dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi]
fstp dword [esp]
call eax
jmp case.default.0x1007ce2b
fld dword [esi + 0x14]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
sub esp, 0x18
fstp dword [esp + 0x14]
fld dword [esi + 0x10]
fstp dword [esp + 0x10]
fld dword [esi + 0xc]
fstp dword [esp + 0xc]
fld dword [esi + 8]
fstp dword [esp + 8]
fld dword [esi + 4]
fstp dword [esp + 4]
fld dword [esi]
fstp dword [esp]
call eax
add esi, 0x10
add edi, 8
add esi, 8
add edi, 4
cmp esi, ebx
jb 0x1007ce20
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xc
call fcn.1009dac0
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0xa
call fcn.1009dac0
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 1
call fcn.1009dac0
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0
test eax, eax
je 0x1007cf1b
push eax
call dword [0x1010dba0]
add esp, 4
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1007cf3b
mov eax, dword [0x1010db8c]
test eax, eax
je 0x1007cf3b
push ecx
call eax
add esp, 4
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.100a2cc1
mov esp, ebp
pop ebp
ret 0x1c