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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x543ca3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5d8440], 0
je 0x543c7d
mov eax, dword [0x5d8440]
cmp byte [eax + 0x78], 0
jne 0x543c7d
test dl, dl
jne 0x5427b4
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x5d884c]
cmp eax, 0x3a98
jbe 0x54279a
mov al, byte [0x5d8849]
or al, byte [0x5d884a]
je 0x54279a
mov byte [0x5d8849], 0
mov byte [0x5d884a], 0
mov edx, 0x1770
mov eax, dword [ebp - 4]
call fcn.00551474
cmp byte [0x5d8849], 0
jne 0x543c7d
cmp byte [0x5d884a], 0
jne 0x543c7d
mov eax, dword [ebp - 4]
call fcn.0046be24
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x543c7d
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x5d8910]
cmp eax, 0x12c
jbe 0x543b83
call sub.kernel32.dll_GetTickCount_1
mov dword [0x5d8910], eax
mov eax, dword [ebp - 4]
call fcn.00546634
mov eax, dword [ebp - 4]
call fcn.00545784
mov eax, dword [ebp - 4]
call fcn.00546cf8
mov eax, dword [ebp - 4]
call fcn.00545a6c
mov eax, dword [ebp - 4]
call fcn.00546990
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
cmp byte [eax + 0x57], 0
je 0x543c7d
mov byte [ebp - 0x45], 1
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp dword [0x5d6bc4], 0
jne 0x542851
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x3ff00000
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x3ff00000
jmp 0x5428b9
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
mov eax, dword [0x5d70ac]
movzx eax, word [eax + 0x90]
mov dword [ebp - 0xf4], eax
fild dword [ebp - 0xf4]
fdivp st(1)
fstp qword [ebp - 0x38]
wait
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
mov eax, dword [0x5d70ac]
movzx eax, word [eax + 0x92]
mov dword [ebp - 0xf4], eax
fild dword [ebp - 0xf4]
fdivp st(1)
fstp qword [ebp - 0x40]
wait
mov eax, dword [0x5d70ac]
mov eax, dword [eax + 0x54]
test eax, eax
jl 0x5428e0
mov edx, dword [0x5d70ac]
cmp dword [edx + 0x58], 0
jl 0x5428e0
mov ebx, eax
mov eax, dword [0x5d70ac]
mov esi, dword [eax + 0x58]
jmp 0x542989
mov edx, dword [0x5d8440]
movzx edx, word [edx + 0x120]
mov ebx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov edi, dword [eax + 0x48]
mov edx, edi
sar edx, 1
jns 0x542904
adc edx, 0
sub ebx, edx
mov edx, dword [0x5d8440]
movzx edx, word [edx + 0x122]
mov esi, edx
mov eax, dword [eax + 0x4c]
sar eax, 1
jns 0x54291f
adc eax, 0
sub esi, eax
mov eax, dword [0x5d6bc8]
mov edx, dword [eax]
call dword [edx + 0x2c]
add edi, ebx
cmp eax, edi
jge 0x542949
mov eax, dword [0x5d6bc8]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
sub ebx, dword [eax + 0x48]
mov eax, dword [0x5d6bc8]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov edx, dword [edx + 0x4c]
add edx, esi
cmp eax, edx
jge 0x54297d
mov eax, dword [0x5d6bc8]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
sub esi, dword [eax + 0x4c]
test ebx, ebx
jge 0x542983
xor ebx, ebx
test esi, esi
jge 0x542989
xor esi, esi
mov eax, dword [0x5d70ac]
mov dword [eax + 0x98], esi
mov eax, dword [0x5d70ac]
mov dword [eax + 0x94], ebx
mov eax, dword [0x5d70ac]
mov edx, dword [ebp - 0x38]
mov dword [eax + 0x80], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x84], edx
mov eax, dword [0x5d70ac]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x88], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0x8c], edx
call sub.kernel32.dll_GetTickCount_1
mov dword [0x5d8910], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
cmp eax, dword [edx + 0x48]
jne 0x542a0f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
cmp eax, dword [edx + 0x4c]
je 0x542a50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov dword [eax + 0x794], 0xffffffff
mov dword [ebp - 0xf0], ebx
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
mov dword [ebp - 0xf0], esi
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov esi, eax
cmp dword [0x5d6bc4], 0
jne 0x542b4e
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x794]
jne 0x542aa3
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 0x798]
je 0x542d81
mov byte [ebp - 0x45], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, esi
push eax
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
add ecx, ebx
mov edx, esi
mov eax, ebx
call fcn.004184c0
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.004184c0
lea eax, [ebp - 0x114]
push eax
mov eax, dword [0x5d6bc8]
call fcn.0042b6c0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
pop ecx
pop edx
call fcn.00426a64
mov eax, dword [ebp - 4]
mov dword [eax + 0x794], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x798], esi
jmp 0x542d81
lea ecx, [ebp - 0x11c]
xor edx, edx
xor eax, eax
call fcn.00418498
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x11c]
mov edx, esi
mov eax, ebx
call fcn.00418498
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edi, eax
mov dword [ebp - 0x64], edi
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp edi, eax
jle 0x542bbe
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
mov dword [ebp - 0x60], edi
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp edi, eax
jle 0x542bec
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x794]
jne 0x542c1e
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 0x798]
je 0x542d81
mov byte [ebp - 0x45], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x794], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x798], esi
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x5d6bc4]
call fcn.0042b6c0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
lea edx, [ebp - 0x6c]
pop ecx
call fcn.00426a64
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
cmp eax, dword [edx + 0x48]
jl 0x542c8e
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
cmp eax, dword [edx + 0x4c]
jge 0x542d81
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
push eax
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
push eax
mov eax, dword [0x5d6bc4]
call fcn.0042b6c0
pop edx
pop ecx
call fcn.004270fc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x44]
call fcn.00426534
push 0xf00021
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ebx, eax
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub ebx, eax
push ebx
push 0
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
call fcn.00427194
push eax
call sub.gdi32.dll_PatBlt
push 0xf00021
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x20]
sub ebx, eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [0x5d6bc4]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
call fcn.00427194
push eax
call sub.gdi32.dll_PatBlt
cmp byte [ebp - 0x45], 0
je 0x54311b
mov eax, dword [0x5d8440]
mov ax, word [eax + 0x120]
movzx ebx, ax
sub ebx, 0x28
mov edx, dword [0x5d8440]
mov dx, word [edx + 0x122]
movzx esi, dx
sub esi, 0x28
test ebx, ebx
jge 0x542db6
xor ebx, ebx
test esi, esi
jge 0x542dbc
xor esi, esi
movzx edi, ax
add edi, 0x28
movzx eax, dx
add eax, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [0x5d6bc8]
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp edi, eax
jle 0x542de5
mov eax, dword [0x5d6bc8]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edi, eax
mov eax, dword [0x5d6bc8]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp eax, dword [ebp - 0x28]
jge 0x542e01
mov eax, dword [0x5d6bc8]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fmul qword [ebp - 0x40]
call fcn.00402bcc
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0xf0], edi
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
push eax
mov dword [ebp - 0xf4], esi
fild dword [ebp - 0xf4]
fmul qword [ebp - 0x40]
call fcn.00402bcc
push eax
mov dword [ebp - 0x120], ebx
fild dword [ebp - 0x120]
fmul qword [ebp - 0x38]
call fcn.00402bcc
pop edx
pop ecx
call fcn.004184c0
mov eax, dword [0x5d70ac]
sub edi, dword [eax + 0x94]
mov dword [ebp - 0xf0], edi
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov edi, eax
mov eax, dword [0x5d70ac]
mov edx, dword [ebp - 0x28]
sub edx, dword [eax + 0x98]
mov dword [ebp - 0xf0], edx
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov dword [ebp - 0x28], eax
mov eax, dword [0x5d70ac]
sub ebx, dword [eax + 0x94]
mov dword [ebp - 0xf0], ebx
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
mov eax, dword [0x5d70ac]
sub esi, dword [eax + 0x98]
mov dword [ebp - 0xf0], esi
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov esi, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x60], eax
cmp dword [0x5d6bc4], 0
jne 0x542f1e
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x5d6bc8]
call fcn.0042b6c0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
lea edx, [ebp - 0x6c]
pop ecx
call fcn.00426a64
jmp 0x542f44
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x5d6bc4]
call fcn.0042b6c0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
lea edx, [ebp - 0x6c]
pop ecx
call fcn.00426a64
mov eax, dword [ebp - 0x4c]
add eax, eax
lea edi, [ebp + eax*8 - 0xec]
lea esi, [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x4c]
mov eax, dword [0x5d70ac]
fild dword [eax + 0x94]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
mov eax, dword [0x5d70ac]
fild dword [eax + 0x98]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edi, eax
add edi, ebx
lea eax, [esi + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.004184c0
push 0x28
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.004184c0
cmp dword [0x5d6bc4], 0
jne 0x542fff
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x5d6bc8]
call fcn.0042b6c0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
lea edx, [ebp - 0x6c]
pop ecx
call fcn.00426a64
jmp 0x54300c
push ebp
lea edx, [ebp - 0x7c]
lea eax, [ebp - 0x6c]
call fcn.0054258c
pop ecx
mov eax, dword [ebp - 0x4c]
add eax, eax
lea edi, [ebp + eax*8 - 0xec]
lea esi, [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x4c]
mov eax, dword [0x5d70ac]
fild dword [eax + 0x94]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov eax, dword [0x5d70ac]
fild dword [eax + 0x98]
fmul qword [ebp - 0x40]
call fcn.00402bcc
add esi, eax
sub esi, 0x28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edi, eax
add edi, ebx
lea eax, [esi + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.004184c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, 0x28
xor eax, eax
pop ecx
call fcn.004184c0
cmp dword [0x5d6bc4], 0
jne 0x5430f8
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x5d6bc8]
call fcn.0042b6c0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
lea edx, [ebp - 0x6c]
pop ecx
call fcn.00426a64
jmp 0x543105
push ebp
lea edx, [ebp - 0x7c]
lea eax, [ebp - 0x6c]
call fcn.0054258c
pop ecx
mov eax, dword [ebp - 0x4c]
add eax, eax
lea edi, [ebp + eax*8 - 0xec]
lea esi, [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x4c]
mov eax, dword [0x5d70f0]
mov eax, dword [eax + 0x10]
cmp dword [eax + 8], 0
jle 0x543b83
mov eax, dword [0x5d70f0]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5432aa
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x5d70f0]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00419afc
mov edi, eax
test edi, edi
je 0x54329e
cmp edi, dword [0x5d8440]
je 0x54329e
cmp byte [edi + 0x78], 0
jne 0x54329e
cmp dword [edi + 0x11c], 0
je 0x54329e
movzx eax, word [edi + 0x120]
mov edx, dword [0x5d70ac]
sub eax, dword [edx + 0x94]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
movzx eax, word [edi + 0x122]
mov edx, dword [0x5d70ac]
sub eax, dword [edx + 0x98]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov esi, eax
test ebx, ebx
jl 0x54329e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp ebx, eax
jge 0x54329e
test esi, esi
jl 0x54329e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp esi, eax
jg 0x54329e
cmp edi, dword [0x5d8784]
jne 0x543246
push esi
push 1
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov ecx, ebx
call fcn.00473008
jmp 0x54329e
cmp byte [edi + 0x65], 0
je 0x543252
cmp byte [edi + 0x65], 0x32
jne 0x543279
push esi
push 0
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a8]
mov ecx, ebx
call fcn.00473008
jmp 0x54329e
push esi
push 1
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a8]
mov ecx, ebx
call fcn.00473008
inc dword [ebp - 0x1c]
dec dword [ebp - 0x50]
jne 0x54314c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x9b9], 0
je 0x5432c2
mov eax, dword [ebp - 4]
mov byte [eax + 0x9b9], 0
jmp 0x5432cc
mov eax, dword [ebp - 4]
mov byte [eax + 0x9b9], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x9b9], 0
je 0x54335d
mov eax, dword [0x5d8440]
movzx eax, word [eax + 0x120]
mov edx, dword [0x5d70ac]
sub eax, dword [edx + 0x94]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
mov eax, dword [0x5d8440]
movzx eax, word [eax + 0x122]
mov edx, dword [0x5d70ac]
sub eax, dword [edx + 0x98]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov esi, eax
push esi
push 0
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov ecx, ebx
call fcn.00473008
cmp dword [0x5d87bc], 0
je 0x5434b1
mov eax, dword [ebp - 4]
mov dword [eax + 0x794], 0xffffffff
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
call fcn.00427194
push eax
call sub.gdi32.dll_SetBkMode
mov cl, 0x64
mov dl, 0xe1
mov al, 0xa
call fcn.0040751c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0x14]
pop edx
call fcn.00426534
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0xc]
mov edx, 9
call fcn.00425fe8
xor ecx, ecx
xor edx, edx
mov al, 0xff
call fcn.0040751c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0xc]
pop edx
call fcn.00425d48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [0x5d87bc]
call fcn.00426fd0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [0x5d87bc]
call fcn.00426fec
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
sar eax, 1
jns 0x543435
adc eax, 0
mov ebx, dword [0x5d8804]
sub ebx, eax
mov esi, dword [0x5d8808]
sub esi, dword [ebp - 0x20]
test ebx, ebx
jge 0x54344c
xor ebx, ebx
test esi, esi
jge 0x543452
xor esi, esi
mov eax, dword [0x5d70ac]
sub ebx, dword [eax + 0x94]
mov dword [ebp - 0xf0], ebx
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
mov eax, dword [0x5d70ac]
sub esi, dword [eax + 0x98]
mov dword [ebp - 0xf0], esi
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov esi, eax
mov eax, dword [0x5d87bc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov ecx, esi
mov edx, ebx
call fcn.00426e60
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
call fcn.00427194
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0xc]
mov edx, 0xffff
call fcn.00425d48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0xc]
mov edx, 0x543cbc
call fcn.00425f70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0xc]
mov edx, 9
call fcn.00425fe8
push 0x543ccc
push dword [0x5d70c4]
push 0x543cdc
mov eax, dword [0x5d70ac]
push dword [eax + 0x7c]
push 0x543ce8
lea edx, [ebp - 0x128]
mov eax, dword [0x5d8440]
movzx eax, word [eax + 0x120]
call fcn.00408cf0
push dword [ebp - 0x128]
push 0x543cf4
lea edx, [ebp - 0x12c]
mov eax, dword [0x5d8440]
movzx eax, word [eax + 0x122]
call fcn.00408cf0
push dword [ebp - 0x12c]
lea eax, [ebp - 0x124]
mov edx, 8
call fcn.00404794
mov eax, dword [ebp - 0x124]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
xor ecx, ecx
xor edx, edx
call fcn.00426e60
lea edx, [ebp - 0x130]
mov eax, dword [0x5d8804]
call fcn.00408cf0
push dword [ebp - 0x130]
push 0x543cf4
lea edx, [ebp - 0x134]
mov eax, dword [0x5d8808]
call fcn.00408cf0
push dword [ebp - 0x134]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404794
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [ebp - 0x2c]
call fcn.00426fd0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov ebx, dword [edx + 0x48]
sub ebx, eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
xor ecx, ecx
mov edx, ebx
call fcn.00426e60
push 0x543d00
mov eax, dword [0x5d8440]
mov eax, dword [eax + 0xa4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x138]
call fcn.00408ddc
push dword [ebp - 0x138]
push 0x543d10
mov eax, dword [0x5d8440]
mov eax, dword [eax + 0xa8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x13c]
call fcn.00408ddc
push dword [ebp - 0x13c]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404794
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [ebp - 0x2c]
call fcn.00426fec
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov esi, dword [edx + 0x4c]
sub esi, eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov ecx, esi
xor edx, edx
call fcn.00426e60
lea edx, [ebp - 0x140]
mov eax, dword [0x5d8440]
mov eax, dword [eax + 0xcc]
call fcn.00408cf0
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x2c]
mov edx, 0x543d1c
call fcn.00404720
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [ebp - 0x2c]
call fcn.00426fd0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov ebx, dword [edx + 0x48]
sub ebx, eax
sar ebx, 1
jns 0x54370e
adc ebx, 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
xor ecx, ecx
mov edx, ebx
call fcn.00426e60
cmp dword [0x5d6ee8], 0
je 0x5437a4
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x5d6eec]
cmp eax, 0xbb8
jae 0x5437a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [0x5d6ee8]
call fcn.00426fd0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov ebx, dword [edx + 0x48]
sub ebx, eax
mov eax, dword [0x5d6ee8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [0x5d6ee8]
call fcn.00426fec
add eax, 0xa
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, ebx
pop ecx
call fcn.00426e60
cmp dword [0x5d6f18], 0
je 0x54381f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [0x5d6f18]
call fcn.00426fd0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov ebx, dword [edx + 0x48]
sub ebx, eax
sar ebx, 1
jns 0x5437db
adc ebx, 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [0x5d6f18]
call fcn.00426fec
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov esi, dword [edx + 0x4c]
sub esi, eax
mov eax, dword [0x5d6f18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov ecx, esi
mov edx, ebx
call fcn.00426e60
cmp dword [0x5d6ef0], 0
je 0x5438a5
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x5d6ef4]
cmp eax, 0xfa0
jae 0x5438a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [0x5d6ef0]
call fcn.00426fd0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov ebx, dword [edx + 0x48]
sub ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov edx, dword [0x5d6ef0]
call fcn.00426fec
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a4]
mov esi, dword [edx + 0x4c]
sub esi, eax
mov eax, dword [0x5d6ef0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov ecx, esi
mov edx, ebx
call fcn.00426e60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0x14]
mov edx, 0xff
call fcn.00426534
cmp byte [0x5d6ce1], 0
je 0x543b18
mov eax, dword [ebp - 4]
mov dword [eax + 0x794], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0xc]
mov edx, 0xffff
call fcn.00425d48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov eax, dword [eax + 0xc]
mov edx, 9
call fcn.00425fe8
mov eax, dword [0x5d70ac]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x543b18
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x5d70ac]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 0x1c]
call fcn.00419afc
mov esi, eax
mov ebx, dword [esi + 4]
mov eax, ebx
add eax, 8
push eax
mov edi, dword [esi + 8]
mov eax, edi
add eax, 8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov ecx, edi
mov edx, ebx
call fcn.00426bcc
lea edx, [ebp - 0x144]
mov eax, dword [esi + 0xc]
call fcn.00408cf0
mov ecx, dword [ebp - 0x144]
lea eax, [ebp - 0x2c]
mov edx, 0x543d2c
call fcn.00404720
mov eax, dword [esi + 4]
cmp eax, dword [0x5d6ce4]
jne 0x543a8c
mov eax, dword [esi + 8]
cmp eax, dword [0x5d6ce8]
jne 0x543a8c
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
call fcn.00427194
push eax
call sub.gdi32.dll_SetBkMode
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9b4]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x5439ee
cmp eax, 0x1f4
jbe 0x543a12
jmp 0x5439f0
jle 0x543a12
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x9b8]
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x9b8], al
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x9b4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x9b8], 0
je 0x543b0c
mov eax, dword [esi + 4]
mov edx, dword [0x5d70ac]
sub eax, dword [edx + 0x94]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
mov eax, dword [esi + 8]
mov edx, dword [0x5d70ac]
sub eax, dword [edx + 0x98]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov esi, eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov ecx, esi
mov edx, ebx
call fcn.00426e60
jmp 0x543b0c
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
call fcn.00427194
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [esi + 4]
mov edx, dword [0x5d70ac]
sub eax, dword [edx + 0x94]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x38]
call fcn.00402bcc
mov ebx, eax
mov eax, dword [esi + 8]
mov edx, dword [0x5d70ac]
sub eax, dword [edx + 0x98]
mov dword [ebp - 0xf0], eax
fild dword [ebp - 0xf0]
fmul qword [ebp - 0x40]
call fcn.00402bcc
mov esi, eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov ecx, esi
mov edx, ebx
call fcn.00426e60
inc dword [ebp - 0x1c]
dec dword [ebp - 0x50]
jne 0x54392f
cmp dword [ebp - 0x4c], 0
jne 0x543b42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov eax, dword [eax + 0x160]
xor ecx, ecx
xor edx, edx
call fcn.00426aec
jmp 0x543b83
mov eax, dword [ebp - 0x4c]
dec eax
test eax, eax
jl 0x543b83
inc eax
mov dword [ebp - 0x50], eax
lea ebx, [ebp - 0xec]
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa38]
call fcn.0042b6c0
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov eax, dword [eax + 0x160]
call fcn.00426a64
add ebx, 0x10
dec dword [ebp - 0x50]
jne 0x543b54
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x78c]
cmp eax, 0x1f4
jbe 0x543c7d
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x78c], eax
mov eax, dword [0x5d6bc0]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x380]
cmp eax, dword [edx + 0x48]
jne 0x543bda
mov eax, dword [0x5d6bc0]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x380]
cmp eax, dword [edx + 0x4c]
je 0x543c06
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov edx, dword [eax + 0x48]
mov eax, dword [0x5d6bc0]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov edx, dword [eax + 0x4c]
mov eax, dword [0x5d6bc0]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [0x5d6bc0]
call fcn.0042b6c0
call fcn.00427194
push eax
mov eax, dword [0x5d6bc0]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [0x5d6bc0]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [0x5d70ac]
pop ecx
call fcn.005b8080
mov eax, dword [ebp - 4]
call fcn.00543d90
mov cl, 0xff
mov dl, 0xff
mov al, 0xff
call fcn.0040751c
push eax
mov eax, dword [0x5d6bc0]
call fcn.0042b6c0
mov eax, dword [eax + 0x10]
pop edx
call fcn.00426234
mov eax, dword [0x5d6bc0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x380]
mov eax, dword [eax + 0x160]
xor ecx, ecx
xor edx, edx
call fcn.00426aec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x543caa
lea eax, [ebp - 0x144]
mov edx, 9
call fcn.00404438
lea eax, [ebp - 0x2c]
call fcn.00404414
ret