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

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x51261c]
push esi
push edi
add eax, 0xffffffff
xor edi, edi
cmp eax, 0x10
mov byte [esp + 0x13], 0
ja case.default.0x45c474
jmp dword [eax*4 + 0x45cfe0]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call fcn.0045acd0
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
mov eax, dword [0x649e64]
mov ecx, dword [esp + 0x124]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [esp + 0x1a]
movzx edx, ah
movzx eax, al
imul eax, eax, 0x1997a0
shl edx, 8
add edx, ecx
movzx ecx, byte [esp + 0x1b]
shl edx, 8
add edx, eax
mov eax, dword [esp + 0x128]
add edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
movzx edx, byte [esp + 0x1e]
movzx ecx, ah
movzx eax, al
imul eax, eax, 0x1997a0
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x1f]
shl ecx, 8
add ecx, eax
mov eax, dword [esp + 0x12c]
add ecx, edx
mov edx, dword [esp + 0x130]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x22]
pop edi
mov dword [edx], ecx
mov eax, dword [0x649c40]
add dword [0x649e64], eax
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x14], eax
mov edi, edi
push 0x649c50
push esi
push edi
xor bl, bl
call fcn.004597a0
push 2
push 0x4e2168
push 0x649c51
mov ebp, eax
call fcn.004b277c
add esp, 0x18
test eax, eax
jne 0x45c57a
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, 0x1388
jle 0x45c5be
cmp byte [esp + 0x13], 0
jne case.default.0x45c474
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x649e64]
push 1
add ecx, 0xffffff6a
push ecx
push esi
push edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x23], 1
call fcn.0045b6e0
add esp, 0x10
cmp ebp, 1
jne case.default.0x45c474
test bl, bl
je 0x45c550
movzx edx, byte [0x649c57]
push edx
call fcn.0043e090
movzx eax, al
mov esi, eax
shl esi, 4
sub esi, eax
movzx eax, byte [0x649c58]
add esi, esi
push eax
add esi, esi
call fcn.0043e090
movzx ecx, byte [0x649c59]
movzx edi, al
add edi, esi
push ecx
imul edi, edi, 0x4b
call fcn.0043e090
mov ecx, dword [esp + 0x130]
movzx edx, al
add edx, edi
mov dword [ecx], edx
movzx eax, byte [0x649c5a]
movzx edx, byte [0x649c5b]
shl eax, 8
add eax, edx
mov edx, dword [esp + 0x134]
mov dword [edx], eax
movzx eax, byte [0x649c7a]
movzx edx, byte [0x649c7b]
shl eax, 8
add eax, edx
mov edx, dword [esp + 0x138]
mov dword [edx], eax
movzx eax, byte [0x649c8b]
movzx edx, byte [0x649c8c]
shl eax, 8
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
cdq
and edx, 0xf
add esp, 0xc
add eax, edx
mov edx, dword [esp + 0x130]
sar eax, 4
mov dword [edx], eax
mov eax, dword [ecx]
pop edi
pop esi
mov dword [0x649e64], eax
mov eax, ebp
pop ebp
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0045ac10
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
movzx eax, byte [esp + 0x19]
movzx edx, byte [esp + 0x1a]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
movzx ecx, byte [esp + 0x1b]
imul eax, eax, 0x4b
mov edx, dword [esp + 0x124]
add eax, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
movzx ecx, al
movzx edx, ah
mov eax, dword [esp + 0x128]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x1f]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x1e]
mov eax, dword [esp + 0x12c]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x130]
mov dword [ecx], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.0045ac70
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
movzx eax, byte [esp + 0x19]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, byte [esp + 0x1a]
lea ecx, [eax + edx*4]
movzx edx, byte [esp + 0x1b]
imul ecx, ecx, 0x4b
mov eax, dword [esp + 0x124]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
movzx ecx, al
movzx edx, ah
mov eax, dword [esp + 0x128]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x1f]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x1e]
mov eax, dword [esp + 0x12c]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
movzx ecx, al
movzx edx, ah
mov eax, dword [esp + 0x130]
pop edi
shl ecx, 8
pop esi
add ecx, edx
pop ebp
mov dword [eax], ecx
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0045ada0
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
movzx ecx, byte [esp + 0x19]
movzx edx, byte [esp + 0x1a]
movzx eax, byte [esp + 0x1b]
shl ecx, 8
add ecx, edx
mov edx, dword [esp + 0x124]
shl ecx, 8
add ecx, eax
mov dword [edx], ecx
jmp 0x45c6dc
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.00458ea0
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
mov eax, dword [esp + 0x18]
test al, al
jns 0x45c868
movzx ecx, byte [esp + 0x1a]
movzx edx, al
and edx, 0x7f
movzx eax, ah
shl edx, 8
add edx, eax
mov eax, dword [esp + 0x124]
shl edx, 8
add edx, ecx
mov dword [eax], edx
jmp 0x45c88b
movzx ecx, al
mov edx, ecx
shl edx, 4
sub edx, ecx
movzx eax, ah
lea ecx, [eax + edx*4]
movzx edx, byte [esp + 0x1a]
imul ecx, ecx, 0x4b
mov eax, dword [esp + 0x124]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
movzx ecx, byte [esp + 0x1b]
movzx edx, al
shl ecx, 8
add ecx, edx
mov edx, dword [esp + 0x128]
mov dword [edx], ecx
movzx ecx, byte [esp + 0x1e]
mov edx, dword [esp + 0x12c]
movzx eax, ah
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x130]
mov dword [edx], eax
movzx eax, byte [esp + 0x23]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.0045aef0
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
mov edx, dword [0x649e64]
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x128]
mov dword [eax], edx
movzx edx, byte [esp + 0x1a]
movzx eax, byte [esp + 0x1b]
mov dword [ecx], edi
mov ecx, dword [esp + 0x12c]
shl edx, 8
add edx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x130]
mov dword [edx], edi
add dword [0x649e64], 0x4b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call fcn.00459840
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
mov eax, dword [0x649e64]
mov ecx, dword [esp + 0x124]
movzx edx, byte [esp + 0x1e]
mov dword [ecx], eax
movzx eax, byte [esp + 0x1f]
mov ecx, dword [esp + 0x128]
shl edx, 8
add edx, eax
mov eax, dword [esp + 0x130]
mov dword [ecx], edx
mov edx, dword [esp + 0x12c]
mov dword [edx], edi
mov dword [eax], edi
add dword [0x649e64], 0x4b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0045b060
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
mov ecx, dword [0x649e64]
mov edx, dword [esp + 0x124]
movzx eax, byte [esp + 0x1e]
mov dword [edx], ecx
movzx ecx, byte [esp + 0x1f]
mov edx, dword [esp + 0x128]
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x130]
mov dword [edx], eax
mov eax, dword [esp + 0x12c]
mov dword [eax], edi
mov dword [ecx], edi
add dword [0x649e64], 0x4b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
cmp dword [0x649e54], edi
jne 0x45ca68
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0x649c50
push edx
push eax
call fcn.0045b0b0
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
movzx ecx, byte [0x649c50]
push ecx
call fcn.0043e090
movzx edx, byte [0x649c53]
movzx eax, al
mov edi, eax
shl edi, 4
sub edi, eax
add edi, edi
push edx
add edi, edi
call fcn.0043e090
movzx esi, al
movzx eax, byte [0x649c52]
add esi, edi
add esi, dword [0x649e54]
push eax
imul esi, esi, 0x4b
call fcn.0043e090
mov edx, dword [esp + 0x130]
movzx ecx, al
add ecx, esi
mov dword [edx], ecx
mov eax, dword [0x649e54]
movzx ecx, byte [eax*4 + 0x649c54]
movzx edx, byte [eax*4 + 0x649c55]
mov eax, dword [esp + 0x134]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
mov eax, dword [0x649e54]
movzx ecx, byte [eax*4 + 0x649c56]
movzx edx, byte [eax*4 + 0x649c57]
mov eax, dword [esp + 0x138]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
movzx ecx, byte [0x649c71]
movzx edx, byte [0x649c70]
mov eax, dword [esp + 0x13c]
shl ecx, 8
add esp, 0xc
add ecx, edx
mov dword [eax], ecx
mov ecx, dword [0x649e54]
pop edi
pop esi
add ecx, 1
and ecx, 3
pop ebp
mov dword [0x649e54], ecx
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.0045b0f0
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
movzx eax, byte [esp + 0x1e]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, byte [esp + 0x1f]
lea ecx, [eax + edx*4]
movzx edx, byte [esp + 0x20]
imul ecx, ecx, 0x4b
mov eax, dword [esp + 0x124]
add ecx, edx
movzx edx, byte [esp + 0x19]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x1a]
mov eax, dword [esp + 0x128]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x1b]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x1c]
jmp 0x45c6fe
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
lea esp, [esp]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x18]
push edx
push 8
push 0x9a
push 0
push 0
push 0
push 0
push 0
push 0x10
push 0x53
push 0x41
push 0x38
push 0
push 0x5a
push eax
push ecx
call fcn.0041b090
add esp, 0x40
cmp eax, 1
jne case.default.0x45c474
test edi, edi
mov ebx, dword [esp + 0x18]
jle 0x45cc3c
movzx edx, byte [esp + 0x1b]
movzx eax, byte [esp + 0x1a]
shl edx, 8
add edx, eax
shl edx, 8
movzx ecx, bh
add edx, ecx
movzx eax, bl
shl edx, 8
add edx, eax
cmp esi, edx
jne 0x45cc37
movzx ecx, byte [esp + 0x1e]
cmp ebp, ecx
je 0x45cc3c
mov edi, 0xc8
movzx esi, byte [esp + 0x1b]
movzx edx, byte [esp + 0x1a]
shl esi, 8
add esi, edx
shl esi, 8
movzx eax, bh
add esi, eax
movzx ecx, bl
shl esi, 8
add esi, ecx
movzx ecx, byte [esp + 0x1e]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov eax, 0x88888889
mul ebp
mov ebp, dword [esp + 0x14]
xor eax, eax
shr edx, 4
cmp edx, ebp
sete al
mov ebp, ecx
mov ecx, edi
add edi, 1
cmp ecx, 0xc8
mov dword [0x649e54], eax
jl 0x45cbc0
movzx eax, byte [esp + 0x1d]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, byte [esp + 0x1e]
lea ecx, [eax + edx*4]
movzx edx, byte [esp + 0x1f]
imul ecx, ecx, 0x4b
mov eax, dword [esp + 0x124]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x128]
movzx ecx, bh
shl ecx, 8
movzx edx, bl
add ecx, edx
movzx edx, byte [esp + 0x1a]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x1b]
mov eax, dword [esp + 0x12c]
shl ecx, 8
pop edi
add ecx, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x12c]
pop esi
pop ebp
mov dword [ecx], 0
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.0045b300
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
cmp byte [esp + 0x18], 0x10
je case.default.0x45c474
mov edx, dword [0x649e64]
mov eax, dword [esp + 0x124]
movzx ecx, byte [esp + 0x23]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
shl ecx, 8
movzx edx, al
add ecx, edx
movzx edx, byte [esp + 0x26]
shl ecx, 8
movzx eax, ah
add ecx, eax
mov eax, dword [esp + 0x128]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
movzx ecx, byte [esp + 0x1b]
shl ecx, 8
movzx edx, al
add ecx, edx
movzx edx, byte [esp + 0x1e]
shl ecx, 8
movzx eax, ah
add ecx, eax
mov eax, dword [esp + 0x12c]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x130]
mov dword [ecx], edi
add dword [0x649e64], 0x4b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.00459a10
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
movzx eax, byte [esp + 0x19]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, byte [esp + 0x1a]
lea ecx, [eax + edx*4]
movzx edx, byte [esp + 0x1b]
imul ecx, ecx, 0x4b
mov eax, dword [esp + 0x124]
add ecx, edx
mov dword [eax], ecx
jmp 0x45c6dc
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.0045b390
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
mov ecx, dword [esp + 0x18]
movzx eax, cl
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, ch
lea ecx, [eax + edx*4]
movzx edx, byte [esp + 0x1a]
imul ecx, ecx, 0x4b
mov eax, dword [esp + 0x124]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
movzx ecx, byte [esp + 0x1b]
movzx edx, al
shl ecx, 8
add ecx, edx
mov edx, dword [esp + 0x128]
movzx eax, ah
mov dword [edx], ecx
movzx ecx, byte [esp + 0x1e]
mov edx, dword [esp + 0x12c]
shl eax, 8
add eax, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x130]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0045b3d0
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
mov ecx, dword [esp + 0x18]
movzx eax, cl
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, ch
lea ecx, [eax + edx*4]
movzx edx, byte [esp + 0x1a]
imul ecx, ecx, 0x4b
mov eax, dword [esp + 0x124]
add ecx, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
movzx ecx, byte [esp + 0x1b]
movzx edx, al
shl ecx, 8
add ecx, edx
mov edx, dword [esp + 0x128]
movzx eax, ah
mov dword [edx], ecx
movzx ecx, byte [esp + 0x1e]
mov edx, dword [esp + 0x12c]
shl eax, 8
add eax, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x130]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0045b410
add esp, 0xc
cmp eax, 1
jne case.default.0x45c474
mov ecx, dword [0x649e64]
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x18]
mov dword [edx], ecx
movzx ecx, al
movzx edx, ah
mov eax, dword [esp + 0x128]
shl ecx, 8
add ecx, edx
movzx edx, byte [esp + 0x1b]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x1a]
mov eax, dword [esp + 0x12c]
shl ecx, 8
add ecx, edx
mov edx, dword [esp + 0x130]
mov dword [eax], ecx
movzx ecx, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
add dword [0x649e64], 0x4b
mov eax, 1
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret