Function at 0x423c10
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x48]
movsx ecx, word [ebx + 0x22]
movsx eax, word [ebx + 0x20]
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x58]
sub ebp, ecx
sub esi, eax
push edi
push ebp
lea edx, [ebx + 0x14]
push esi
push edx
push ebx
call fcn.00424630
movsx eax, word [ebx + 0x20]
movsx ecx, word [ebx + 0x22]
add esi, eax
xor eax, eax
add esp, 0x14
add ebp, ecx
cmp word [ebx + 0x36], ax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x14], eax
jbe 0x423f9c
mov edx, dword [ebx + 0x3c]
and eax, 0xffff
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp + 0x20], eax
add eax, edx
mov edx, dword [esp + 0x54]
mov ecx, dword [eax]
cmp edx, ecx
jb 0x423f89
mov esi, dword [eax + 4]
add esi, ecx
cmp edx, esi
jae 0x423f89
mov eax, dword [eax + 8]
mov ebp, edx
sub ebp, ecx
push eax
mov dword [esp + 0x1c], ebp
call fcn.0042c8a0
mov esi, eax
test esi, esi
je 0x423f89
jmp 0x423cb7
mov ebp, dword [esp + 0x18]
cmp ebp, dword [esi + 4]
jb 0x423f6e
movsx eax, word [esi]
dec eax
je 0x423e22
dec eax
je 0x423e08
dec eax
jne 0x423f6e
mov eax, dword [esi + 0x3c]
mov ebp, dword [ebx + 0xc]
mov edx, eax
mov ecx, eax
and eax, 0xff
and ecx, 0xff
shr eax, 2
shr ecx, 1
push 0
and edx, 0xff
and eax, 1
push ebp
and ecx, 1
push 0
and edx, 1
push eax
mov eax, dword [ebx + 8]
push ecx
mov ecx, dword [esi + 0x44]
push edx
lea edx, [esi + 0x1c]
push ecx
push edx
push eax
call fcn.0040e940
push edi
mov ebp, eax
call dword [sym.imp.GDI32.dll_SaveDC]
push ebp
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x10]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
movsx eax, word [esi + 8]
mov ecx, dword [esp + 0x4c]
movsx edx, word [esi + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
lea eax, [edx + eax + 1]
movsx edx, word [esi + 0xe]
mov dword [esp + 0x3c], eax
lea eax, [edx + ecx + 1]
mov dword [esp + 0x40], eax
mov al, byte [esi + 0x40]
test al, 1
je 0x423d9e
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
lea edx, [esp + 0x34]
push eax
push edx
push edi
mov dword [esp + 0x64], eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x40]
test ah, 1
je 0x423db4
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.00425390
add esp, 8
mov ecx, dword [esi + 0x40]
xor eax, eax
test cl, 0x20
je 0x423dc3
mov eax, 1
test cl, 0x40
je 0x423dcd
mov eax, 2
or eax, 0x810
lea edx, [esp + 0x34]
push eax
mov eax, dword [esi + 0x48]
push edx
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
test ebp, ebp
je 0x423f6e
mov edx, dword [ebx + 8]
push ebp
push edx
call fcn.0040eaf0
jmp 0x423f6e
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push edi
push eax
push ecx
push esi
push ebx
call fcn.00424630
add esp, 0x14
jmp 0x423f6e
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x423f6e
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x423f67
movsx edx, word [esi + 0xc]
mov ebp, dword [esp + 0x4c]
movsx eax, word [esi + 0xe]
add edx, ebp
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x50]
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x423e76
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423e76
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
sub ebp, ecx
sub ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, ebp
cdq
xor eax, edx
mov dword [esp + 0x1c], ecx
sub eax, edx
cmp eax, 0x64
jg 0x423ec1
mov eax, ebx
mov dword [esp + 0x58], 0x190
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x64
jle 0x423ec9
mov dword [esp + 0x58], 0x320
mov edx, dword [esp + 0x58]
add edx, ecx
mov dword [esp + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x10]
jae 0x423f53
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov dword [esp + 0x1c], ecx
jmp 0x423ef6
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*4]
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
sub eax, ecx
div dword [esp + 0x58]
mov ecx, eax
mov eax, 0x51eb851f
mov edx, ecx
imul ecx, ebp
imul edx, ebx
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, 0x51eb851f
push edx
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x30]
add edx, ecx
push edx
call dword [sym.imp.USER32.dll_SetCursorPos]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x10]
jb 0x423ef2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
mov ebx, dword [esp + 0x48]
mov dword [esi + 0x10], 1
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + edx + 8]
push eax
call fcn.0042c8e0
mov esi, eax
test esi, esi
jne 0x423cb3
mov eax, dword [esp + 0x14]
inc eax
cmp ax, word [ebx + 0x36]
mov dword [esp + 0x14], eax
jb 0x423c67
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 0x18