Function at 0x10139270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
jl 0x10139511
mov esi, dword [ebp + 0x1c]
cmp dword [esi + 0x2c], 1
jl 0x101394f7
cmp dword [esi + 0x12c], 1
jl 0x101394f7
cmp dword [esi + 0x1ac], 0
jne 0x10139385
mov edi, dword [esi + 0x1bc]
test edi, edi
je 0x1013932a
cmp byte [edi + 0x10], 0
jne 0x10139320
cmp dword [edi + 4], edi
jne 0x10139320
mov ebx, dword [edi + 8]
mov byte [edi + 0x10], 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test ebx, ebx
je 0x101392f4
push 0xea60
push 0xea60
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
push dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call eax
push 0
push 0
push edi
push 0x101075e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1bc], 0
push dword [esi + 0x1dc]
push dword [esi + 0x1d8]
push dword [esi + 0x1d4]
push dword [esi + 0x1d0]
push esi
call sym.ExuiKrnln_X32.dll_ControlAddRedrawRect
cmp dword [esi + 0x2c], 1
jl 0x10139511
cmp dword [esi + 0xe4], 0
jle 0x10139369
inc dword [esi + 0xe0]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
or dword [esi + 0xd0], 1
push 1
push 0x1018a5b4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
xor ebx, ebx
xor edx, edx
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [esi + 0x128]
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x28], 0xff
jne 0x101393a5
inc ebx
jmp 0x101393ce
movsx eax, word [esi + 0x1ac]
add dword [edi + 0x28], eax
mov eax, dword [esi + 0x128]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x28], 0xfe
jle 0x101393c9
mov dword [eax + 0x28], 0xff
inc ebx
mov edx, 1
inc ecx
cmp ecx, dword [esi + 0x12c]
jl 0x10139390
test edx, edx
je 0x10139424
push dword [esi + 0x1dc]
push dword [esi + 0x1d8]
push dword [esi + 0x1d4]
push dword [esi + 0x1d0]
push esi
call sym.ExuiKrnln_X32.dll_ControlAddRedrawRect
cmp dword [esi + 0x2c], 1
jl 0x10139424
cmp dword [esi + 0xe4], 0
jle 0x10139410
inc dword [esi + 0xe0]
jmp 0x10139424
or dword [esi + 0xd0], 1
push 1
push 0x1018a5b4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, dword [esi + 0x1bc]
cmp ebx, dword [esi + 0x12c]
jge 0x10139467
test edi, edi
jne 0x10139511
movsx eax, word [esi + 0x1ae]
mov ecx, 0x21
push edi
push edi
test eax, eax
push esi
cmove eax, ecx
push fcn.10139270
push eax
call sym.ExuiKrnln_X32.dll_CreateTimerEx
mov dword [esi + 0x1bc], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
test edi, edi
je 0x10139511
cmp byte [edi + 0x10], 0
jne 0x10139507
cmp dword [edi + 4], edi
jne 0x10139507
mov ebx, dword [edi + 8]
mov byte [edi + 0x10], 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test ebx, ebx
je 0x101394b9
push 0xea60
push 0xea60
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
push dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call eax
push 0
push 0
push edi
push 0x101075e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1bc], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [esi + 0x1bc]
test eax, eax
je 0x10139511
push eax
call sym.ExuiKrnln_X32.dll_DeleteTimerEx
mov dword [esi + 0x1bc], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18