Function at 0x47dc10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
xor ebx, ebx
jmp 0x47e4c2
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov eax, dword [edx + eax + 0xc]
mov dword [ebp - 0x1c], eax
cmp eax, 0x14
je 0x47dd04
jg 0x47dca6
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffe2
je 0x47dd1c
jg 0x47dc78
cmp dword [ebp - 0x1c], 0xffffffd8
je 0x47dd34
jmp case.0x47dc9f.0
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffec
je 0x47dd04
jl case.0x47dc9f.0
mov eax, dword [ebp - 0x1c]
cmp eax, 0xfffffff6
jl case.0x47dc9f.0
cmp eax, 0xa
jg case.0x47dc9f.0
jmp dword [eax*4 + 0x6977f4]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x28
je 0x47dd34
jg 0x47dcbf
cmp dword [ebp - 0x1c], 0x1e
je 0x47dd1c
jmp case.0x47dc9f.0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x32
je 0x47dd4c
jl case.0x47dc9f.0
cmp dword [ebp - 0x1c], 0x3c
je 0x47dd64
jmp case.0x47dc9f.0
mov dword [ebp - 8], 1
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 2
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 8
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
mov dword [ebp - 8], 4
jmp 0x47debf
lea edi, [ebp - 0x3c]
lea esi, [0x69778c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov eax, dword [edx + eax + 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004a0410
add esp, 8
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
cmp dword [edx + eax + 0xc], 0x2710
jle 0x47ddc7
mov dword [ebp - 8], 4
jmp 0x47debf
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
cmp dword [edx + eax + 0xc], 0x3e8
jle 0x47de78
lea eax, [ebp - 0x3c]
push eax
push 1
push str.HB_CSTRUCTUREFROMID
call fcn.0048fd10
add esp, 0xc
mov dword [ebp - 0x40], eax
mov edx, dword [eax]
and edx, 0x8000
je 0x47de45
mov eax, dword [eax + 8]
movzx eax, word [eax + 0xc]
test eax, eax
je 0x47de45
push 0
push str.SizeOf
mov eax, dword [ebp - 0x40]
push eax
call fcn.0048a450
add esp, 0xc
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [eax + 0x10]
push eax
call fcn.0049ffd0
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
push eax
call fcn.0049f7d0
pop ecx
jmp 0x47debf
mov eax, dword [ebp - 0x40]
push eax
call fcn.0049f7d0
pop ecx
push 1
call fcn.0049d010
pop ecx
push eax
push 1
push str.StructureToArray
push 0
push 0x7e7
push 1
call fcn.00492870
add esp, 0x18
mov eax, dword [ebp + 0x1c]
jmp 0x47e4ce
push 1
call fcn.0049d010
pop ecx
mov dword [ebp - 0x40], eax
push 2
call fcn.0049d010
pop ecx
mov dword [ebp - 0x44], eax
push 3
call fcn.0049d010
pop ecx
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
push 3
push str.StructureToArray
push 0
push 0x7e7
push 1
call fcn.00492870
add esp, 0x20
mov eax, dword [ebp + 0x1c]
jmp 0x47e4ce
mov eax, dword [ebp - 4]
test eax, eax
je 0x47df04
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 8], eax
jae 0x47ded6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
jmp 0x47dedc
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
xor edx, edx
div ecx
mov eax, edx
mov byte [ebp - 0x15], al
movzx eax, al
test eax, eax
jle 0x47df04
mov eax, dword [ebp - 0x20]
movzx edx, byte [ebp - 0x15]
sub eax, edx
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, edx
cmp eax, dword [ebp + 0xc]
ja 0x47e4cb
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov eax, dword [edx + eax + 0xc]
mov dword [ebp - 0x20], eax
cmp eax, 0x14
je 0x47e141
jg 0x47df7c
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffe2
je 0x47e1ac
jg 0x47df4e
cmp dword [ebp - 0x20], 0xffffffd8
je 0x47e217
jmp case.0x47df75.0
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffec
je 0x47e141
jl case.0x47df75.0
mov eax, dword [ebp - 0x20]
cmp eax, 0xfffffff6
jl case.0x47df75.0
cmp eax, 0xa
jg case.0x47df75.0
jmp dword [eax*4 + 0x697848]
mov eax, dword [ebp - 0x20]
cmp eax, 0x28
je 0x47e217
jg 0x47df99
cmp dword [ebp - 0x20], 0x1e
je 0x47e1ac
jmp case.0x47df75.0
mov eax, dword [ebp - 0x20]
cmp eax, 0x32
je 0x47e263
jl case.0x47df75.0
cmp dword [ebp - 0x20], 0x3c
je case.0x47df75.7
jmp case.0x47df75.0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx + eax]
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a0410
add esp, 8
jmp 0x47e4bb
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
mov edx, dword [eax]
and edx, 0x400
je 0x47e02e
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx]
cmp eax, edx
je 0x47e4bb
cmp dword [ebp + 0x18], 0
je 0x47e058
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a4aa0
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a4e50
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, word [edx + eax]
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a0410
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, edx
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a4ef0
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a0410
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, edx
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a4ef0
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a0470
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, edx
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a4ef0
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
fld dword [edx + eax]
sub esp, 8
fstp qword [esp]
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a0350
add esp, 0xc
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, edx
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a4ef0
add esp, 8
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
fld qword [edx + eax]
sub esp, 8
fstp qword [esp]
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a0350
add esp, 0xc
jmp 0x47e4bb
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, edx
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a4ef0
add esp, 8
jmp 0x47e4bb
lea edi, [ebp - 0x44]
lea esi, [0x6977ac]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov eax, dword [edx + eax + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a0410
add esp, 8
lea eax, [ebp - 0x44]
push eax
push 1
push str.HB_CSTRUCTUREFROMID
call fcn.0048fd10
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, dword [eax]
and edx, 0x8000
je 0x47e328
mov eax, dword [eax + 8]
movzx eax, word [eax + 0xc]
test eax, eax
jne 0x47e36a
mov eax, dword [ebp - 0x24]
push eax
call fcn.0049f7d0
pop ecx
push 1
call fcn.0049d010
pop ecx
mov dword [ebp - 0x4c], eax
push 2
call fcn.0049d010
pop ecx
push eax
mov eax, dword [ebp - 0x4c]
push eax
push 2
push str.StructureToArray
push 0
push 0x7e7
push 1
call fcn.00492870
add esp, 0x1c
mov eax, dword [ebp + 0x1c]
jmp 0x47e4ce
push 0
push str.NALIGN
mov eax, dword [ebp - 0x24]
push eax
call fcn.0048a450
add esp, 0xc
push 0
push str.SizeOf
mov eax, dword [ebp - 0x24]
push eax
call fcn.0048a450
add esp, 0xc
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [eax + 0x10]
push eax
call fcn.0049ffd0
pop ecx
mov dword [ebp - 0x48], eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
cmp dword [edx + eax + 0xc], 0x2710
jle 0x47e443
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
test eax, eax
je 0x47e437
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov dword [ebp - 0x4c], eax
mov edx, dword [eax + 4]
shl edx, 5
mov eax, dword [eax]
lea eax, [eax + edx - 0x20]
mov dword [ebp - 0x50], eax
cmp dword [ebp + 0x18], 0
je 0x47e408
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
push eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.004a4d60
add esp, 0xc
jmp 0x47e422
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
push eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.004a4df0
add esp, 0xc
push 0
push str.DEVALUE
mov eax, dword [ebp - 0x24]
push eax
call fcn.0048a450
add esp, 0xc
jmp 0x47e498
mov eax, dword [ebp - 0x24]
push eax
call fcn.004a45e0
pop ecx
jmp 0x47e498
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov dword [ebp - 0x4c], eax
mov edx, dword [eax + 4]
shl edx, 5
mov eax, dword [eax]
lea eax, [eax + edx - 0x20]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x70], pe_nt_image_headers32
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, edx
push eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.004a4df0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 1
push str.DEVALUE
mov eax, dword [ebp - 0x24]
push eax
call fcn.0048a450
add esp, 0x10
mov eax, dword [ebp - 0x24]
push eax
mov eax, ebx
shl eax, 5
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
add eax, edx
push eax
call fcn.004a44a0
add esp, 8
mov eax, dword [ebp - 0x24]
push eax
call fcn.0049f7d0
pop ecx
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x47dc3f
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret