Function at 0x4b1160
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x7c], 0
je 0x4b11ce
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x4b11ce
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [0x7d87f0]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x7c], 0
push 0x7d87f8
call fcn.0048dab0
pop ecx
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x1654], 0
je 0x4b11fe
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0048d580
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x1658], 1
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
push 0
push ebx
call fcn.004be070
add esp, 8
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x1658], 0
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x7c], 0
jne 0x4b12dd
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x4b12dd
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4b12b0
push 0xffffffffffffffff
push 0x7d87d8
push 0x7d87f8
call fcn.0048db80
add esp, 0xc
mov eax, dword [0x7d87f4]
test eax, eax
jne 0x4b129c
inc dword [0x7d87f0]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x7c], 1
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004bdff0
movzx eax, ax
test eax, eax
je 0x4b12f6
call fcn.004bdff0
movzx eax, ax
jmp 0x4b1392
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x4b1390
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, eax
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4b130f
mov dword [ebp + 0x10], eax
movzx eax, byte [esi + 1]
cmp eax, 0x3a
jne 0x4b1329
lea esi, [esi + 2]
sub dword [ebp + 0x10], 2
movzx eax, byte [esi]
push eax
push 0x69f95e
call fcn.00532890
add esp, 8
test eax, eax
je 0x4b1343
inc esi
sub dword [ebp + 0x10], 1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b1365
movzx eax, byte [esi + eax - 1]
push eax
push 0x69f95e
call fcn.00532890
add esp, 8
test eax, eax
je 0x4b1365
sub dword [ebp + 0x10], 1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b1386
mov eax, dword [ebp + 0xc]
mov edx, esi
cmp eax, edx
je 0x4b1386
mov eax, dword [ebp + 0x10]
push eax
push esi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00532af0
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov byte [edx + eax], 0
xor eax, eax
pop esi
pop ebx
pop ebp
ret