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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x80]
call fcn.0045e250
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x80]
call fcn.0045e250
cmp dword [eax + 0xc0], 0
jne 0x4590ca
jmp 0x4598c9
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x410], 0
je 0x4592a0
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0xc0]
call fcn.00409610
mov eax, dword [ebp - 0x80]
xor ecx, ecx
mov cx, word [eax + 0x54]
mov eax, dword [ebp - 0x5c]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x80]
xor eax, eax
mov ax, word [edx + 0x54]
mov ecx, dword [ebp - 0x58]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x80]
add edx, 0xec
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x14]
test edx, edx
jge 0x45915e
mov dword [ebp - 0x84], 0
jmp 0x45916a
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x58]
sub edx, dword [ebp - 0x10]
test edx, edx
jge 0x459189
mov dword [ebp - 0x88], 0
jmp 0x459195
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x54], 0
jne 0x4591af
cmp dword [ebp - 0x50], 0
jne 0x4591af
jmp 0x4598c9
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x414]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x41c]
sub edx, eax
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp + 0x10]
sub edx, dword [ecx + 0x418]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x420]
sub ecx, edx
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x60], ecx
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x5c], 0
jge 0x4591fe
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x5c], 0
jmp 0x459212
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x5c]
cmp eax, dword [ebp - 0x54]
jle 0x459212
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x60], 0
jge 0x459227
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x60], 0
jmp 0x45923b
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x60]
cmp eax, dword [ebp - 0x50]
jle 0x45923b
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x60], edx
push 1
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x5c]
push ecx
mov ecx, dword [ebp - 0x80]
add ecx, 0xb0
call fcn.00425090
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x5c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
shl eax, 3
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x5c], eax
push 1
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x60]
push eax
mov ecx, dword [ebp - 0x80]
add ecx, 0x74
call fcn.00425090
mov ecx, dword [ebp - 0x80]
call fcn.004571b5
push 0
mov ecx, dword [ebp - 0x80]
call fcn.00409ad0
mov ecx, dword [ebp - 0x80]
call fcn.0051a1e4
jmp 0x4598c9
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x40c], 0
je 0x4598b9
lea edx, [ebp - 0x70]
push edx
mov ecx, dword [ebp - 0x80]
call fcn.0045e250
mov ecx, dword [eax + 0xc0]
call fcn.00409610
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x80]
xor ecx, ecx
mov cx, word [eax + 0x54]
mov eax, dword [ebp - 0x70]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x80]
xor eax, eax
mov ax, word [edx + 0x54]
mov ecx, dword [ebp - 0x6c]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x80]
cmp dword [edx + 0x428], 0
je 0x459326
mov dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x430], 0
je 0x459339
mov dword [ebp - 0x68], 0xb
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x210], 4
jne 0x45934c
mov dword [ebp - 0x68], 0x22
mov ecx, dword [ebp - 0x80]
call fcn.004171e0
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x80]
mov ecx, dword [edx + 0x408]
call fcn.00409600
test eax, eax
je 0x4593a1
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
add edx, 0x14
push edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x74]
push edx
mov ecx, dword [ebp - 0x80]
call fcn.0045ab40
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
call fcn.0045e290
mov ecx, dword [ebp - 0x80]
add ecx, 0xec
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, 0xc
jle 0x4593de
mov dword [ebp - 0x8c], 0xc
jmp 0x4593f0
mov eax, dword [ebp - 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x10]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, 0xc
jle 0x459416
mov dword [ebp - 0x90], 0xc
jmp 0x459428
mov eax, dword [ebp - 0x10]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
cmp dword [ecx + 0x1c], 0
je 0x4594a0
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
mov eax, dword [eax + 0x14]
mov dword [edx + 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setl cl
dec ecx
and ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jge 0x45947f
xor edx, edx
cmp dword [ebp + 0xc], 0
setl dl
dec edx
and edx, dword [ebp + 0xc]
mov dword [ebp - 0x94], edx
jmp 0x459488
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x94]
add edx, dword [ecx + 0x5c]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
cmp dword [eax + 0x20], 0
je 0x45950f
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
mov edx, dword [edx + 0x18]
mov dword [ecx + 0x10], edx
xor eax, eax
cmp dword [ebp + 0x10], 0
setl al
dec eax
and eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x10]
jge 0x4594ee
xor ecx, ecx
cmp dword [ebp + 0x10], 0
setl cl
dec ecx
and ecx, dword [ebp + 0x10]
mov dword [ebp - 0x98], ecx
jmp 0x4594f7
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x98]
add ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
mov dword [eax + 0x18], ecx
mov ecx, 1
test ecx, ecx
je 0x4598ab
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
add ecx, 0xc
call fcn.0045e2b0
test eax, eax
je 0x4596c7
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
add edx, 4
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x80]
call fcn.0045ab40
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jle 0x4595ca
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
cmp dword [eax + 0x1c], 0
je 0x4595ca
push 0
push 0
push 1
mov ecx, dword [ebp - 0x80]
call fcn.00458167
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 4], ecx
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x30]
jb 0x4595b4
jmp 0x459612
cmp dword [ebp + 0xc], 0
jg 0x45960b
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
cmp dword [ecx + 0x1c], 0
je 0x45960b
push 0
push 0
push 0
mov ecx, dword [ebp - 0x80]
call fcn.00458167
mov edx, dword [ebp - 0x60]
neg edx
mov dword [ebp - 4], edx
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jb 0x4595f5
jmp 0x459612
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x10]
jle 0x459653
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
cmp dword [eax + 0x20], 0
je 0x459653
push 0
push 0
push 1
mov ecx, dword [ebp - 0x80]
call fcn.0045842b
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 8], ecx
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x30]
jb 0x45963d
jmp 0x45969d
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x18]
jge 0x459696
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
cmp dword [edx + 0x20], 0
je 0x459696
push 0
push 0
push 0
mov ecx, dword [ebp - 0x80]
call fcn.0045842b
mov eax, dword [ebp - 0x64]
neg eax
mov dword [ebp - 8], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x30]
jb 0x459680
jmp 0x45969d
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
add ecx, 0x14
push ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
add eax, 4
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x80]
call fcn.0045ab40
cmp dword [ebp - 0x20], 0
je 0x4596d8
cmp dword [ebp - 0xc], 0
je 0x4596d8
jmp 0x4598ab
push 0
push 0
push 0
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
je 0x4596f8
jmp 0x4598ab
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 0x408]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
cmp dword [edx + 0x1c], 0
je 0x4597de
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
mov edx, dword [ecx + 0x14]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
cmp dword [eax + 0x14], 0
jge 0x45975f
mov dword [ebp - 0x9c], 0
jmp 0x459771
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x5c]
add edx, dword [ebp - 0x14]
cmp dword [ebp - 0x9c], edx
jge 0x4597bd
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
cmp dword [ecx + 0x14], 0
jge 0x45979d
mov dword [ebp - 0xa0], 0
jmp 0x4597af
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
jmp 0x4597cc
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x5c]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
mov ecx, dword [ebp - 0xa4]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
cmp dword [eax + 0x20], 0
je 0x4598a6
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
mov eax, dword [edx + 0x18]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
cmp dword [ecx + 0x18], 0
jge 0x459827
mov dword [ebp - 0xa8], 0
jmp 0x459839
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x408]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x60]
add eax, dword [ebp - 0x10]
cmp dword [ebp - 0xa8], eax
jge 0x459885
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x408]
cmp dword [edx + 0x18], 0
jge 0x459865
mov dword [ebp - 0xac], 0
jmp 0x459877
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
jmp 0x459894
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x60]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x408]
mov edx, dword [ebp - 0xb0]
mov dword [ecx + 0x18], edx
jmp 0x45950f
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x80]
call fcn.00417200
jmp 0x4598c9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x80]
call fcn.0045b117
mov esp, ebp
pop ebp
ret 0xc