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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46461b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4814f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x1108], eax
je 0x4158ed
xor eax, eax
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], eax
mov dword [esi + 0x10ec], eax
xor eax, eax
jmp 0x415abf
mov eax, dword [0x4837c4]
cmp eax, 0xffffffff
je 0x415adb
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
xor ebx, ebx
cmp eax, ebx
je 0x415927
mov dword [esi + 0x10e4], 0x3f4
mov dword [esi + 0x10e8], ebx
mov dword [esi + 0x10ec], ebx
xor eax, eax
jmp 0x415abf
mov eax, dword [0x4837c4]
cmp eax, 0xffffffff
je 0x415add
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x415add
mov eax, dword [0x4837c4]
push eax
call edi
cmp eax, ebx
je 0x415add
lea edi, [esi + 0x10cc]
xor eax, eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp dword [esi + 0x10f0], ebx
jne 0x4158e6
cmp dword [esi + 0x110c], ebx
jne 0x415a7f
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.00448540
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0040fbe0
push 0x46c3f0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], ebx
call fcn.00415840
mov edx, dword [ebp - 0x21c]
push edx
call fcn.0040f110
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46c3e4
push eax
mov dword [esi + 0x110c], eax
call ebx
mov dword [esi + 0x1110], eax
mov eax, dword [esi + 0x110c]
push 0x46c3dc
push eax
call ebx
mov ecx, dword [esi + 0x110c]
push 0x46c3cc
push ecx
mov dword [esi + 0x1114], eax
call ebx
mov edx, dword [esi + 0x110c]
push 0x46c3c0
push edx
mov dword [esi + 0x1118], eax
call ebx
xor ecx, ecx
mov dword [esi + 0x111c], eax
cmp dword [esi + 0x1110], ecx
je 0x415af7
cmp dword [esi + 0x1114], ecx
je 0x415af7
cmp dword [esi + 0x1118], ecx
je 0x415af7
cmp eax, ecx
je 0x415af7
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040edc0
xor ebx, ebx
mov eax, dword [esi + 0x1110]
push edi
push 1
push 0x415060
push fcn.00415030
push 0x4144e0
push 0x415000
push 0x415740
push 0x4139f0
push 0x4139e0
call eax
xor ecx, ecx
add esp, 0x24
cmp eax, ebx
setne cl
mov dword [esi + 0x10f0], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [esi + 0x10e4], ebx
mov dword [esi + 0x10e8], 0xe
mov dword [esi + 0x10ec], ebx
xor eax, eax
jmp 0x415abf
mov dword [esi + 0x110c], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
lea ecx, [ebp - 0x21c]
mov dword [edi + 0x18], 0x3e8
call fcn.0040edc0
xor eax, eax
jmp 0x415abf