Function at 0x10038bb1
Capabilities:
Check for time delay via gettickcount
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x100a609c]
xor eax, esp
mov dword [esp + 0x128], eax
cmp dword [0x103c3d0c], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x10038c02
cmp dword [0x1035ff10], 1
jne 0x10038c02
mov eax, dword [0x307809c]
and dword [0x1035ff10], 0
mov dword [eax + 0x1d20], 0xffff
call fcn.100697b8
jmp 0x10038f1c
xor edi, edi
cmp dword [0x103c88b8], 1
jne 0x10038cb8
push dword [0x103c88bc]
call fcn.10038f5c
mov esi, eax
pop ecx
mov dword [0x103c2494], esi
cmp esi, edi
je 0x10038cb8
fld dword [esi]
call fcn.100840a0
fld dword [esi + 8]
mov dword [0x103c2498], eax
call fcn.100840a0
mov dword [0x103c249c], eax
mov eax, dword [esi + 0x20]
mov dword [0x103c24a0], eax
mov eax, dword [0x10114474]
push fcn.10039b97
push 0x12c
add eax, 0x46
push eax
push dword [0x100dfd8c]
call dword [sym.imp.USER32.dll_SetTimer]
push edi
push edi
push edi
push edi
mov dword [0x10112c04], edi
mov dword [0x10112bfc], edi
mov dword [0x10112788], 1
mov dword [0x1035ff78], edi
mov dword [0x1035ff7c], edi
mov dword [0x1035ff80], edi
mov dword [0x101127c4], 4
call fcn.10039b97
push 0x100988cc
call fcn.100060db
pop ecx
jmp 0x10038f1c
cmp ebx, edi
jne 0x10038dfe
cmp dword [0x103c3de4], 1
jne 0x10038ccf
mov dword [0x103c0bb8], edi
cmp dword [0x103c3dec], 1
jne 0x10038f12
cmp dword [0x103c3d10], 1
jne 0x10038f12
cmp dword [0x10112c04], edi
jle 0x10038f12
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
sub eax, dword [0x1035fd5c]
cmp eax, 7
jb 0x10038f12
push 0x138a
push dword [0x103c3c98]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xff
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov esi, dword [0x101127c4]
pop ecx
push 4
pop ebx
push 1
mov dword [0x1035fde8], eax
mov dword [0x1035fdf4], edi
mov dword [0x101127c4], ebx
call fcn.100384dc
pop ecx
mov dword [0x101127c4], esi
cmp eax, edi
jne 0x10038d7c
mov eax, dword [0x1035fe70]
mov dword [0x1035fde8], eax
jmp 0x10038f1c
mov eax, dword [0x307809c]
mov eax, dword [eax + 0x2a60]
cmp eax, 5
je 0x10038da1
cmp eax, ebx
je 0x10038da1
cmp eax, 7
je 0x10038da1
mov dword [0x1035fe74], 0x32
jmp 0x10038dae
mov eax, dword [0x1035fe70]
add eax, 0xfffffff6
mov dword [0x1035fe74], eax
mov eax, dword [0x10114474]
push 0x1003951f
push 0x12c
add eax, 0x46
push eax
push dword [0x100dfd8c]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x100988d8
mov dword [0x10112c04], edi
mov dword [0x10112bfc], edi
mov dword [0x10112788], 1
mov dword [0x1035fe78], edi
mov dword [0x101127c4], ebx
call fcn.100060db
jmp 0x10038f11
push ebx
call fcn.1003a32b
cmp dword [0x103c3de4], 1
pop ecx
jne 0x10038e20
mov eax, dword [0x103c0bb8]
mov dword [eax*4 + 0x103c0a28], ebx
inc dword [0x103c0bb8]
mov eax, dword [ebx*4 + 0x30780a0]
push dword [eax + 0xc]
add eax, 0x360
push eax
push 0x100988e4
mov esi, 0x10112128
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
push esi
call fcn.100060db
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0x2710
mov dword [0x1012fcfc], eax
call fcn.10038b91
cmp dword [0x103c54d0], 1
jne 0x10038edf
xor ebx, ebx
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.10006348
mov eax, esi
mov esi, dword [sym.imp.MSVCR100.dll_strcmp]
push 0x100988f8
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x10038ea5
lea eax, [esp + 0x10]
push 0x10098904
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x10038ea5
inc ebx
cmp ebx, 0x14
jl 0x10038e6a
jmp 0x10038f12
cmp dword [esp + 0x28], edi
jne 0x10038eb3
push ebx
call fcn.1003a5c2
jmp 0x10038f11
mov eax, dword [0x305b214]
mov esi, dword [eax + ebx*4 + 0x53c]
mov dword [esi + 0x354], edi
mov ecx, dword [0x103c54d8]
push 0x37
dec ecx
call fcn.1003a960
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x354], eax
jmp 0x10038f11
cmp dword [0x1035ff58], edi
jne 0x10038f03
mov eax, dword [0x305b214]
mov ecx, dword [0x103c54d8]
mov eax, dword [eax + ecx*4 + 0x538]
cmp eax, edi
je 0x10038f03
mov dword [eax + 0x354], edi
mov ecx, dword [0x103c54d8]
push 0x37
dec ecx
call fcn.1003a960
pop ecx
mov dword [0x10112788], 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008344f
mov esp, ebp
pop ebp
ret