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

Disassembly:
sub esp, 0x20
mov eax, dword [0x10017f78]
mov ecx, dword [eax + 0x1c]
push ebx
push ebp
xor ebp, ebp
mov word [ecx + 0x48], bp
mov edx, dword [0x10017f78]
mov eax, dword [edx + 0x1c]
mov word [eax + 0x3c], bp
mov ecx, dword [0x10017f78]
mov eax, dword [ecx + 0x1c]
mov dx, word [eax + 0x14]
dec dx
mov word [eax + 0x4a], dx
mov eax, dword [0x10017f78]
mov eax, dword [eax + 0x1c]
mov cx, word [eax + 0x4a]
mov word [eax + 0x3e], cx
mov eax, dword [0x10017f78]
mov ecx, dword [eax + 0x1c]
mov dl, byte [ecx + 0x5c]
test dl, dl
push esi
push edi
mov dword [esp + 0x28], ebp
jne 0x10005247
cmp word [ecx + 0x104], bp
je 0x10005247
cmp word [ecx + 0x106], bp
jne 0x1000521c
cmp word [ecx + 0x108], bp
jne 0x1000521c
cmp word [ecx + 0x10a], bp
je 0x10005247
mov eax, dword [eax + 0x1c]
xor edx, edx
mov dx, word [eax + 0x10a]
add dx, word [eax + 0x108]
add dx, word [eax + 0x106]
add dx, word [eax + 0x104]
dec edx
mov word [eax + 0x3e], dx
mov eax, dword [0x10017f78]
mov ecx, dword [eax + 0x1c]
mov dl, byte [ecx + 0x5c]
test dl, dl
jne 0x100052a0
cmp word [ecx + 0x10e], bp
je 0x100052a0
cmp word [ecx + 0x110], bp
jne 0x10005275
cmp word [ecx + 0x112], bp
jne 0x10005275
cmp word [ecx + 0x114], bp
je 0x100052a0
mov eax, dword [eax + 0x1c]
xor ecx, ecx
mov cx, word [eax + 0x114]
add cx, word [eax + 0x112]
add cx, word [eax + 0x110]
add cx, word [eax + 0x10e]
dec ecx
mov word [eax + 0x4a], cx
mov eax, dword [0x10017f78]
mov eax, dword [eax + 0x1c]
mov dx, word [0x100184fc]
xor edi, edi
mov di, word [eax + 0x3e]
sub di, word [eax + 0x3c]
mov word [eax + 0x36], dx
mov eax, dword [0x10017f78]
mov ecx, dword [eax + 0x1c]
mov dx, word [0x10018504]
mov word [ecx + 0x3a], dx
mov eax, dword [0x10017f78]
mov eax, dword [eax + 0x1c]
movsx edx, word [eax + 0x36]
movsx ecx, word [eax + 0x3a]
sub ecx, edx
inc edi
movsx edx, di
imul ecx, edx
mov dword [eax + 0x50], ecx
mov eax, dword [0x10017f78]
mov eax, dword [eax + 0x1c]
mov cx, word [eax + 0x18]
mov word [eax + 0x42], cx
mov edx, dword [0x10017f78]
mov eax, dword [edx + 0x1c]
mov cx, word [eax + 0x1c]
mov word [eax + 0x46], cx
mov edx, dword [0x10017f78]
mov eax, dword [edx + 0x1c]
mov cx, word [eax + 0x16]
mov word [eax + 0x40], cx
mov edx, dword [0x10017f78]
mov eax, dword [edx + 0x1c]
mov cx, word [eax + 0x40]
mov word [eax + 0x44], cx
movsx ebx, word [0x100184d0]
imul ebx, dword [0x100184e8]
mov edx, dword [0x10018518]
mov eax, dword [0x1001851c]
mov ecx, dword [0x10017f78]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x1c]
movsx ecx, word [edx + 0x80]
mov dword [esp + 0x20], eax
mov eax, ebx
cdq
idiv dword [ecx*4 + 0x1001704c]
mov esi, dword [0x100184f8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
cmp esi, dword [0x10018500]
jl 0x10005395
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x24]
xor ebp, ebp
call fcn.10001690
cmp eax, dword [esp + 0x28]
jle 0x100053dc
call fcn.10001690
add eax, 0xa
mov dword [esp + 0x28], eax
mov al, byte [0x10017f6f]
test al, al
jne 0x100053c4
push ebp
call fcn.10004c30
mov byte [0x10017f6f], 1
jmp 0x100053d9
push reloc.USER32.dll_SetCursor
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call fcn.10004c30
mov byte [0x10017f6f], 0
add esp, 4
mov edx, dword [0x10017f78]
mov eax, dword [edx + 0x1c]
mov word [eax + 0x34], si
mov edx, dword [0x10017f78]
mov ecx, dword [0x100184ec]
mov eax, dword [edx + 0x1c]
add ecx, esi
mov word [eax + 0x38], cx
mov ecx, dword [0x10017f78]
mov edx, dword [ecx + 0x1c]
call dword [edx + 0xe0]
mov ecx, dword [0x10017f78]
mov word [ecx], ax
mov eax, dword [0x10017f78]
cmp word [eax], bp
jne 0x1000562b
mov eax, dword [eax + 0x1c]
movsx edx, word [eax + 0x80]
mov ecx, dword [edx*4 + 0x1001704c]
mov edx, dword [0x100184ec]
movsx esi, word [0x100184d0]
mov ebp, dword [eax + 0x4c]
mov eax, dword [eax + 0x50]
push edi
push ecx
mov ecx, dword [0x100184e8]
push ecx
push edx
push esi
push eax
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push ebp
call fcn.10002a60
mov eax, dword [0x10018520]
add esp, 0x2c
test eax, eax
je 0x10005508
mov al, byte [0x10017046]
test al, al
je 0x10005508
mov eax, dword [0x10017f78]
mov ecx, dword [eax + 0x1c]
xor esi, esi
cmp word [ecx + 0x108], si
jle 0x1000550d
movsx ecx, word [esp + 0x10]
imul ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x1c]
movsx edx, word [eax + 0x80]
mov ecx, dword [edx*4 + 0x1001704c]
mov edx, dword [0x100184ec]
movsx ebx, word [0x100184d0]
mov eax, dword [eax + 0x50]
push edi
push ecx
mov ecx, dword [0x100184e8]
push ecx
push edx
push ebx
mov ebx, dword [esp + 0x28]
push eax
push edx
mov edx, dword [0x10018520]
push ecx
movsx ecx, si
mov eax, dword [edx + ecx*4]
push esi
add eax, ebx
push eax
push ebp
call fcn.10002cd0
mov eax, dword [0x10017f78]
mov ecx, dword [eax + 0x1c]
add esp, 0x2c
inc esi
cmp si, word [ecx + 0x108]
jl 0x100054a4
mov ebx, dword [esp + 0x2c]
jmp 0x1000550d
mov eax, dword [0x10017f78]
mov ecx, dword [0x10018524]
test ecx, ecx
je 0x100055c0
mov cl, byte [0x10017047]
test cl, cl
je 0x100055c0
mov ecx, dword [eax + 0x1c]
xor esi, esi
cmp word [ecx + 0x10a], si
jle 0x100055c0
movsx edx, word [esp + 0x10]
imul edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
lea esp, [esp]
mov eax, dword [eax + 0x1c]
movsx edx, word [eax + 0x80]
mov edx, dword [edx*4 + 0x1001704c]
mov ebx, dword [0x100184ec]
movsx ecx, word [ecx + 0x108]
mov eax, dword [eax + 0x50]
push edi
push edx
mov edx, dword [0x100184e8]
push edx
push ebx
movsx ebx, word [0x100184d0]
push ebx
mov ebx, dword [esp + 0x28]
push eax
mov eax, dword [0x100184ec]
push eax
mov eax, dword [0x10018524]
add cx, si
push edx
movsx edx, si
push ecx
mov ecx, dword [eax + edx*4]
add ecx, ebx
push ecx
push ebp
call fcn.10002cd0
mov eax, dword [0x10017f78]
mov ecx, dword [eax + 0x1c]
add esp, 0x2c
inc esi
cmp si, word [ecx + 0x10a]
jl 0x10005550
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
mov cl, byte [eax + 0x5c]
add edx, ebx
test cl, cl
mov dword [esp + 0x18], edx
jne 0x100055f8
cmp word [eax + 0x104], 0
je 0x100055f8
cmp word [eax + 0x106], 0
je 0x100055f8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100055f8
add eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov esi, dword [0x100184ec]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x10018500]
add eax, esi
inc edx
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jl 0x1000538f
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x20
ret
mov ax, word [eax]
cmp ax, 0xff80
je 0x1000565e
cmp ax, 0xff94
jne 0x1000564c
pop edi
pop esi
pop ebp
mov byte [0x10017f6d], 1
xor ax, ax
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov byte [reloc.GDI32.dll_MoveToEx], 1
xor ax, ax
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x34]
push ebp
push ebp
push 0x111
push 2
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop edi
pop esi
pop ebp
or ax, 0xffff
pop ebx
add esp, 0x20
ret