Function at 0x10085c48
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x1c
mov eax, 0x10185e20
call fcn.10145d80
mov esi, ecx
lea edi, [esi + 0x5c]
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
mov dword [ebp - 0x1c], edi
je 0x10085e33
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x101f84b0
mov dword [ebp - 4], ebx
call fcn.100e5593
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10085ce0
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x18]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.10007b11
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
je 0x10085ccc
push dword [edi]
push eax
call fcn.1014631e
test eax, eax
pop ecx
pop ecx
jne 0x10085ccc
lea ecx, [ebp - 0x18]
call fcn.10003b75
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10085e22
lea ecx, [ebp - 0x18]
call fcn.10003b75
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp + 8]
mov ecx, esi
call fcn.10083b2b
cmp dword [ebp + 0xc], ebx
je 0x10085d4e
lea edi, [esi + 0x6c]
push dword [edi]
add esi, 0x60
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call fcn.10007ade
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push dword [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.10007ade
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.100840df
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.10084271
cmp dword [edi], ebx
pop ecx
je 0x10085d39
mov ecx, edi
call fcn.10003941
lea ecx, [ebp - 0x24]
call fcn.10003b75
lea ecx, [ebp - 0x28]
call fcn.10003b75
jmp 0x10085e22
cmp dword [esi + 0x28], ebx
jne 0x10085d8e
lea eax, [esi + 0x2c]
push eax
push 4
push esi
push 0x10084d94
push ebx
push ebx
call fcn.10147cdf
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x10085d85
push 0x4000
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [esi + 0x28], ebx
je 0x10085e22
lea edi, [esi + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10085df2
push dword [esi + 0x6c]
lea eax, [esi + 0x60]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.10007ade
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push dword [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.10007ade
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.100840df
push eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 5
call fcn.10085bf3
lea ecx, [ebp - 0x24]
call fcn.10003b75
lea ecx, [ebp - 0x28]
call fcn.10003b75
push edi
mov dword [esi + 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [ebp + 8], 0x1f4
jmp 0x10085e12
cmp dword [ebp + 8], ebx
jle 0x10085e22
sub dword [ebp + 8], 0x32
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push 0x551
push dword [esi + 0x2c]
call edi
test eax, eax
je 0x10085e01
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x10085e33
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.10145e58
ret 8