Function at 0x47cbd0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6c24b8]
sub esp, 0x10
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x47cbf4
pop esi
mov eax, 4
pop ebp
add esp, 0x10
ret
mov eax, dword [esi + 0x4e7c]
xor ecx, ecx
push ebx
cmp eax, ebp
push edi
jne 0x47ce19
mov edi, dword [esi + 0x4e3a]
mov ebx, dword [esi + 0x4e3e]
cmp edi, ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
je 0x47cd94
mov dword [esi + 0x3d08], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esi + 0x3d0c], ebp
cmp dword [esp + 0x14], ebp
jne 0x47ce11
call fcn.0047c130
cmp edi, 0xffffffff
jne 0x47cc76
cmp ebx, ebp
je 0x47ccbb
cmp dword [esi + 0x40], ebp
je 0x47cc67
push esi
lea ecx, [ebx + 1]
push ebp
push ecx
call fcn.00484df0
add esp, 0xc
jmp 0x47cca7
push 0x6bb520
lea edx, [ebx + 1]
push ebp
push edx
push 1
push ebp
jmp 0x47cc9f
cmp dword [esi + 0x40], ebp
je 0x47cc8e
lea eax, [edi + 1]
push esi
lea ecx, [ebx + 1]
push eax
push ecx
call fcn.00484df0
add esp, 0xc
jmp 0x47cca7
lea edx, [edi + 1]
push 0x6bb520
lea eax, [ebx + 1]
push edx
push eax
push 1
push 1
call fcn.004829d0
add esp, 0x14
cmp eax, 1
je 0x47ccbb
mov ecx, 0x30
cmp eax, 1
je 0x47cc3a
jmp 0x47ce11
call fcn.0047c170
cmp eax, 0xffffffff
jne 0x47ccdb
push 0x6bb520
push ebp
push ebp
push ebp
push 2
call fcn.004829d0
add esp, 0x14
xor ecx, ecx
jmp 0x47ccb1
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x4ee8], ebx
push ecx
call fcn.0047d010
add esp, 4
cmp eax, ebp
jle 0x47cd7b
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esi + 0x4e4a]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jae 0x47cd16
inc ebx
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x47cc3a
cmp edi, 0xffffffff
jne 0x47cd2a
mov eax, ecx
cdq
mov dword [esi + 0x4e4a], eax
mov dword [esi + 0x4e4e], edx
lea edi, [esi + 0x14fac]
lea edx, [esi + 0x157ac]
push edi
push edx
mov dword [esi + 0x4e7c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x15fd0]
push eax
push edi
call fcn.00484b60
mov edi, dword [esp + 0x24]
add esp, 8
mov dword [esi + 0x3d08], ebp
mov dword [esi + 0x3d0c], ebp
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x47cc3a
push 0x6bb520
push ebp
push ebp
push ebp
push 3
call fcn.004829d0
add esp, 0x14
xor ecx, ecx
jmp 0x47cc3a
mov dword [esi + 0x3d08], ebp
push 1
mov dword [esi + 0x3d0c], ebp
call fcn.0047d010
mov ecx, dword [esi + 0x4e4a]
add esp, 4
cmp eax, ecx
je 0x47cdd5
push 0x6bb520
push ebp
push ebp
push ebp
push 3
call fcn.004829d0
add esp, 0x14
pop edi
mov ecx, 3
pop ebx
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret
lea edi, [esi + 0x14fac]
lea ecx, [esi + 0x157ac]
push edi
mov dword [esi + 0x3d08], ebp
push ecx
mov dword [esi + 0x3d0c], ebp
mov dword [esi + 0x4e7c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esi + 0x15fd0]
push edx
push edi
call fcn.00484b60
add esp, 8
jmp 0x47ce19
cmp ecx, ebp
jne 0x47ceb2
mov eax, dword [esi + 0x3d08]
mov ecx, dword [esi + 0x4e4a]
cmp eax, ecx
jae 0x47cead
cmp dword [esi + 0x3d0c], ebp
jl 0x47cead
jg 0x47ce3d
mov ecx, eax
cmp ecx, ebp
jb 0x47cead
mov edx, dword [esi + 0x4ed0]
push eax
lea eax, [esi + 0x4eae]
lea ecx, [esi + 0x4e80]
push eax
mov eax, dword [esi + 0x4ed8]
push ecx
push edx
push eax
call fcn.0047c3e0
mov ecx, dword [esi + 0x3d08]
mov edx, dword [esi + 0x4ed0]
mov eax, dword [esi + 0x4ed8]
push ecx
push edx
push eax
call fcn.0047c290
add esp, 0x20
test eax, eax
je 0x47cdc6
mov ecx, dword [esi + 0x3d08]
pop edi
add ecx, 1
pop ebx
mov dword [esi + 0x3d08], ecx
mov eax, dword [esi + 0x3d0c]
adc eax, ebp
xor ecx, ecx
mov dword [esi + 0x3d0c], eax
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret
mov ecx, 2
pop edi
pop ebx
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret