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

Disassembly:
sub esp, 0x670
push ebx
push ebp
push edi
mov edi, ecx
xor bl, bl
mov ebp, edx
cmp dword [edi], 0xe00
lea eax, [edi + 8]
jne 0x424111
cmp byte [esp + 0x684], 1
jne 0x424150
cmp dword [eax], 0x2000809
jbe 0x424158
movzx eax, byte [eax]
push eax
movzx eax, byte [edi + 9]
push eax
movzx eax, byte [edi + 0xa]
push eax
movzx eax, byte [edi + 0xb]
push eax
push 0x4084a8
push 1
push 0x214
push 0x407d80
push 0x408404
call fcn.0041a5ac
add esp, 0x24
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x670
ret 8
cmp dword [eax], 0x2000809
jae 0x424111
movzx eax, byte [eax]
push esi
push eax
movzx eax, byte [edi + 9]
mov esi, 0x407d80
push eax
movzx eax, byte [edi + 0xa]
push eax
movzx eax, byte [edi + 0xb]
push eax
push 0x408398
push 0
push 0x1d5
push esi
push 0x408404
call fcn.0041a5ac
add esp, 0x24
lea eax, [esp + 0x18]
mov edx, 0x1e6
push edx
push 0
push eax
call fcn.0041869b
push 0x78
lea eax, [edi + 0x46]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0041863c
push 0x10
lea eax, [edi + 0xbe]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0041863c
push 0x102
lea eax, [edi + 0xce]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0041863c
push dword [esp + 0xa0]
movzx eax, word [esp + 0x9e]
push dword [esp + 0xa0]
mov dword [esp + 0x20], edx
push eax
movzx eax, word [esp + 0xa4]
push eax
push dword [esp + 0xa4]
push 0x4080a8
push 0
push 0x1e0
push esi
push 0x408404
call fcn.0041a5ac
add esp, 0x28
lea ecx, [esp + 0x1a6]
lea edx, [edi + 0x1d0]
push 0x14
push ecx
push 0xffffffffffffffff
xor ecx, ecx
call fcn.00418769
push 0x14
lea eax, [esp + 0x1be]
xor ecx, ecx
push eax
push 0xffffffffffffffff
lea edx, [edi + 0x3d8]
call fcn.00418769
push 0xa
pop esi
push esi
lea eax, [esp + 0x1d2]
xor ecx, ecx
push eax
push 0xffffffffffffffff
lea edx, [edi + 0x5e0]
call fcn.00418769
push esi
lea eax, [esp + 0x1dc]
push eax
push 0xffffffffffffffff
lea edx, [edi + 0x7e8]
xor ecx, ecx
call fcn.00418769
push esi
lea eax, [esp + 0x1e6]
xor ecx, ecx
push eax
push 0xffffffffffffffff
lea edx, [edi + 0x9f0]
call fcn.00418769
push esi
lea eax, [esp + 0x1f0]
xor ecx, ecx
push eax
push 0xffffffffffffffff
lea edx, [edi + 0xbf8]
call fcn.00418769
call fcn.00419bb4
mov esi, eax
call fcn.00419bb4
mov ecx, eax
mov dword [esp + 0x10], 0xffff
xor edx, edx
div dword [esp + 0x10]
xor edx, edx
inc eax
add ecx, eax
mov eax, esi
div dword [esp + 0x10]
inc esi
shl ecx, 0x10
add eax, esi
xor esi, esi
movzx eax, ax
or ecx, eax
mov eax, dword [edi + 0x36]
mov dword [esp + 0x1fa], eax
lea eax, [esp + 0x1ec]
push eax
lea eax, [esp + 0x1e6]
mov dword [esp + 0x1fa], ecx
push eax
lea eax, [esp + 0x1e0]
push eax
lea eax, [esp + 0x1da]
push eax
lea eax, [esp + 0x1ca]
push eax
lea eax, [esp + 0x1ba]
push eax
push 0x408118
push esi
push 0x1f0
push 0x407d80
push 0x408404
call fcn.0041a5ac
add esp, 0x2c
lea ecx, [esp + 0x304]
call fcn.00420ab6
push 0x102
lea eax, [esp + 0x54e]
push eax
lea eax, [esp + 0x208]
push eax
call fcn.0041863c
push eax
mov edx, 0x1e6
lea ecx, [esp + 0x1c]
call fcn.00419cee
cmp dword [edi + 0x3a], esi
je 0x4243c0
push 0x40841c
push esi
push 0x200
push 0x407d80
push 0x408404
call fcn.0041a5ac
add esp, 0x14
push esi
call dword [edi + 0x3a]
push 0x408444
push esi
push 0x202
push 0x407d80
push 0x408404
call fcn.0041a5ac
add esp, 0x14
mov ecx, dword [esp + 0x684]
lea eax, [edi + 0x1d0]
push eax
mov edx, ebp
call fcn.0041e80a
test al, al
je 0x42442f
mov edx, dword [esp + 0x684]
lea ecx, [esp + 0x18]
push 1
call fcn.00423873
test al, al
je 0x42442f
push ecx
push ecx
lea eax, [esp + 0x18]
mov edx, ebp
push eax
call fcn.0041e599
test al, al
je 0x424419
push ecx
push dword [esp + 0x688]
lea ecx, [esp + 0x18]
call fcn.0041874a
mov ecx, eax
call fcn.0041e4c7
push 0x1e6
lea eax, [esp + 0x1c]
push eax
push 0x4297b8
call fcn.0041863c
mov bl, 1
movzx eax, bl
push eax
push 0x408468
push esi
push 0x210
push 0x407d80
push 0x408404
call fcn.0041a5ac
add esp, 0x18
lea eax, [esp + 0x18]
push 0x1e6
push esi
push eax
call fcn.0041869b
pop esi
jmp 0x424142