Function at 0x41daf2
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f9879
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x52ec00]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
xor ebx, ebx
cmp byte [0x543e9c], bl
je 0x41db3d
mov byte [0x543e9c], bl
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x549b90], eax
cmp dword [ebp + 8], ebx
jne 0x41db57
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push ebx
call fcn.0041dd26
add esp, 0x10
jmp 0x41dd13
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x14]
push ebx
push 0x100040
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x5473a8], eax
cmp eax, ebx
je 0x41dd13
xor eax, eax
inc eax
cmp dword [ebp + 8], eax
jne 0x41dcd2
mov dword [0x5473ac], eax
call fcn.0041de4a
test byte [ebp + 0x10], 0x20
jne 0x41dbb1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push 1
call fcn.0041dd26
add esp, 0x10
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x41dc65
call fcn.00402a71
cmp eax, dword [esp + 0x34]
jne 0x41dbf2
cmp dword [esp + 0x38], 0xffffffff
jne 0x41dbf2
mov eax, dword [esp + 0x3c]
shr eax, 0x10
mov ecx, 0x205
cmp cx, ax
je 0x41dcbb
call fcn.0040f479
cmp eax, dword [esp + 0x34]
jne 0x41dca3
cmp dword [esp + 0x38], 0xffffffff
jne 0x41dca3
mov dword [esp + 0x18], 0x515d28
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
call fcn.0042b62d
cmp eax, ebx
je 0x41dc57
cmp dword [eax], 0x226
jne 0x41dc57
push dword [eax + 0x14]
mov esi, dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push 1
call fcn.0041dd26
add esp, 0x10
or dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0042b548
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
jne 0x41dbcb
push 0xff
push 0xffffffffffffffff
push ebx
push 0x5473a8
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x41dc97
cmp eax, 0xffffffff
jne 0x41dc65
mov dword [0x5473ac], 2
jmp 0x41dd13
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x41dc65
push 0x7d0
mov dword [0x5473ac], 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41dd13
push 2
pop eax
cmp dword [ebp + 8], eax
jne 0x41dd07
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
call fcn.0041de4a
lea eax, [esp + 0x18]
push eax
call fcn.0041dd99
push dword [0x5473a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret