Function at 0x462ce0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
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 0x462d04
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 0x462f29
mov edi, dword [esi + 0x4e3a]
mov ebx, dword [esi + 0x4e3e]
cmp edi, ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
je 0x462ea4
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 0x462f21
call fcn.004621a0
cmp edi, 0xffffffff
jne 0x462d86
cmp ebx, ebp
je 0x462dcb
cmp dword [esi + 0x40], ebp
je 0x462d77
push esi
lea ecx, [ebx + 1]
push ebp
push ecx
call fcn.0046b9e0
add esp, 0xc
jmp 0x462db7
push 0x526974
lea edx, [ebx + 1]
push ebp
push edx
push 1
push ebp
jmp 0x462daf
cmp dword [esi + 0x40], ebp
je 0x462d9e
lea eax, [edi + 1]
push esi
lea ecx, [ebx + 1]
push eax
push ecx
call fcn.0046b9e0
add esp, 0xc
jmp 0x462db7
lea edx, [edi + 1]
push 0x526974
lea eax, [ebx + 1]
push edx
push eax
push 1
push 1
call fcn.00469480
add esp, 0x14
cmp eax, 1
je 0x462dcb
mov ecx, 0x30
cmp eax, 1
je 0x462d4a
jmp 0x462f21
call fcn.004621e0
cmp eax, 0xffffffff
jne 0x462deb
push 0x526974
push ebp
push ebp
push ebp
push 2
call fcn.00469480
add esp, 0x14
xor ecx, ecx
jmp 0x462dc1
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x4ee8], ebx
push ecx
call fcn.00463120
add esp, 4
cmp eax, ebp
jle 0x462e8b
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esi + 0x4e4a]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jae 0x462e26
inc ebx
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x462d4a
cmp edi, 0xffffffff
jne 0x462e3a
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.0046b750
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 0x462d4a
push 0x526974
push ebp
push ebp
push ebp
push 3
call fcn.00469480
add esp, 0x14
xor ecx, ecx
jmp 0x462d4a
mov dword [esi + 0x3d08], ebp
push 1
mov dword [esi + 0x3d0c], ebp
call fcn.00463120
mov ecx, dword [esi + 0x4e4a]
add esp, 4
cmp eax, ecx
je 0x462ee5
push 0x526974
push ebp
push ebp
push ebp
push 3
call fcn.00469480
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.0046b750
add esp, 8
jmp 0x462f29
cmp ecx, ebp
jne 0x462fc2
mov eax, dword [esi + 0x3d08]
mov ecx, dword [esi + 0x4e4a]
cmp eax, ecx
jae 0x462fbd
cmp dword [esi + 0x3d0c], ebp
jl 0x462fbd
jg 0x462f4d
mov ecx, eax
cmp ecx, ebp
jb 0x462fbd
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.00462450
mov ecx, dword [esi + 0x3d08]
mov edx, dword [esi + 0x4ed0]
mov eax, dword [esi + 0x4ed8]
push ecx
push edx
push eax
call fcn.00462300
add esp, 0x20
test eax, eax
je 0x462ed6
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