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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1f
push 0
push 0
dec ecx
jne 0x659f48
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65ac58
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xbbe], 0
je 0x659f92
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4828], 0
jne 0x659f92
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb9c], 0xffffffff
jne 0x659f9f
mov eax, dword [ebp - 4]
call fcn.00663bf0
jmp 0x65ac10
xor eax, eax
push ebp
push 0x65a081
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x2c], 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x659fee
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov edx, dword [ebp - 8]
call fcn.0041fbf0
xor edx, edx
mov dword [eax + 0x10], edx
inc dword [ebp - 8]
dec dword [ebp - 0x30]
jne 0x659fd0
mov dword [ebp - 0x2c], 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x65a02f
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov edx, dword [ebp - 8]
call fcn.0041fbf0
xor edx, edx
mov dword [eax + 4], edx
inc dword [ebp - 8]
dec dword [ebp - 0x30]
jne 0x65a011
mov dword [ebp - 0x2c], 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x414]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x65a070
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x414]
mov edx, dword [ebp - 8]
call fcn.0041fbf0
xor edx, edx
mov dword [eax + 4], edx
inc dword [ebp - 8]
dec dword [ebp - 0x30]
jne 0x65a052
mov dword [ebp - 0x2c], 5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65a0c3
mov dword [ebp - 0x2c], 6
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x24]
mov edx, ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1b0]
sub edx, eax
add ecx, eax
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x28]
mov esi, ebx
sub esi, eax
mov dword [ebp - 0xc], esi
add ebx, eax
mov dword [ebp - 0x10], ebx
xor eax, eax
push ebp
push 0x65a561
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x2c], 7
sub ecx, edx
jl 0x65a554
inc ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub edx, eax
jl 0x65a548
inc edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 9
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e0]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00673738
test al, al
je 0x65a53c
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x65a53c
mov dword [ebp - 0x2c], 0xa
mov dword [ebp - 0x1c], 1
xor esi, esi
mov dword [ebp - 0x2c], 0xb
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x65a1a1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0
jg 0x65a1a1
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.004114f8
jmp 0x65a53c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
jge 0x65a53c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041fbf0
mov ebx, eax
mov dword [ebp - 0x2c], 0xc
test ebx, ebx
je 0x65a536
mov dword [ebp - 0x2c], 0xd
cmp byte [ebx], 1
jne 0x65a376
mov dword [ebp - 0x2c], 0xe
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 5]
cmp eax, 0x2bf20
jb 0x65a22d
mov edx, 0xa
mov eax, ebx
call fcn.00402fb0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041fa94
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0
jg 0x65a175
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.004114f8
jmp 0x65a53c
mov dword [ebp - 0x2c], 0xf
mov edi, dword [ebx + 1]
test edi, edi
je 0x65a536
cmp edi, dword [ebp - 4]
jne 0x65a2ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
cmp eax, dword [ebp - 0x14]
jne 0x65a272
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp eax, dword [ebp - 0x18]
jne 0x65a272
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 5], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x3cc], eax
jmp 0x65a2ab
mov edx, 0xa
mov eax, ebx
call fcn.00402fb0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041fa94
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0
jg 0x65a175
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.004114f8
jmp 0x65a53c
mov dword [ebp - 0x2c], 0x10
cmp byte [edi + 0x2e4], 0
jne 0x65a536
cmp byte [edi + 0x2a5], 0
jne 0x65a536
cmp byte [edi + 0x31f], 0
jne 0x65a536
cmp byte [edi + 0xbbe], 0
je 0x65a536
mov dword [ebp - 0x2c], 0x11
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0x32
jb 0x65a359
mov eax, dword [ebp - 4]
cmp dword [eax + 0x278], 0
jne 0x65a359
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c0], 0
jne 0x65a359
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 0
jne 0x65a359
cmp dword [edi + 0x278], 0
je 0x65a34c
mov eax, dword [edi + 0x24]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x65a34c
mov eax, dword [edi + 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x28]
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jle 0x65a359
cmp byte [edi + 0x22a], 0
jne 0x65a536
mov dword [ebp - 0x2c], 0x12
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.006639e4
mov dword [ebp - 0x2c], 0x13
jmp 0x65a536
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0
jne 0x65a536
mov dword [ebp - 0x2c], 0x14
test ebx, ebx
je 0x65a4f0
cmp byte [ebx], 2
jne 0x65a4f0
mov dword [ebp - 0x2c], 0x15
mov eax, dword [ebx + 1]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2e0]
movzx edx, byte [edx + 0x118]
cmp eax, edx
jne 0x65a3d8
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 5]
mov edx, dword [select]
cmp eax, dword [edx + 0x1ab4]
jbe 0x65a41f
mov eax, dword [ebx + 1]
mov edx, dword [0x48b59c]
call fcn.00406490
mov edx, 0xa
mov eax, ebx
call fcn.00402fb0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.0041fa94
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0
jg 0x65a175
mov eax, dword [ebp - 0x20]
add eax, 4
call fcn.004114f8
jmp 0x65a53c
mov eax, dword [ebx + 1]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0x1c
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00663a80
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xc], 0
jne 0x65a454
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
je 0x65a4f0
mov dword [ebp - 0x2c], 0x1d
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0x14]
mov edx, dword [select]
cmp eax, dword [edx + 0x1ab8]
jbe 0x65a48d
mov dword [ebp - 0x2c], 0x1e
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0x10], edx
jmp 0x65a4f0
mov dword [ebp - 0x2c], 0x1f
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xc], 0
je 0x65a4bb
mov dword [ebp - 0x2c], 0x20
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x2e4], 0
je 0x65a4bb
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0xc], edx
mov dword [ebp - 0x2c], 0x21
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
je 0x65a4e9
mov dword [ebp - 0x2c], 0x22
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
cmp byte [eax + 0x2e4], 0
je 0x65a4e9
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0x10], edx
mov dword [ebp - 0x2c], 0x23
mov dword [ebp - 0x2c], 0x24
test ebx, ebx
je 0x65a536
cmp byte [ebx], 3
jne 0x65a536
mov dword [ebp - 0x2c], 0x25
mov eax, dword [ebx + 1]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x3c], 0
je 0x65a52f
mov dword [ebp - 0x2c], 0x26
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00663b40
mov dword [ebp - 0x2c], 0x27
inc esi
jmp 0x65a175
inc dword [ebp - 0x18]
dec dword [ebp - 0x34]
jne 0x65a131
inc dword [ebp - 0x14]
dec dword [ebp - 0x30]
jne 0x65a115
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65a5fc
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x1c], 2
xor edx, edx
push ebp
push 0x65a89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x414]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 0x14]
jle 0x65a891
mov dword [ebp - 0x2c], 0x29
mov eax, esi
mov edx, dword [ebp - 0x14]
call fcn.0041fbf0
mov ebx, eax
mov dword [ebp - 0x2c], 0x2a
mov dword [ebp - 0x2c], 0x2b
cmp dword [ebx + 4], 0
jne 0x65a6d4
mov edi, dword [ebx]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0
jne 0x65a694
mov dword [ebp - 0x2c], 0x2c
mov dword [ebp - 0x2c], 0x2d
push 0
push 0
push 0
push 0
push 0
mov cx, 0xa0
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00662c2c
mov dword [ebp - 0x2c], 0x2f
test edi, edi
je 0x65a6a4
cmp byte [ebx + 8], 0
je 0x65a6a4
dec dword [edi + 0x40c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x414]
mov edx, dword [ebp - 0x14]
call fcn.0041fa94
mov dword [ebp - 0x2c], 0x30
mov edx, 9
mov eax, ebx
call fcn.00402fb0
mov dword [ebp - 0x2c], 0x31
jmp 0x65a61d
mov dword [ebp - 0x2c], 0x32
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22a], 0
jne 0x65a889
cmp dword [ebx + 4], 2
jne 0x65a889
mov dword [ebp - 0x2c], 0x33
mov edi, dword [ebx]
mov dword [ebp - 0x2c], 0x34
test edi, edi
je 0x65a889
cmp edi, dword [ebp - 4]
je 0x65a889
mov dword [ebp - 0x2c], 0x35
cmp byte [edi + 0x2ec], 0
je 0x65a79a
mov dword [ebp - 0x2c], 0x36
cmp byte [edi + 0x2a9], 0
je 0x65a768
mov dword [ebp - 0x2c], 0x37
movzx eax, byte [edi + 0x2c]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edi + 0x28]
push eax
push 0
push 0
mov cx, 0xbb
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00662c2c
mov dword [ebp - 0x2c], 0x38
jmp 0x65a889
mov dword [ebp - 0x2c], 0x39
movzx eax, byte [edi + 0x2c]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edi + 0x28]
push eax
push 0
push 0
mov cx, 0x9f
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00662c2c
mov dword [ebp - 0x2c], 0x3a
jmp 0x65a889
mov dword [ebp - 0x2c], 0x3b
movzx eax, byte [edi + 0x2c]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edi + 0x28]
push eax
push 0
lea edx, [ebp - 0x80]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x80]
push eax
mov cx, 0x97
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00662c2c
cmp byte [edi + 0x22a], 0
jne 0x65a844
mov dword [ebp - 0x2c], 0x3d
cmp byte [edi + 0x369c], 0
je 0x65a882
push edi
movzx eax, byte [edi + 0x369d]
inc eax
movzx eax, al
movzx edx, byte [edi + 0x369e]
movzx edx, dl
shl edx, 8
or ax, dx
push eax
push 0
push 1
lea eax, [ebp - 0x88]
lea edx, [edi + 0x38a0]
call fcn.004055f8
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.00499a00
mov eax, dword [ebp - 0x84]
push eax
mov cx, 0x14a4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.00662ab4
jmp 0x65a882
cmp byte [edi + 0x22a], 0xa
jne 0x65a882
cmp dword [edi + 0xc3c], 0xffffffff
je 0x65a882
push edi
movzx eax, word [edi + 0xc3c]
push eax
mov eax, dword [edi + 0xc3c]
shr eax, 0x10
push eax
movzx eax, word [edi + 0xc40]
push eax
push 0
mov cx, 0x14d1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.0066293c
mov dword [ebp - 0x2c], 0x3c
inc dword [ebp - 0x14]
jmp 0x65a61d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65a93b
xor eax, eax
push ebp
push 0x65ab11
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x3e4]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jle 0x65aa23
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.0041fbf0
mov ebx, eax
mov dword [ebp - 0x2c], 0x64
mov dword [ebp - 0x2c], 0x65
cmp dword [ebx + 0x10], 0
jne 0x65a9ea
push 0
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x18]
push eax
push 0
mov cx, 0xb4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.00662c2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov edx, dword [ebp - 8]
call fcn.0041fa94
xor eax, eax
push ebp
push 0x65a9db
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x48b5bc]
mov eax, ebx
call fcn.00406490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65a94e
mov dword [ebp - 0x2c], 0x66
cmp dword [ebx + 0x10], 2
jne 0x65aa1b
movzx eax, word [ebx + 0x20]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov cx, 0xb3
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.00662c2c
inc dword [ebp - 8]
jmp 0x65a94e
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3e8]
mov eax, dword [ebx + 8]
cmp eax, dword [ebp - 8]
jle 0x65ab04
mov dword [ebp - 0x2c], 0x67
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0041fbf0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x68
mov dword [ebp - 0x2c], 0x69
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
jne 0x65aaa2
mov eax, dword [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0xc]
push eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0x10]
push eax
push 0
mov cx, 0x1447
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.0066293c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov edx, dword [ebp - 8]
call fcn.0041fa94
jmp 0x65aa28
mov dword [ebp - 0x2c], 0x6a
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 2
jne 0x65aaf5
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0x14]
push eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0xc]
push eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0x10]
push eax
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
call fcn.0040a784
mov eax, dword [ebp - 0x94]
push eax
mov cx, 0x1446
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
call fcn.0066293c
mov dword [ebp - 0x2c], 0x6b
inc dword [ebp - 8]
jmp 0x65aa28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65ac10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65ac5f
lea eax, [ebp - 0xfc]
mov edx, 3
call fcn.004053b8
lea eax, [ebp - 0x9c]
mov edx, 8
call fcn.004053b8
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004053b8
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004053b8
ret