Function at 0x4e70f0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp edi, ebx
je 0x4e71f2
cmp dword [edi + 4], 4
jne 0x4e71f2
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 4]
jne 0x4e71f2
mov ecx, dword [edi + 0x4c]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xa8]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
mov esi, dword [edi + 8]
mov ecx, dword [eax + 0x24]
push 0x3a
push esi
mov dword [ebp - 8], ecx
call sub.msvcrt.dll_strrchr
add esp, 8
test eax, eax
je 0x4e7153
add eax, 1
jne 0x4e7161
mov ecx, dword [ebp - 4]
push ebx
push 0
push esi
call fcn.0049d120
jmp 0x4e7172
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ebx
push 0
push edx
mov edx, esi
call fcn.0049cfe0
mov ebx, eax
test ebx, ebx
je 0x4e7273
cmp ebx, edi
je 0x4e7133
cmp dword [ebx + 4], 4
jne 0x4e7220
mov ecx, edi
call fcn.0049d860
test al, al
je 0x4e7133
cmp dword [edi + 4], 4
jne 0x4e71fd
mov eax, dword [ebx + 0x6c]
test eax, eax
jne 0x4e71ab
cmp dword [edi + 0x6c], eax
je 0x4e71be
test eax, eax
je 0x4e71fd
cmp dword [edi + 0x6c], 0
je 0x4e71fd
mov eax, dword [ebx + 0x70]
cmp eax, dword [edi + 0x70]
sete al
test al, al
je 0x4e71fd
test byte [ebx + 0xb4], 2
je 0x4e7130
cmp byte [ebp + 0x10], 0
jne 0x4e7255
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov ecx, dword [edx + 0x4c]
mov edx, dword [ebp - 4]
mov esi, edi
mov dword [eax + 4], ecx
mov byte [eax + 0x18d], 1
call fcn.0049cf40
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x9c]
mov dword [edi + 0x9c], eax
mov ecx, dword [eax + 0xa0]
mov dword [edi + 0xa0], ecx
mov dword [eax + 0xa0], edi
jmp 0x4e7133
mov ebx, dword [ebx + 4]
cmp ebx, 0xa
jae 0x4e7231
mov ecx, dword [ebx*4 + 0x550114]
jmp 0x4e7236
mov ecx, 0x43fef4
mov eax, dword [edi + 0xc]
mov esi, dword [ebp + 8]
push ecx
push eax
push 0x444410
lea edx, [edi + 0x10]
mov ecx, 0xbbb
call fcn.004a7840
add esp, 0xc
jmp 0x4e7271
mov eax, dword [edi + 0xc]
mov esi, dword [ebp + 8]
push eax
push 0x443bfc
lea edx, [edi + 0x10]
mov ecx, 0xbbb
call fcn.004a7840
add esp, 8
xor ebx, ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4e727c
mov ebx, eax
test ebx, ebx
jne 0x4e7287
mov ebx, edi
jmp 0x4e7394
mov ecx, dword [ebx + 0x48]
mov edx, dword [ecx]
mov eax, dword [edi + 0x48]
mov edx, dword [edx + 0x2c]
push eax
call edx
test al, al
jne 0x4e72b5
mov eax, dword [edi + 0xc]
mov esi, dword [ebp + 8]
push eax
push 0x444430
lea edx, [edi + 0x10]
mov ecx, 0xbfc
call fcn.004a7840
add esp, 8
mov eax, dword [edi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x50]
lea esi, [edi + 0x10]
lea edi, [ebx + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0xa4]
mov dword [ebx + 0xa4], ecx
mov edx, dword [edi + 0x90]
mov dword [ebx + 0x90], edx
mov esi, dword [edi + 0x50]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
test esi, esi
je 0x4e7361
cmp dword [ebp - 0xc], 0
jne 0x4e7306
cmp dword [esi + 0x7c], 0
je 0x4e7306
mov dword [ebp - 0xc], esi
mov edi, dword [ebp - 8]
call fcn.0049d6e0
mov eax, edi
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 0xa0]
mov dword [esi + 0xa0], edx
mov ecx, dword [eax + 0xa4]
mov dword [esi + 0xa4], ecx
mov esi, dword [esi + 0x58]
mov edx, dword [eax + 0x58]
mov dword [ebp - 8], edx
test esi, esi
jne 0x4e72f7
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4e735e
mov ecx, dword [eax + 0xc]
mov esi, dword [ebp + 8]
push ecx
push 0x444468
lea edx, [eax + 0x10]
mov ecx, 0xc2a
call fcn.004a7840
add esp, 8
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x50]
mov ecx, dword [edi + 0x50]
mov dword [ebx + 0x50], ecx
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
mov byte [eax + 0x18d], 1
mov edx, dword [edi + 0x4c]
mov esi, edi
call fcn.0049cf40
mov esi, dword [edi + 0x9c]
mov edx, edi
call fcn.0049d900
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4e73d2
cmp dword [eax + 4], 3
jne 0x4e73d2
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4e73d2
cmp dword [eax + 4], 4
jne 0x4e73d2
cmp byte [ebp + 0x10], 0
mov esi, dword [ebp + 8]
je 0x4e7416
mov eax, dword [ebx + 0xc]
push eax
push 0x4444b0
lea edx, [edi + 0x10]
mov ecx, 0xc22
call fcn.004a7840
add esp, 8
jmp 0x4e73d5
mov esi, dword [ebp + 8]
cmp byte [ebp + 0x10], 0
je 0x4e7416
mov eax, dword [ebp - 4]
test eax, eax
je 0x4e7416
cmp dword [eax + 4], 3
jne 0x4e7416
mov eax, dword [eax + 0x48]
mov ecx, dword [eax + 4]
add ecx, 0xfffffffd
cmp ecx, 1
ja 0x4e7416
test eax, eax
je 0x4e7400
cmp dword [eax + 4], 4
je 0x4e7416
push eax
push esi
mov edi, ebx
call fcn.004e6ef0
mov esi, dword [ebp + 8]
mov edi, eax
test edi, edi
jl 0x4e75b4
mov al, byte [ebp + 0x10]
mov ecx, dword [ebx + 0x48]
add al, al
xor al, byte [ebx + 0xb4]
and al, 2
xor byte [ebx + 0xb4], al
mov edx, dword [esi + 0x1a0]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], 0
test ecx, ecx
je 0x4e744a
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x34]
add dword [esi + 0x1a0], eax
mov ecx, dword [ebx + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [ebp + 0x10]
push eax
call edx
test byte [eax], 1
jne 0x4e757f
mov eax, dword [0x551d48]
test eax, eax
jge 0x4e7477
xor eax, eax
jmp 0x4e747e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push 0x10
push 0xb0
call fcn.00547721
test eax, eax
je 0x4e75b4
call fcn.0049d660
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4e75b4
mov edx, dword [esi + 0x24]
mov ecx, dword [ebx + 8]
push edx
push 1
push ecx
mov ecx, dword [ebx + 0x4c]
push ecx
push eax
call fcn.0049d1f0
mov edi, eax
test edi, edi
jl 0x4e75b4
mov edi, dword [ebp + 0x10]
add edi, 0x10
lea esi, [ebx + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x48]
cmp dword [eax + 4], 0xa
jne 0x4e74ed
cmp dword [eax + 0x18], 0x200
jne 0x4e74ed
cmp dword [eax + 0x1c], 0
jne 0x4e74ed
mov eax, dword [eax + 0x20]
mov esi, dword [ebp + 0x10]
mov dword [esi + 0x48], eax
mov edx, dword [ebx + 0x30]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], 0
test eax, eax
je 0x4e7510
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x34], eax
mov edi, 0x50
mov dword [ebx + 0x80], esi
call fcn.00450d70
test eax, eax
je 0x4e7541
push 0xffffffffffffffff
mov ecx, esi
lea edx, [edi - 0x4b]
call fcn.004a9b90
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4e7552
mov esi, dword [ebp + 8]
mov edi, 0x8007000e
jmp 0x4e759b
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov edi, 0x8007000e
jmp 0x4e759b
mov ecx, dword [esi + 0x48]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push ecx
add edx, 0x10
push edx
push eax
call fcn.004e0300
mov esi, dword [ebp + 8]
mov dword [ebx + 0x84], eax
test eax, eax
jne 0x4e757f
mov edi, 0x8007000e
jmp 0x4e759b
mov ecx, dword [esi + 0x1a8]
mov eax, 1
mov dword [ebx + 0x68], ecx
add dword [esi + 0x1a8], eax
add dword [esi + 0x19c], eax
xor edi, edi
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4e75b0
add dword [ecx + 0x10], 0xffffffff
jne 0x4e75b0
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
test edi, edi
je 0x4e75bd
mov byte [esi + 0x188], 1
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc