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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push esi
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e2266
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0046aef0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x4e19da
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 8]
mov si, 0xfff6
call fcn.004043e8
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
cmp eax, 0x3e8
jbe 0x4e1a0b
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
inc dword [eax + 8]
mov eax, dword [0x4e96e8]
cmp dword [eax], 0
je 0x4e2228
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [0x4e9280]
cmp eax, dword [edx]
jne 0x4e2228
mov eax, dword [0x4e9494]
cmp byte [eax], 0
je 0x4e1b55
mov eax, dword [0x4e92dc]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x4e1b55
push 1
mov eax, dword [ebp - 8]
call fcn.0046af44
call fcn.00423c30
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [0x4e92dc]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4e1b48
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x4e92dc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00415a38
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4e1b3c
mov eax, dword [0x4e99d4]
cmp byte [eax], 0
je 0x4e1ac8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
call fcn.004dfe94
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4e1ac8
mov eax, dword [ebp - 0x28]
cmp byte [eax + 6], 0
je 0x4e1b3c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [0x4e9280]
mov eax, dword [eax]
call fcn.004cde94
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
sub eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
cmp eax, 9
jge 0x4e1b3c
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, 7
jge 0x4e1b3c
push 0xf0caa6
push 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
push eax
mov ecx, dword [ebp - 0x30]
sub ecx, 0x14
mov edx, dword [ebp - 0x2c]
sub edx, 0x10
mov eax, dword [ebp - 8]
call fcn.004d6438
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x4e1a85
mov eax, dword [ebp - 8]
call fcn.0046af44
call fcn.00469fb0
mov eax, dword [0x4e9280]
mov eax, dword [eax]
mov eax, dword [eax + 0x5a864]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4e1dac
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x4e9280]
mov eax, dword [eax]
mov eax, dword [eax + 0x5a864]
mov edx, dword [ebp - 0x10]
call fcn.00415a38
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp word [eax + 0x56], 1
jbe 0x4e1c2f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x2c], 0
jne 0x4e1c2f
push 1
mov eax, dword [ebp - 8]
call fcn.0046af44
call fcn.00423c30
push eax
call sub.gdi32.dll_SetBkMode
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x52]
call fcn.004096c8
push dword [ebp - 0x70]
push 0x4e227c
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x56]
call fcn.004096c8
push dword [ebp - 0x74]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004053ac
push 0xffffff
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xb0]
sub ecx, 0x14
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0xac]
sub edx, 0xf
mov eax, dword [ebp - 8]
call fcn.004d6438
mov eax, dword [ebp - 8]
call fcn.0046af44
call fcn.00469fb0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x160], 1
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x160], 0
jne 0x4e1c55
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x161], 0
je 0x4e1da0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x2c], 0
jne 0x4e1da0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x161], 0
je 0x4e1c91
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x14]
sub eax, dword [edx + 0x164]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 0x168]
jbe 0x4e1c91
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x161], 0
mov eax, dword [0x4e93a4]
mov eax, dword [eax]
xor edx, edx
call fcn.00479fe0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e1cf1
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x1c]
call fcn.0046af7c
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
call fcn.0046b1dc
sar eax, 1
jns 0x4e1cd2
adc eax, 0
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xac]
sub edx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xb0]
sub ecx, 0xa
mov eax, dword [ebp - 8]
call fcn.0046a974
mov eax, dword [0x4e93a4]
mov eax, dword [eax]
mov edx, 1
call fcn.00479fe0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e1da0
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x1c]
call fcn.0046af7c
mov eax, dword [ebp - 0x14]
cmp word [eax + 0x56], 0
jbe 0x4e1d68
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0x88], eax
fild dword [ebp - 0x88]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x56]
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
fdivp st(1)
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x52]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
fmulp st(1)
call fcn.004033d0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0x1c]
call fcn.0046b1dc
sar eax, 1
jns 0x4e1d81
adc eax, 0
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xac]
sub edx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xb0]
sub ecx, 0xa
mov eax, dword [ebp - 8]
call fcn.0046a974
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x4e1b79
push 1
mov eax, dword [ebp - 8]
call fcn.0046af44
call fcn.00423c30
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [0x4e9798]
cmp dword [eax], 0
je 0x4e1e41
mov edx, dword [0x4e9798]
mov edx, dword [edx]
mov eax, dword [0x4e9280]
mov eax, dword [eax]
call fcn.004ceab8
test al, al
je 0x4e1e41
mov eax, dword [0x4e9798]
mov eax, dword [eax]
push dword [eax + 0x30]
push 0x4e2288
mov eax, dword [0x4e9798]
mov eax, dword [eax]
push dword [eax + 0x34]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004053ac
push ebp
mov eax, dword [0x4e9798]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x4e9798]
mov eax, dword [eax]
mov ecx, dword [eax + 0xb0]
add ecx, 0x1e
mov eax, dword [0x4e9798]
mov eax, dword [eax]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 8]
call fcn.004e18a4
pop ecx
mov eax, dword [0x4e9740]
cmp byte [eax], 0
je 0x4e1ea9
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
push dword [eax + 0x30]
push 0x4e2288
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
push dword [eax + 0x34]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004053ac
push ebp
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xb0]
add ecx, 0x1e
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 8]
call fcn.004e18a4
pop ecx
mov eax, dword [ebp - 8]
call fcn.0046af44
mov eax, dword [eax + 0xc]
mov edx, 0xffffff
call fcn.00422a98
mov eax, dword [0x4e9280]
mov eax, dword [eax]
mov eax, dword [eax + 0x5a864]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4e2024
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x4e9280]
mov eax, dword [eax]
mov eax, dword [eax + 0x5a864]
mov edx, dword [ebp - 0x10]
call fcn.00415a38
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x80], 0
je 0x4e2018
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x14]
sub eax, dword [edx + 0xa8]
cmp eax, 0xfa0
jae 0x4e200b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
dec eax
test eax, eax
jl 0x4e2018
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x2c], 0
je 0x4e1fa4
push 0x808080
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 + 0x80]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
shl eax, 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0xb0]
sub ecx, eax
imul eax, dword [ebp - 0xc], 0xe
add ecx, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 + 0x94]
sar eax, 1
jns 0x4e1f8f
adc eax, 0
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xac]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.004d6438
jmp 0x4e1ffd
push 0xffffff
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 + 0x80]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
shl eax, 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0xb0]
sub ecx, eax
imul eax, dword [ebp - 0xc], 0xe
add ecx, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 + 0x94]
sar eax, 1
jns 0x4e1fea
adc eax, 0
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xac]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.004d6438
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x4e1f40
jmp 0x4e2018
mov eax, dword [ebp - 0x14]
add eax, 0x80
call fcn.00405018
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x4e1ee2
mov eax, dword [0x4e9a18]
cmp byte [eax], 0
je 0x4e2167
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
mov eax, dword [eax + 8]
sub eax, 8
mov edx, dword [0x4e96e8]
mov edx, dword [edx]
mov edx, dword [edx + 8]
add edx, 8
sub edx, eax
jl 0x4e2167
inc edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], eax
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
sub eax, 8
mov edx, dword [0x4e96e8]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
add edx, 8
sub edx, eax
jl 0x4e215b
inc edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], eax
mov eax, dword [0x4e9280]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.004cea18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e214f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x2c], 0
jne 0x4e214f
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x12]
sub al, 0xb
je 0x4e20c4
sub al, 0x22
je 0x4e20c4
sub al, 5
jne 0x4e20f6
push ebp
mov al, 0xda
call fcn.00481520
push eax
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xb0]
add ecx, 0x1e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 8]
call fcn.004e18a4
pop ecx
jmp 0x4e214f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x12], 0
jne 0x4e214f
push ebp
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
push eax
push 0
mov eax, dword [ebp - 0x14]
push dword [eax + 0x30]
push 0x4e2288
mov eax, dword [ebp - 0x14]
push dword [eax + 0x34]
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.004053ac
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xb0]
add ecx, 0x1e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 8]
call fcn.004e18a4
pop ecx
inc dword [ebp - 0x38]
dec dword [ebp - 0x40]
jne 0x4e2086
inc dword [ebp - 0x34]
dec dword [ebp - 0x3c]
jne 0x4e205c
mov eax, dword [ebp - 8]
call fcn.0046af44
mov eax, dword [eax + 0xc]
mov edx, 0xffffff
call fcn.00422a98
mov eax, dword [0x4e9484]
test byte [eax], 4
je 0x4e219e
push 0xffffff
push 0
push 0x4e2294
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004d6438
mov eax, dword [ebp - 8]
call fcn.0046af44
call fcn.00469fb0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, 1
shr eax, cl
mov edx, dword [0x4e9484]
and eax, dword [edx]
je 0x4e221f
mov edx, dword [ebp - 0xc]
add edx, 0x96
mov eax, dword [0x4e98c4]
mov eax, dword [eax]
call fcn.00479fe0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e221f
mov eax, dword [ebp - 0x1c]
call fcn.0046b1dc
add dword [ebp - 0x10], eax
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x1c]
call fcn.0046af7c
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov edx, 0x320
sub edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0046a974
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jne 0x4e21b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e226d
lea eax, [ebp - 0x94]
call fcn.00405018
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0040503c
lea eax, [ebp - 0x58]
call fcn.00405018
lea eax, [ebp - 0x20]
call fcn.00405018
lea eax, [ebp - 0x18]
call fcn.00405018
ret