Function at 0x43b56a
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x568934
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5afee0]
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 [0x5bb734], bl
je 0x43b5c0
mov byte [0x5bb734], bl
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push str.jscript9.dll
mov dword [0x5d8030], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [ebp + 8], ebx
jne 0x43b5da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push ebx
call fcn.0043b7a9
add esp, 0x10
jmp 0x43b796
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 [0x5d4f98], eax
cmp eax, ebx
je 0x43b796
xor eax, eax
inc eax
cmp dword [ebp + 8], eax
jne 0x43b755
mov dword [0x5d4f9c], eax
call fcn.0043b8c7
test byte [ebp + 0x10], 0x20
jne 0x43b634
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push 1
call fcn.0043b7a9
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 0x43b6e8
call fcn.00410241
cmp eax, dword [esp + 0x34]
jne 0x43b675
cmp dword [esp + 0x38], 0xffffffff
jne 0x43b675
mov eax, dword [esp + 0x3c]
shr eax, 0x10
mov ecx, 0x205
cmp cx, ax
je 0x43b73e
call fcn.0041e09e
cmp eax, dword [esp + 0x34]
jne 0x43b726
cmp dword [esp + 0x38], 0xffffffff
jne 0x43b726
mov dword [esp + 0x18], 0x583d70
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.0044dd54
cmp eax, ebx
je 0x43b6da
cmp dword [eax], 0x226
jne 0x43b6da
push dword [eax + 0x14]
mov esi, dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push 1
call fcn.0043b7a9
add esp, 0x10
or dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0044dc6d
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
jne 0x43b64e
push 0xff
push 0xffffffffffffffff
push ebx
push 0x5d4f98
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x43b71a
cmp eax, 0xffffffff
jne 0x43b6e8
mov dword [0x5d4f9c], 2
jmp 0x43b796
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 0x43b6e8
push 0x7d0
mov dword [0x5d4f9c], 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43b796
push 2
pop eax
cmp dword [ebp + 8], eax
jne 0x43b78a
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.0043b8c7
lea eax, [esp + 0x18]
push eax
call fcn.0043b81c
push dword [0x5d4f98]
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