Function at 0x4d9a80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
lea ebp, [esp - 0x8f4]
sub esp, 0x8f4
push 0xffffffffffffffff
push 0x546264
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x463df0]
xor eax, ebp
mov dword [ebp + 0x8f0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x90c]
mov edx, dword [ebp + 0x918]
mov esi, dword [ebp + 0x8fc]
mov edi, dword [ebp + 0x904]
push 0x90
mov ebx, ecx
mov ecx, dword [ebp + 0x910]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x5bc]
push 0
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], edx
call fcn.00526600
add esp, 0xc
push 0x90
lea ecx, [ebp + 0x5bc]
push ecx
push 1
push esi
mov ecx, ebx
call fcn.004d3ec0
cmp eax, 0x90
jne 0x4da2e7
push 0x2fc
lea edx, [ebp]
push 0
push edx
call fcn.00526600
add esp, 0xc
push 0x2fc
lea eax, [ebp]
push eax
push 0x21
push esi
mov ecx, ebx
call fcn.004d3ec0
cmp eax, 0x2fc
jne 0x4da2e7
mov esi, dword [ebp - 0x28]
mov eax, 1
test esi, esi
jne 0x4d9b67
mov eax, 0x1001
push eax
lea ecx, [ebp + 0x764]
call fcn.004d99b0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x4d9be6
lea ecx, [ebp + 0x838]
call fcn.004bbad0
mov eax, dword [ebp + 0x900]
and eax, 0xf00
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp + 0x838]
cmp eax, 0x100
je 0x4d9bbf
cmp eax, 0x200
je 0x4d9bb8
call fcn.004b5f20
jmp 0x4d9bc4
call fcn.004b60c0
jmp 0x4d9bc4
call fcn.004b5500
movzx eax, byte [ebp + 0x900]
sub eax, 1
je 0x4d9bdb
push 0
lea ecx, [ebp + 0x838]
push ecx
jmp 0x4d9c04
push 1
lea edx, [ebp + 0x838]
push edx
jmp 0x4d9c04
call fcn.004b5900
push eax
lea ecx, [ebp + 0x838]
call fcn.004bc340
push 0
lea eax, [ebp + 0x838]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0x764]
call fcn.004f92a0
lea ecx, [ebp + 0x838]
mov byte [ebp - 4], 1
call fcn.004bbaf0
push 0x2c0
lea ecx, [ebp + 0x2fc]
push 0
push ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
call fcn.00526600
mov dx, word [ebp + 0x5be]
mov eax, dword [ebp + 0x5c0]
add esp, 0xc
push 1
lea ecx, [ebp + 0x2fc]
push ecx
push 0
mov ecx, ebx
mov dword [ebp + 0x2fc], 0x10100
mov word [ebp + 0x31e], dx
mov dword [ebp + 0x320], eax
call fcn.004d3580
test eax, eax
je 0x4d9c85
push eax
mov ecx, ebx
mov byte [ebp - 0x15], 1
call fcn.004cf640
xor esi, esi
cmp esi, dword [ebp + 0x908]
mov dword [ebp - 0x14], esi
jge 0x4da297
mov eax, dword [edi + esi*4]
cmp eax, 0x1388
jb 0x4d9ca7
cmp eax, 0x176f
jb 0x4d9cb5
cmp eax, 0x4c4b40
jb 0x4d9cc1
cmp eax, 0x5b8d7f
jae 0x4d9cc1
push 0x69
mov ecx, ebx
call fcn.004cc3d0
inc esi
jmp 0x4d9c87
mov edx, dword [edi + esi*4]
mov eax, dword [ebp + 0x5c0]
mov ecx, dword [ebp + 0x5be]
push edx
push eax
push ecx
lea ecx, [ebp + 0x764]
mov byte [ebp - 4], 5
call fcn.004fadd0
lea edx, [ebp + 0x5bc]
push edx
lea ecx, [ebp + 0x764]
call fcn.004f98f0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x764]
call fcn.004f9cb0
mov ecx, dword [edi + esi*4]
push 1
lea edx, [ebp + 0x2fc]
push edx
mov dword [ebp + 0x300], ecx
push 2
mov ecx, ebx
call fcn.004d3580
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4d9e5d
cmp byte [ebp - 0x15], al
jne 0x4da1ab
push 0x118
push eax
lea eax, [ebp + 0x64c]
push eax
call fcn.00526600
mov edx, dword [ebp - 0x34]
add esp, 0xc
push 0x118
lea ecx, [ebp + 0x64c]
push ecx
push 0xa
push edx
mov ecx, ebx
call fcn.004d3ec0
test eax, eax
je 0x4da1ab
cmp byte [ebp + 0x664], 0
je 0x4d9d7c
lea esi, [ebp + 0x664]
jmp 0x4d9e33
mov ax, word [ebp + 0x65c]
xor ecx, ecx
cmp cx, ax
jne 0x4d9ddd
xor edx, edx
cmp dx, word [ebp + 0x65e]
jne 0x4d9ddd
cmp cx, word [ebp + 0x660]
jne 0x4d9ddd
cmp dx, word [ebp + 0x662]
jne 0x4d9ddd
movzx eax, word [ebp + 0x65a]
movzx ecx, word [ebp + 0x658]
movzx edx, word [ebp + 0x656]
push eax
movzx eax, word [ebp + 0x654]
push ecx
push edx
push eax
lea ecx, [ebp + 0x870]
push 0x46d3dc
push ecx
call fcn.0052720d
add esp, 0x18
jmp 0x4d9e2d
movzx edx, word [ebp + 0x662]
movzx ecx, word [ebp + 0x660]
push edx
movzx edx, word [ebp + 0x65e]
push ecx
movzx ecx, word [ebp + 0x65a]
push edx
movzx edx, word [ebp + 0x658]
movzx eax, ax
push eax
movzx eax, word [ebp + 0x656]
push ecx
movzx ecx, word [ebp + 0x654]
push edx
push eax
push ecx
lea edx, [ebp + 0x870]
push 0x46d3c4
push edx
call fcn.0052720d
add esp, 0x28
lea esi, [ebp + 0x870]
push 1
lea eax, [ebp + 0x2fc]
mov ecx, 0x20
lea edi, [ebp + 0x32c]
push eax
rep movsd dword es:[edi], dword [esi]
push 2
mov ecx, ebx
call fcn.004d3580
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4da1ab
mov esi, dword [ebp - 0x1c]
push 0x10
lea ecx, [ebp - 0x48]
push ecx
xor eax, eax
push 6
push esi
mov ecx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call fcn.004d3ec0
cmp eax, 0x10
jge 0x4d9ecf
mov edx, dword [0x59cfc4]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4d9e98
xor edi, edi
jmp 0x4d9e9a
mov edi, dword [eax]
lea ecx, [ebp + 0x764]
call fcn.004f90f0
push esi
mov ecx, ebx
call fcn.004cf640
push edi
mov ecx, ebx
call fcn.004cc3d0
lea ecx, [ebp + 0x764]
mov dword [ebp - 4], 0xffffffff
call fcn.004d9a20
mov eax, dword [ebp - 0x14]
jmp 0x4da2e9
test dword [ebp - 0x44], 0x8000
push 1
je 0x4da03b
xor eax, eax
mov dword [ebp + 0x820], eax
mov dword [ebp + 0x824], eax
mov dword [ebp + 0x828], eax
mov dword [ebp + 0x82c], eax
mov dword [ebp + 0x830], eax
mov dword [ebp + 0x834], eax
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x304], eax
lea eax, [ebp + 0x2fc]
push eax
push 2
mov ecx, ebx
call fcn.004d3580
mov edi, eax
test edi, edi
je 0x4d9fac
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov eax, dword [edx + esi*4]
lea ecx, [ebp + 0x820]
push ecx
push eax
push edi
mov ecx, ebx
call fcn.004d0f80
test eax, eax
je 0x4d9fa1
push 0x46d3b8
lea ecx, [ebp - 0x68]
call fcn.0047ae40
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + esi*4]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp + 0x764]
mov byte [ebp - 4], 6
call fcn.004f8f50
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00477890
lea ecx, [ebp + 0x820]
push ecx
lea ecx, [ebp + 0x764]
call fcn.004fa000
push edi
mov ecx, ebx
call fcn.004cf640
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 0
inc esi
jmp 0x4d9c87
push edi
mov ecx, ebx
call fcn.004cf640
mov esi, dword [ebp - 0x1c]
mov dx, word [ebp - 0x48]
xor eax, eax
push eax
push eax
mov dword [ebp + 0x85c], eax
push 0x12
mov dword [ebp + 0x860], eax
mov dword [ebp + 0x864], eax
mov dword [ebp + 0x868], eax
mov word [ebp + 0x86c], ax
lea eax, [ebp + 0x85c]
push eax
push 2
push esi
mov ecx, ebx
mov word [ebp + 0x85c], dx
call fcn.004d45f0
mov ecx, dword [0x59cfc4]
push ecx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4da005
xor edi, edi
jmp 0x4da007
mov edi, dword [eax]
push esi
mov ecx, ebx
call fcn.004cf640
push edi
mov ecx, ebx
call fcn.004cc3d0
cmp dword [ebp - 0x24], 0
mov dword [ebp + 0x300], 0
jne 0x4da1ab
lea ecx, [ebp + 0x764]
call fcn.004f90f0
jmp 0x4d9eb5
push 0x14000
lea ecx, [ebp + 0x858]
call fcn.0049adc0
mov dword [ebp + 0x858], 0x46980c
mov eax, dword [ebp + 0x860]
mov edx, dword [ebp - 0x1c]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 0x85c]
push eax
push esi
push 8
push edx
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.004d3ec0
mov edi, eax
test edi, edi
jne 0x4da0ce
mov eax, dword [0x59cfc4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4da094
xor esi, esi
jmp 0x4da096
mov esi, dword [eax]
lea ecx, [ebp + 0x764]
call fcn.004f90f0
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.004cf640
push esi
mov ecx, ebx
call fcn.004cc3d0
lea ecx, [ebp + 0x858]
mov dword [ebp + 0x858], 0x46980c
call fcn.00476f80
jmp 0x4d9eb5
cmp dword [ebp + 0x860], edi
mov dword [ebp - 0x24], esi
jge 0x4da14c
push edi
lea ecx, [ebp + 0x858]
call fcn.0049b290
cmp dword [ebp + 0x860], 0
je 0x4da0fb
mov eax, dword [ebp + 0x85c]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4da115
lea ecx, [ebp + 0x764]
call fcn.004f90f0
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, ebx
call fcn.004cf640
push 0x6c
jmp 0x4da0ad
mov esi, dword [ebp - 0x1c]
push edi
push eax
push 8
push esi
mov ecx, ebx
call fcn.004d3ec0
mov edi, eax
test edi, edi
jne 0x4da14f
mov ecx, ebx
call fcn.004cc3b0
lea ecx, [ebp + 0x764]
mov edi, eax
call fcn.004f90f0
push esi
mov ecx, ebx
call fcn.004cf640
push edi
jmp 0x4da0ad
mov esi, dword [ebp - 0x1c]
push 0x46d3ac
lea ecx, [ebp - 0x68]
call fcn.0047ae40
mov eax, dword [ebp - 0x24]
push 1
push edi
push eax
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp + 0x764]
mov byte [ebp - 4], 8
call fcn.004f8750
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00477890
push esi
mov ecx, ebx
call fcn.004cf640
lea ecx, [ebp + 0x858]
mov byte [ebp - 4], 5
mov dword [ebp + 0x858], 0x46980c
call fcn.00476f80
test esi, esi
jne 0x4da266
xor eax, eax
push 1
lea edx, [ebp + 0x2fc]
push edx
push 2
mov ecx, ebx
mov dword [ebp + 0x840], eax
mov dword [ebp + 0x844], eax
mov dword [ebp + 0x848], eax
mov dword [ebp + 0x84c], eax
mov dword [ebp + 0x850], eax
mov dword [ebp + 0x854], eax
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x304], eax
call fcn.004d3580
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov edx, dword [edi + ecx*4]
mov esi, eax
lea eax, [ebp + 0x840]
push eax
push edx
push esi
mov ecx, ebx
call fcn.004d0f80
test eax, eax
jne 0x4da219
mov eax, dword [0x59cfc4]
push eax
jmp 0x4d9e8a
push 0x46d3b8
lea ecx, [ebp - 0x68]
call fcn.0047ae40
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + ecx*4]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp + 0x764]
mov byte [ebp - 4], 9
call fcn.004f8f50
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00477890
lea ecx, [ebp + 0x840]
push ecx
lea ecx, [ebp + 0x764]
call fcn.004fa000
push esi
mov ecx, ebx
call fcn.004cf640
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 0
inc esi
jmp 0x4d9c87
lea ecx, [ebp + 0x764]
call fcn.004f90f0
cmp dword [ebp - 0x28], 0
jne 0x4da310
mov esi, dword [ebp + 0x914]
mov edx, dword [ebp - 0x38]
push esi
push edx
lea ecx, [ebp + 0x764]
call fcn.004f7690
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
cmp eax, esi
jbe 0x4da310
add eax, 0xa
mov dword [ecx], eax
push 0x70
mov ecx, ebx
call fcn.004cc3d0
lea ecx, [ebp + 0x764]
mov dword [ebp - 4], 0xffffffff
call fcn.004d9a20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8f0]
xor ecx, ebp
call fcn.00526a8a
add ebp, 0x8f4
mov esp, ebp
pop ebp
ret 0x20
lea ecx, [ebp + 0x764]
mov dword [ebp - 4], 0xffffffff
call fcn.004d9a20
mov eax, dword [ebp + 0x908]
jmp 0x4da2e9