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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov byte [ebp - 0xd], cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x11c]
test al, al
je 0x5760dd
mov eax, dword [esi]
cmp byte [eax + 0x3f0], 0
je 0x5760dd
mov byte [ebp - 0x41], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x598]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x576046
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x598]
mov edx, dword [ebp - 0x14]
call fcn.0041bc38
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
cmp byte [ebx + 0x30], 0
je 0x57603a
cmp byte [ebx + 0x10], 0
je 0x57586b
mov byte [ebp - 0x41], 1
cmp byte [ebx + 0x10], 0
je 0x5758d0
mov eax, dword [esi]
cmp byte [eax + 0x4df], 0
jne 0x5758d0
mov eax, dword [esi]
cmp byte [eax + 0x651], 0
jne 0x5758d0
mov eax, dword [esi]
cmp byte [eax + 0x4e0], 0
jne 0x5758d0
mov eax, dword [ebp - 0xc]
mov edx, dword [0x437f38]
call fcn.0040421c
test al, al
je 0x5758d0
mov eax, dword [esi]
cmp byte [eax + 0x4e1], 0
jne 0x5758d0
mov eax, dword [esi]
cmp dword [eax + 0x4e4], 0
jge 0x5758d0
inc dword [ebx + 0x14]
cmp dword [ebx + 0x14], 0xa
jl 0x5758c8
xor eax, eax
mov dword [ebx + 0x14], eax
mov eax, dword [esi]
inc dword [eax + 0x27c]
lea edx, [ebp - 0x5c]
mov eax, dword [ebx + 0x1c]
call fcn.00429a6c
cmp dword [ebp - 0x5c], 0
jne 0x5758f3
cmp dword [ebp - 0x58], 0
jne 0x5758f3
cmp dword [ebp - 0x54], 0
jne 0x5758f3
cmp dword [ebp - 0x50], 0
je 0x5758f7
xor eax, eax
jmp 0x5758f9
mov al, 1
test al, al
jne 0x57603a
mov eax, dword [esi]
cmp dword [eax + 0x488], 0
jne 0x57603a
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x50], 0
je 0x575923
cmp byte [ebp - 0xd], 0
jne 0x57603a
mov eax, dword [esi]
cmp byte [eax + 0x586], 0
jne 0x57603a
cmp byte [ebx + 0x31], 0
je 0x575b58
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
call fcn.00579480
test al, al
je 0x575b58
mov eax, dword [esi]
cmp byte [eax + 0x4df], 0
jne 0x575b58
mov eax, dword [esi]
cmp dword [eax + 0x4e4], 0xffffffff
jne 0x575b58
push 1
push 1
mov ecx, dword [ebx + 0x1c]
mov dl, 1
mov eax, dword [0x552ed4]
call fcn.00553434
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov dl, byte [eax + 0x564]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
call fcn.00554448
mov eax, dword [esi]
mov edx, dword [eax + 0x560]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
call fcn.00554408
mov eax, dword [esi]
mov edx, dword [eax + 0x55c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
call fcn.005540d8
mov dword [ebp - 0x34], 0x989680
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], 0xfff0bdc0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 4]
dec eax
test eax, eax
jl 0x575a89
inc eax
mov dword [ebp - 0x4c], eax
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax + edi*8], 0xfffff
je 0x575a7f
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + edi*8]
call fcn.0057a888
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 + 4]
call fcn.0057a900
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x568]
mov edx, eax
add edx, dword [ebp - 0x1c]
push edx
mov edx, eax
add edx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x20]
sub edx, eax
push edx
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.005538f4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jge 0x575a55
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
jge 0x575a63
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x3c]
jle 0x575a71
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x40]
jle 0x575a7f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
inc edi
dec dword [ebp - 0x4c]
jne 0x5759e7
mov eax, dword [esi]
cmp byte [eax + 0x56d], 0
je 0x575b50
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
sar eax, 1
jns 0x575aa5
adc eax, 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x38]
sar eax, 1
jns 0x575ab5
adc eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x568]
mov edx, eax
add edx, dword [ebp - 0x1c]
push edx
mov edx, eax
add edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.005538f4
mov eax, dword [esi]
mov eax, dword [eax + 0x568]
mov edx, eax
add edx, dword [ebp - 0x34]
push edx
mov edx, eax
add edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov edx, dword [ebp - 0x34]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.005538f4
mov eax, dword [esi]
mov eax, dword [eax + 0x568]
mov edx, eax
add edx, dword [ebp - 0x3c]
push edx
mov edx, eax
add edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov edx, dword [ebp - 0x3c]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.005538f4
mov eax, dword [esi]
mov eax, dword [eax + 0x568]
mov edx, eax
add edx, dword [ebp - 0x1c]
push edx
mov edx, eax
add edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x40]
sub ecx, eax
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.005538f4
mov eax, dword [ebp - 8]
call fcn.00404084
mov eax, dword [esi]
mov eax, dword [eax + 0x518]
cmp eax, dword [ebp - 0x18]
jne 0x575cba
mov eax, dword [esi]
mov eax, dword [eax + 0x548]
call fcn.0061e220
test al, al
jne 0x575cba
mov eax, dword [esi]
cmp byte [eax + 0x4e1], 0
jne 0x575cba
mov eax, dword [esi]
cmp byte [eax + 0x4df], 0
jne 0x575cba
mov eax, dword [esi]
cmp byte [eax + 0x4e0], 0
jne 0x575cba
mov eax, dword [esi]
cmp byte [eax + 0x651], 0
jne 0x575cba
mov eax, dword [esi]
cmp byte [eax + 0x2ba], 0
jne 0x575cba
mov eax, dword [esi]
cmp byte [eax + 0x2a0], 0
je 0x575be3
mov eax, dword [esi]
cmp dword [eax + 0x438], 0
jne 0x57603a
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov eax, dword [esi]
call fcn.005799cc
add eax, 0xb8
mov edx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x1c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x27c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x554]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x558]
push edx
mov ecx, dword [eax]
mov eax, dword [esi]
mov eax, dword [eax + 0x548]
mov edx, dword [ebx + 0x1c]
call fcn.0061cf7c
call sub.kernel32.dll_GetTickCount
sub eax, edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 0x2f0], 0
jge 0x57603a
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x575c6e
mov eax, dword [esi]
cmp dword [eax + 0x190], 0
je 0x57603a
mov eax, dword [esi]
call fcn.00570908
imul eax, edi, 0x64
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
fild qword [ebp - 0x64]
mov eax, dword [esi]
mov eax, dword [eax + 0x2f0]
neg eax
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fdivp st(1)
call fcn.00403054
mov edx, eax
mov eax, 0xd2
call fcn.00601bb4
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x59c]
call fcn.00439444
jmp 0x57603a
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x10]
mov dl, 4
call fcn.00428e64
mov edi, dword [ebx + 4]
test edi, edi
jle 0x57603a
mov edx, edi
mov eax, dword [ebx]
call fcn.00579480
test al, al
je 0x575e4c
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx]
call fcn.0057a888
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + 4]
call fcn.0057a900
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
call fcn.0057a888
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
call fcn.0057a900
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x14], 0
jne 0x575d45
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x575718
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
call fcn.005757b4
cmp dword [ebp - 0x14], 0
jne 0x575d89
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x575718
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, 2
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
call fcn.005757b4
cmp dword [ebp - 0x14], 0
jne 0x575dcd
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x575718
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, 3
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
call fcn.005757b4
cmp dword [ebp - 0x14], 0
jne 0x575e11
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x575718
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
call fcn.005757b4
jmp 0x57603a
mov eax, dword [ebx]
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c], edx
mov edi, 1
jmp 0x575f97
mov eax, dword [ebx]
cmp dword [eax + edi*8], 0xfffff
jne 0x575f0c
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 - 8]
call fcn.0057a888
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 - 4]
call fcn.0057a900
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebp - 0x30]
call fcn.0057a888
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebp - 0x2c]
call fcn.0057a900
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x575718
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, edi
dec ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
call fcn.005757b4
inc edi
mov eax, dword [ebx]
mov edx, dword [eax + edi*8]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + edi*8 + 4]
mov dword [ebp - 0x2c], edx
jmp 0x575f96
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 - 8]
call fcn.0057a888
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 - 4]
call fcn.0057a900
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + edi*8]
call fcn.0057a888
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 + 4]
call fcn.0057a900
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x575718
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, edi
dec ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
call fcn.005757b4
inc edi
cmp edi, dword [ebx + 4]
jl 0x575e63
mov eax, dword [esi]
cmp byte [eax + 0x651], 0
jne 0x57603a
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [edx + ecx*8 - 8]
call fcn.0057a888
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [edx + ecx*8 - 4]
call fcn.0057a900
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebp - 0x30]
call fcn.0057a888
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
call fcn.005799cc
mov edx, dword [ebp - 0x2c]
call fcn.0057a900
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x575718
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, edi
dec ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
call fcn.005757b4
inc dword [ebp - 0x14]
dec dword [ebp - 0x48]
jne 0x575841
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x576059
mov eax, dword [esi]
cmp dword [eax + 0x190], 0
je 0x5760a2
mov eax, dword [esi]
call fcn.00570908
mov eax, dword [esi]
cmp dword [eax + 0x434], 0
jne 0x57608d
mov eax, dword [esi]
cmp dword [eax + 0x438], 0
jne 0x57608d
cmp byte [ebp - 0x41], 0
jne 0x57608d
mov eax, dword [esi]
mov eax, dword [eax + 0x59c]
xor edx, edx
call fcn.00439434
jmp 0x5760a2
mov eax, dword [esi]
mov eax, dword [eax + 0x59c]
cmp byte [eax + 0x40], 0
jne 0x5760a2
mov dl, 1
call fcn.00439434
mov eax, dword [esi]
cmp dword [eax + 0x434], 0
jle 0x5760ca
mov eax, dword [esi]
dec dword [eax + 0x434]
mov eax, dword [esi]
cmp dword [eax + 0x434], 0
jne 0x5760ca
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x88]
mov eax, dword [esi]
cmp dword [eax + 0x438], 0
jle 0x5760dd
mov eax, dword [esi]
dec dword [eax + 0x438]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret