Function at 0x4e0da0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
je 0x4e1116
cmp dword [esi + 4], 5
jne 0x4e1116
mov edi, 0x58
call fcn.00450d70
test eax, eax
je 0x4e0e35
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push 1
push 0
push esi
mov edx, edi
call fcn.004a9810
mov dword [esp + 0x10], eax
test eax, eax
je 0x4e0e3d
mov ebx, dword [esi + 0x14]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
test ebx, ebx
je 0x4e0e25
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
mov dword [esp + 0x30], eax
cmp edi, 8
ja case.0x4e0e2e.1
jmp dword [edi*4 + 0x4e1124]
mov dword [esp + 0x10], 0
mov edi, 0x8007000e
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4e0e5b
add dword [ecx + 0x10], 0xffffffff
jne 0x4e0e5b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x10], 0
cmp edi, 0x8007000e
jne 0x4e0e72
mov byte [esi + 0x188], 1
mov edi, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or byte [esp + 0x34], 0x22
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ecx
push esi
lea edi, [esp + 0x30]
call fcn.004e0c70
mov edi, eax
test edi, edi
jne 0x4e0e45
mov eax, dword [ebp + 0x10]
cmp eax, 6
jne 0x4e0f2d
mov ecx, ebx
call fcn.004af860
test al, al
je 0x4e0edd
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call edx
test byte [eax], 0x20
je 0x4e0edd
mov ecx, dword [ebp + 0xc]
push 0x4435d0
push esi
mov eax, 0xc14
call fcn.004a7870
add esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push 0
push 0x200
push eax
push esi
call fcn.004aa560
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e1087
mov edi, 0x8007000e
jmp 0x4e0e45
or byte [esp + 0x34], 0x10
jmp 0x4e0e86
or byte [esp + 0x34], 8
jmp 0x4e0e86
or byte [esp + 0x34], 1
jmp 0x4e0e86
mov edi, 0x8007054f
jmp 0x4e0e42
cmp eax, 8
je 0x4e0edd
cmp eax, 7
je 0x4e0edd
cmp eax, 1
je 0x4e0edd
cmp eax, 5
jne 0x4e10c8
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call eax
mov eax, dword [esi + 0x38]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push 0
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0xc]
push 0x200
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 4]
push edx
push esi
mov dword [esp + 0x28], ecx
call fcn.004aa560
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4e104a
mov ecx, dword [esp + 0x18]
cmp ecx, 1
ja 0x4e0fb4
cmp dword [esp + 0x1c], 1
ja 0x4e0fb4
mov eax, dword [esp + 0x14]
cmp eax, 9
je 0x4e0fb8
cmp eax, 8
jne 0x4e1056
jmp 0x4e0fb8
mov eax, dword [esp + 0x14]
cmp ecx, 1
jne 0x4e0fc2
cmp eax, 8
jne 0x4e0fc7
cmp eax, 9
jne 0x4e0ff9
mov eax, dword [0x551d48]
cmp eax, edi
jge 0x4e0fd4
xor eax, eax
jmp 0x4e0fdb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push 0x10
push 0x20
call fcn.00547721
cmp eax, edi
je 0x4e104a
mov dword [eax], 0x441b60
mov dword [eax + 4], 9
jmp 0x4e1011
push 0x20
call fcn.0049cdd0
cmp eax, edi
je 0x4e104a
mov dword [eax], 0x441b30
mov dword [eax + 4], 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], edi
push eax
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
push edi
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], esi
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0xc]
push edi
push eax
push ecx
call fcn.004aa560
mov esi, eax
cmp esi, edi
jne 0x4e1056
mov edx, dword [ebp + 8]
mov byte [edx + 0x188], 1
xor esi, esi
mov dword [esp + 0x14], esi
cmp esi, edi
je 0x4e0e3d
push edi
push esi
mov ecx, ebx
call fcn.004ab720
mov esi, dword [ebp + 8]
test al, al
jne 0x4e1087
mov edx, dword [ebp + 0xc]
push 0x443604
mov ecx, 0xbcc
call fcn.004a7840
add esp, 4
cmp dword [esp + 0x14], ebx
je 0x4e10c8
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push ebx
call eax
test al, al
jne 0x4e10c8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
push 0
push ecx
push esi
mov esi, dword [esp + 0x20]
call fcn.004e17b0
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4e10c1
mov edi, 0x8007000e
jmp 0x4e0e45
mov edx, dword [esp + 0x10]
mov dword [edx + 0x24], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [edi + 0x14], eax
mov eax, edi
call fcn.004e0210
push 1
push edi
mov ecx, esi
call fcn.004a7df0
test al, al
je 0x4e0e76
push esi
mov eax, edi
call fcn.004e8690
mov esi, eax
test esi, esi
je 0x4e0e76
mov ecx, edi
call fcn.00450d50
mov edi, esi
mov dword [esp + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10