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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x28]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
mov edx, dword [0x47ca64]
call fcn.00405284
xor eax, eax
push ebp
push 0x50757a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x288], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xa]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28c], eax
cmp word [ebp - 0x28], 0x1b
jne 0x507144
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x5074fc
movzx eax, word [ebp - 0x28]
add eax, 0xfffffffa
cmp eax, 0x15
ja case.0x507163.6
mov al, byte [eax + 0x50716a]
jmp dword [eax*4 + 0x507180]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
test byte [eax + 0x24], 0xff
je 0x5071af
mov eax, dword [ebp - 4]
mov byte [eax + 0x1a0], 1
jmp case.0x507163.6
mov eax, dword [ebp - 4]
mov byte [eax + 0x1a0], 1
cmp word [ebp - 0x28], 0x17
jne 0x5071c5
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x5073f4
cmp word [ebp - 0x28], 0xbc3
jne 0x5071f7
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.004c9d34
test al, al
je 0x50755e
cmp word [ebp - 0x28], 0xbc5
jne 0x507231
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x5328dc]
mov eax, dword [eax]
movzx ecx, word [eax + 0xa]
mov eax, dword [0x5328dc]
mov eax, dword [eax]
movzx edx, word [eax + 8]
mov eax, dword [0x5327bc]
mov eax, dword [eax]
call fcn.004c9c80
test al, al
je 0x50755e
movzx eax, word [ebp - 0x28]
add eax, 0xfffff443
cmp eax, 0x18
ja case.0x507249.3005
mov al, byte [eax + 0x507250]
jmp dword [eax*4 + 0x507269]
mov eax, dword [ebp - 4]
add eax, 0x298
lea edx, [ebp - 0x28]
mov ecx, dword [0x47ca64]
call fcn.004053a4
movzx eax, word [ebp - 0x28]
add eax, 0xfffff43f
cmp eax, 0x14
ja case.0x5072a7.3009
mov al, byte [eax + 0x5072ae]
jmp dword [eax*4 + 0x5072c3]
mov word [ebp - 0x28], 0xd
jmp case.0x507249.3005
mov word [ebp - 0x28], 0x23
jmp case.0x507249.3005
mov word [ebp - 0x28], 0x24
jmp case.0x507249.3005
mov word [ebp - 0x28], 0x25
jmp case.0x507249.3005
mov word [ebp - 0x28], 0x26
jmp case.0x507249.3005
sub word [ebp - 0x28], 0xbb8
jmp case.0x507249.3005
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
je 0x507355
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x12c], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xa]
mov edx, dword [ebp - 4]
mov dword [edx + 0x130], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 0x134], eax
mov eax, dword [ebp - 4]
add eax, 0x298
lea edx, [ebp - 0x28]
mov ecx, dword [0x47ca64]
call fcn.004053a4
mov word [ebp - 0x28], 0xa97
jmp case.0x507249.3005
mov eax, dword [ebp - 4]
add eax, 0x298
lea edx, [ebp - 0x28]
mov ecx, dword [0x47ca64]
call fcn.004053a4
mov word [ebp - 0x28], 8
jmp case.0x507249.3005
mov eax, dword [ebp - 4]
add eax, 0x298
lea edx, [ebp - 0x28]
mov ecx, dword [0x47ca64]
call fcn.004053a4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 4]
mov edx, dword [ebp - 4]
mov word [edx + 0x29a], ax
sub word [ebp - 0x28], 0xbb8
mov eax, dword [ebp - 4]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x27c], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xa]
mov edx, dword [ebp - 4]
mov dword [edx + 0x280], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x284], eax
mov ax, word [ebp - 0x28]
sub ax, 0x11
je 0x507464
sub ax, 0xe
jne 0x5074c2
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1dc], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x50]
lea eax, [eax + eax*4]
mov edx, 0xc8
sub edx, eax
mov dword [ebp - 0x2c], edx
fild dword [ebp - 0x2c]
call fcn.00402bf8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x50
jle 0x507447
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x25c], eax
jmp 0x507454
mov eax, dword [ebp - 4]
mov dword [eax + 0x25c], 0x50
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x1d0], eax
jmp 0x5074e1
mov al, byte [ebp - 0x26]
mov edx, dword [ebp - 4]
mov byte [edx + 0x10], al
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5074e1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov esi, eax
lea edi, [edx + 0x178]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov dword [eax + 0x178], 0xffffffff
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18c], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + 0x190], eax
mov edx, 0x24
mov eax, dword [ebp - 0xc]
call fcn.004027bc
jmp 0x5074e1
mov ax, word [ebp - 0x24]
mov edx, dword [ebp - 4]
mov word [edx + 8], ax
mov ax, word [ebp - 0x20]
mov edx, dword [ebp - 4]
mov word [edx + 0xa], ax
mov al, byte [ebp - 0x26]
mov edx, dword [ebp - 4]
mov byte [edx + 0x10], al
movzx eax, word [ebp - 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1b4], eax
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b30
jmp 0x507523
cmp word [ebp - 0x28], 0x21
jne 0x507523
movzx eax, word [ebp - 0x28]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1b4], eax
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b30
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 1
cmp word [ebp - 0x28], 0x20
je 0x507531
cmp word [ebp - 0x28], 0x22
jne 0x507552
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004ca4b0
mov eax, dword [ebp - 4]
mov si, 0xfff9
call fcn.00403b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507581
lea eax, [ebp - 0x28]
mov edx, dword [0x47ca64]
call fcn.00405140
ret