Function at 0x442010
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52eb6c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd20
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x21c], edi
xorps xmm0, xmm0
mov dword [ebp - 0xd30], 0x5979e4
movups xmmword [ebp - 0xd2c], xmm0
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd18], 0
mov dword [ebp - 4], 0
mov eax, dword [0x5d1ec8]
add eax, 0x10
push eax
mov dword [ebp - 0xc60], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x5d59ac]
push 4
mov dword [ebp - 0xc5c], eax
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.004e2ce9
add esp, 0xc
test eax, eax
je 0x442109
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004e2ce9
add esp, 0xc
test eax, eax
je 0x442109
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
lea ecx, [eax*4]
mov eax, dword [esi]
add eax, ecx
je 0x4420f7
mov edx, dword [ebp - 0xc5c]
mov dword [eax], edx
mov eax, dword [esi + 4]
add eax, ecx
je 0x442106
lea ecx, [ebp - 0xd30]
mov dword [eax], ecx
inc dword [esi + 8]
push dword [ebp - 0xc60]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
lea ecx, [ebp - 0xc58]
call fcn.00441c20
mov eax, dword [0x5c6ad0]
xorps xmm0, xmm0
mov dword [ebp - 0xce4], eax
mov dword [ebp - 0xce0], eax
lea eax, [ebp - 0xc58]
mov dword [ebp - 0xcf4], eax
mov eax, dword [0x5c7a40]
mov dword [ebp - method.UpWorkerThread.virtual_0], vtable.UpWorkerThread.0
mov dword [ebp - 0xcdc], edi
movups xmmword [ebp - 0xcbc], xmm0
mov dword [ebp - 0xc84], 0
movups xmmword [ebp - 0xcac], xmm0
mov byte [ebp - 0xc80], 0
movups xmmword [ebp - 0xc9c], xmm0
mov dword [ebp - 0xc7c], 0
movq qword [ebp - 0xc8c], xmm0
mov dword [ebp - 0xcd4], 0
mov dword [ebp - 0xccc], 0
mov dword [ebp - 0xcf0], 0xffffffff
mov dword [ebp - 0xcd0], 0
mov dword [ebp - 0xce8], eax
mov byte [ebp - 0xc68], 0
mov dword [ebp - 0xcd8], 0
mov dword [ebp - 0xcc8], 0
mov dword [ebp - 0xcc0], 6
mov byte [ebp - 0xc78], 0
movlpd qword [ebp - 0xc70], xmm0
mov dword [ebp - 0xcc4], 0
lea ecx, [ebp - 0xcf8]
mov byte [ebp - 4], 2
call fcn.0043d4c0
push 0x597920
lea eax, [ebp - 0xcf8]
push str.32770
mov dword [ebp - 0x470], eax
call dword [sym.imp.USER32.dll_FindWindowW]
xorps xmm0, xmm0
movups xmmword [ebp - 0x238], xmm0
test eax, eax
je 0x4422c0
lea ecx, [ebp - 0x248]
push ecx
push eax
movups xmmword [ebp - 0x248], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xorps xmm0, xmm0
lea edx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x228]
movups xmmword [ebp - 0x228], xmm0
call fcn.00413310
mov eax, dword [ebp - 0x220]
add esp, 4
sub eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
sub eax, 0x1dc
sub ecx, dword [ebp - 0x224]
cdq
sub ecx, 0xdd
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
add eax, 0x1dc
mov dword [ebp - 0x230], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [ebp - 0x224]
jmp 0x442309
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov esi, eax
lea eax, [edi - 0x1dc]
mov edi, dword [ebp - 0x21c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x238], eax
lea ecx, [eax + 0x1dc]
mov eax, 0x55555556
mov dword [ebp - 0x230], ecx
lea ecx, [esi - 0xdd]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x234], eax
add eax, 0xdd
mov dword [ebp - 0x22c], eax
xor eax, eax
push 0x100
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push dword [0x5ca954]
push dword [0x5d15f8]
call dword [sym.imp.USER32.dll_LoadStringW]
movzx eax, word [0x5ca954]
push eax
push dword [0x5d15f8]
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [ebp - 0x21c], eax
mov ecx, 0x5ca8f8
lea eax, [ebp - 0xc38]
push eax
call fcn.00440e40
movzx esi, ax
test si, si
je 0x4426bd
lea eax, [ebp - 0xc58]
push eax
lea eax, [ebp - 0xc50]
push eax
call fcn.00414e40
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x234]
sub eax, edx
mov ecx, dword [ebp - 0x238]
push 0
push dword [0x5d15f4]
push dword [ebp - 0x21c]
push 0
push eax
mov eax, dword [ebp - 0x230]
sub eax, ecx
push eax
push edx
push ecx
push 0x6cf0000
lea eax, [ebp - 0x218]
push eax
push esi
push 0x40100
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4426bd
movzx eax, word [0x5ca954]
push eax
push dword [0x5d15f8]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov ecx, dword [ebp - 0xcdc]
mov dword [ebp - 0xc28], eax
mov eax, dword [ecx]
cmp eax, 2
jne 0x44241d
push dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x442509
test al, 2
je 0x442440
test al, 4
je 0x442440
push dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x442509
test al, 0x10
je 0x44245f
push dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x442509
cmp eax, 4
jne 0x44247f
push dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], 3
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x442509
cmp eax, 1
jne 0x44249c
push dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x442509
cmp eax, 0x100
jne 0x4424bb
push dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], 4
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x442509
cmp eax, 0x200
jne 0x4424da
push dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], 5
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x442509
cmp eax, 0x201
jne 0x4424f9
push dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], 6
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x442509
mov dword [ecx], 0
mov dword [ebp - 0xcf0], 0xffffffff
mov eax, dword [edi]
test eax, 0x104
jne 0x442569
cmp eax, 0x201
jne 0x442526
lea ecx, [ebp - 0xc58]
call fcn.004172e0
jmp 0x442569
test eax, eax
jne 0x44253f
push eax
push dword [ebp - 0xc54]
call dword [sym.imp.USER32.dll_ShowWindow]
or esi, 0xffffffff
jmp 0x4426bf
cmp eax, 1
jne 0x442569
mov eax, dword [edi + 0x424]
xor ecx, ecx
test eax, eax
mov dword [ebp - 0x47c], eax
mov edx, 5
cmove ecx, edx
push ecx
push dword [ebp - 0xc54]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0xd30]
call fcn.004409e0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0xcd4]
push 1
push eax
call esi
cmp dword [ebp - 0xcd0], 1
jne 0x4425b7
push 0
lea eax, [ebp - 0xcd0]
push eax
call esi
mov ecx, dword [ebp - 0xcb4]
test ecx, ecx
je 0x4425aa
call fcn.004182f0
jmp 0x4425b0
mov eax, dword [ebp - 0xcbc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x5d1ec8]
add eax, 0x10
mov dword [ebp - 0x220], eax
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [0x5d59ac]
xor esi, esi
mov edx, dword [edi + 8]
test edx, edx
jle 0x4426a9
mov ecx, dword [edi]
cmp dword [ecx], eax
je 0x442615
inc esi
add ecx, 4
cmp esi, edx
jl 0x4425f2
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xcc4]
jmp 0x4426bf
cmp esi, 0xffffffff
je 0x4426a9
test esi, esi
js 0x4426a9
cmp esi, edx
jge 0x4426a9
lea eax, [edx - 1]
cmp esi, eax
je 0x44266a
mov eax, dword [edi]
sub edx, esi
shl edx, 2
lea ecx, [eax + esi*4]
lea eax, [edx - 4]
push eax
lea eax, [ecx + 4]
push eax
push edx
push ecx
call fcn.004139b0
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
sub edx, esi
shl edx, 2
lea ecx, [eax + esi*4]
lea eax, [edx - 4]
push eax
lea eax, [ecx + 4]
push eax
push edx
push ecx
call fcn.004139b0
add esp, 0x20
mov eax, dword [edi + 8]
push 4
dec eax
push eax
push dword [edi]
call fcn.004e2ce9
add esp, 0xc
test eax, eax
jne 0x442685
cmp dword [edi + 8], 1
jne 0x442687
mov dword [edi], eax
mov eax, dword [edi + 8]
push 4
dec eax
push eax
push dword [edi + 4]
call fcn.004e2ce9
add esp, 0xc
test eax, eax
jne 0x4426a3
cmp dword [edi + 8], 1
jne 0x4426a6
mov dword [edi + 4], eax
dec dword [edi + 8]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xcc4]
jmp 0x4426bf
xor esi, esi
push dword [ebp - 0xcec]
lea ecx, [ebp - 0xcbc]
mov dword [ebp - method.UpWorkerThread.virtual_0], vtable.UpWorkerThread.0
call fcn.00442a40
push ecx
lea ecx, [ebp - 0xcbc]
call fcn.0043d7c0
lea ecx, [ebp - 0xcbc]
call fcn.0043db70
mov ecx, dword [ebp - 0xce0]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ecx - 0xc]
cmp eax, 0x5c6ad4
je 0x442723
lea eax, [ecx - 0xc]
push eax
call edi
test eax, eax
jg 0x442723
mov eax, dword [ebp - 0xce0]
add eax, 0xfffffff4
push eax
call fcn.004d71b8
add esp, 4
mov ecx, dword [ebp - 0xce4]
lea eax, [ecx - 0xc]
cmp eax, 0x5c6ad4
je 0x44274f
lea eax, [ecx - 0xc]
push eax
call edi
test eax, eax
jg 0x44274f
mov eax, dword [ebp - 0xce4]
add eax, 0xfffffff4
push eax
call fcn.004d71b8
add esp, 4
lea ecx, [ebp - 0xc58]
call fcn.004166d0
mov eax, dword [ebp - 0xd20]
test eax, eax
je 0x442777
push eax
call fcn.004e1b56
add esp, 4
mov dword [ebp - 0xd20], 0
mov eax, dword [ebp - 0xd2c]
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd18], 0
test eax, eax
je 0x44279e
push eax
call fcn.004e1b56
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret