Function at 0x1004b60b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [ecx + 0x80c]
mov edi, dword [ecx + 0x804]
mov eax, pe_nt_image_headers32
and dword [ebp - 0x38], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
and dword [ebp - 0x2c], 0
xor eax, eax
inc ebx
mov dword [ecx + 0x80c], ebx
add ebx, dword [ecx + 0x808]
cmp eax, 0x10
je 0x1004b84c
lea ecx, [eax + 8]
mov esi, dword [ebp + eax - 0x38]
mov eax, dword [ebp + eax - 0x34]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov ecx, edx
cmp edx, 0x20
adc edx, 0
lea esi, [ecx*4]
cmp ecx, 0x1f
ja 0x1004b844
mov eax, dword [ebp - 0x1c]
lea ecx, [esi + eax]
cmp ecx, 0xff
ja 0x1004b86f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
add esi, eax
cmp esi, 0x100
jae 0x1004b86d
mov eax, ebx
mov ebx, edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], ecx
shl ebx, 0xd
xor ebx, edi
mov edi, dword [ebp - 0x14]
mov edx, dword [edi + ecx*4 + 0x400]
add ebx, dword [edi + esi*4 + 0x400]
mov esi, 0x3fc
mov ecx, edx
and ecx, esi
add eax, dword [edi + ecx + 0x400]
mov ecx, dword [ebp - 0x10]
add eax, ebx
mov dword [edi + ecx*4 + 0x400], eax
shr eax, 8
and eax, esi
mov esi, dword [ebp - 0x20]
add edx, dword [edi + eax + 0x400]
mov eax, dword [ebp - 0x1c]
lea eax, [esi + eax + 1]
mov dword [edi + ecx*4], edx
cmp eax, 0x100
jae 0x1004b87e
or esi, 1
add esi, dword [ebp - 0x18]
cmp esi, 0x100
jae 0x1004b882
mov ecx, dword [ebp - 0x14]
mov edi, ebx
mov dword [ebp - 0x10], eax
shr edi, 6
xor edi, ebx
mov ebx, dword [ecx + eax*4 + 0x400]
add edi, dword [ecx + esi*4 + 0x400]
mov eax, 0x3fc
mov esi, ebx
and esi, eax
add edx, dword [ecx + esi + 0x400]
mov esi, dword [ebp - 0x10]
add edx, edi
mov dword [ecx + esi*4 + 0x400], edx
shr edx, 8
and edx, eax
mov eax, dword [ebp - 0x1c]
add ebx, dword [ecx + edx + 0x400]
mov dword [ecx + esi*4], ebx
mov esi, dword [ebp - 0x20]
lea ecx, [esi + eax + 2]
cmp ecx, 0x100
jae 0x1004b895
or esi, 2
add esi, dword [ebp - 0x18]
cmp esi, 0x100
jae 0x1004b893
mov eax, dword [ebp - 0x14]
lea edx, [edi*4]
mov dword [ebp - 0x10], ecx
xor edx, edi
mov edi, dword [eax + ecx*4 + 0x400]
add edx, dword [eax + esi*4 + 0x400]
mov esi, 0x3fc
mov ecx, edi
and ecx, esi
add ebx, dword [eax + ecx + 0x400]
mov ecx, dword [ebp - 0x10]
add ebx, edx
mov dword [eax + ecx*4 + 0x400], ebx
shr ebx, 8
and ebx, esi
mov esi, dword [ebp - 0x20]
add edi, dword [eax + ebx + 0x400]
mov dword [eax + ecx*4], edi
mov eax, dword [ebp - 0x1c]
lea ecx, [esi + eax + 3]
cmp ecx, 0x100
jae 0x1004b8a6
or esi, 3
add esi, dword [ebp - 0x18]
cmp esi, 0x100
jae 0x1004b8a4
mov ebx, edx
mov dword [ebp - 0x10], ecx
shr ebx, 0x10
xor ebx, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + ecx*4 + 0x400]
add ebx, dword [edx + esi*4 + 0x400]
mov esi, 0x3fc
mov eax, ecx
and eax, esi
add edi, dword [edx + eax + 0x400]
mov eax, dword [ebp - 0x10]
add edi, ebx
mov dword [edx + eax*4 + 0x400], edi
shr edi, 8
and edi, esi
add ecx, dword [edx + edi + 0x400]
mov edi, ebx
mov dword [edx + eax*4], ecx
mov edx, dword [ebp - 0x28]
mov ebx, ecx
jmp 0x1004b664
mov eax, dword [ebp - 0x24]
jmp 0x1004b645
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x804], edi
mov dword [eax + 0x808], ebx
mov dword [eax + 0x800], 0x100
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, 0x100
push 0x101c35f8
call dbg.panic_bounds_check
mov ecx, eax
jmp 0x1004b884
mov ecx, esi
mov edx, 0x100
push 0x101c3608
call dbg.panic_bounds_check
mov ecx, esi
mov edx, 0x100
push 0x101c3618
call dbg.panic_bounds_check
mov ecx, esi
mov edx, 0x100
push 0x101c3628
call dbg.panic_bounds_check