Function at 0x415f10
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x46bbbb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4860f0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
push 4
mov dword [edi], vtable.MessageLoop.0
mov dword [edi + 4], 1
lea esi, [edi + 8]
call fcn.00456a8e
add esp, 4
cmp eax, ebx
je 0x415f63
mov dword [eax], esi
jmp 0x415f65
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
lea eax, [edi + 0x28]
push eax
mov byte [esp + 0x28], 1
call fcn.004175d0
push 4
mov byte [esp + 0x28], 2
lea esi, [edi + 0x44]
call fcn.00456a8e
add esp, 4
cmp eax, ebx
je 0x415f9b
mov dword [eax], esi
jmp 0x415f9d
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [edi + 0x64], ebx
lea esi, [edi + 0x68]
push esi
mov byte [esp + 0x28], 4
call fcn.004175d0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [edi + 0x88], 1
mov byte [edi + 0x89], bl
mov dword [edi + 0xa4], 0xf
mov dword [edi + 0xa0], ebx
mov byte [edi + 0x90], bl
push 4
mov byte [esp + 0x28], 6
lea esi, [edi + 0xa8]
call fcn.00456a8e
add esp, 4
cmp eax, ebx
je 0x416002
mov dword [eax], esi
jmp 0x416004
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
lea eax, [edi + 0xc8]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esp + 0x24], 8
mov dword [edi + 0xe0], ebx
lea esi, [edi + 0xf4]
mov dword [edi + 0xe8], ebx
mov dword [edi + 0xec], ebx
push esi
mov dword [edi + 0xf0], ebx
call fcn.004175d0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esp + 0x24], 9
call fcn.00417160
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x4160e1
push 0x40
call fcn.00456a8e
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x24], 0xa
cmp esi, ebx
je 0x41609c
push esi
call fcn.004181f0
push esi
mov dword [esi], vtable.base::MessagePumpForUI.0
call fcn.004188a0
jmp 0x41609e
xor esi, esi
mov byte [esp + 0x24], 9
cmp esi, ebx
je 0x4160b1
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi + 0x64]
cmp eax, ebx
je 0x4160d9
lea ebp, [eax + 4]
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4160d9
cmp ebp, ebx
je 0x4160d9
lea ecx, [ebp - 4]
cmp ecx, ebx
je 0x4160d9
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x64], esi
jmp 0x416169
cmp eax, 2
jne 0x416115
push 0x78
call fcn.00456a8e
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 0xb
cmp eax, ebx
je 0x41610c
push eax
call fcn.00418ac0
mov ebp, eax
mov byte [esp + 0x24], 9
jmp 0x416130
xor ebp, ebp
mov byte [esp + 0x24], 9
jmp 0x416130
push 0x18
call fcn.00456a8e
add esp, 4
cmp eax, ebx
je 0x41612e
mov esi, eax
call fcn.00417e60
mov ebp, eax
jmp 0x416130
xor ebp, ebp
cmp ebp, ebx
je 0x41613e
lea ecx, [ebp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [edi + 0x64]
cmp esi, ebx
je 0x416166
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x416166
cmp esi, ebx
je 0x416166
lea ecx, [esi - 4]
cmp ecx, ebx
je 0x416166
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x64], ebp
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4