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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405184
mov eax, dword [ebp + 0xc]
call fcn.00405184
xor eax, eax
push ebp
push 0x4ef528
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x4ef4b7
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00421954
lea eax, [ebp - 0x1c]
mov edx, 0x4ef540
call fcn.00405414
cmp dword [ebp + 0x14], 0
jbe 0x4eec92
lea eax, [ebp - 0x1c]
mov edx, 0x4ef54c
call fcn.00405414
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x56]
push eax
lea eax, [ebp - 0x4d]
push eax
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004ede5c
mov eax, 0x5d4434
mov edx, dword [ebp - 0x48]
call fcn.00404f5c
cmp byte [ebp - 0x4d], 0
je 0x4eecd8
mov esi, 0x800000
cmp word [ebp - 0x56], 0x1bb
je 0x4eecd2
mov bx, word [ebp - 0x56]
jmp 0x4eeceb
mov bx, 0x1bb
jmp 0x4eeceb
xor esi, esi
cmp word [ebp - 0x56], 0x50
je 0x4eece7
mov bx, word [ebp - 0x56]
jmp 0x4eeceb
mov bx, 0x50
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x98], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x9c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xa0], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4eed1f
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef475
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xc4]
test eax, eax
je 0x4eed8a
cmp dword [ebp - 0x60], 0
je 0x4eed62
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x60]
push eax
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.00405574
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xcc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
jmp 0x4eedb0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.00405574
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xcc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
jmp 0x4eedb0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.00405574
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xcc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4eedc3
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef475
mov eax, dword [ebp - 4]
cmp dword [eax + 0x98], 0
je 0x4eedf7
push 0
push ebx
mov eax, dword [ebp - 0x48]
call fcn.00405574
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xd4]
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4eee0a
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef475
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9c], 0
je 0x4eee4b
push esi
push 0
push 0
push 0
mov eax, dword [ebp - 0x4c]
call fcn.00405574
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405574
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xd8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xa0], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4eee5e
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef475
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eef10
push 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x3f
mov eax, dword [ebp - 4]
call fcn.004eeae4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
jbe 0x4eeeac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004eeae4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
jbe 0x4eeed2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 5
mov eax, dword [ebp - 4]
call fcn.004eeae4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
jbe 0x4eeef8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 6
mov eax, dword [ebp - 4]
call fcn.004eeae4
push 2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x3f
mov eax, dword [ebp - 4]
call fcn.004eeae4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eef30
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.004ee774
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eef4d
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004eeafc
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eef6a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004eeb74
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eef87
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004ee9cc
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eefa4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004eea58
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eefc1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004ef674
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eefde
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004ef774
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4eeffb
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004ef800
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4ef00e
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef475
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4ef0c6
mov eax, dword [ebp - 0x1c]
mov edx, 0x4ef540
call fcn.004056a0
jne 0x4ef051
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xe4]
mov dword [ebp - 0x14], eax
jmp 0x4ef0c6
cmp byte [ebp + 0x10], 0
jne 0x4ef06f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x4ef55c
mov eax, dword [ebp - 4]
call fcn.004ee958
jmp 0x4ef09e
lea eax, [ebp - 0x70]
mov ecx, dword [ebp + 0xc]
mov edx, 0x4ef5c4
call fcn.00404fe0
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
call fcn.00405564
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004ee958
push 0
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xe4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4ef0d9
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef475
cmp dword [ebp - 0x14], 0
je 0x4ef0f7
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xec]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4ef10a
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef475
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.004053b4
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004053b4
mov eax, dword [ebp - 4]
add eax, 0x34
call fcn.004053b4
mov eax, dword [ebp - 4]
add eax, 8
call fcn.004053b4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x64], edx
mov eax, dword [ebp - 4]
add eax, 0x68
call fcn.004053b4
mov eax, dword [ebp - 4]
add eax, 0x60
call fcn.00404cd4
mov eax, dword [ebp - 4]
add eax, 0x70
call fcn.004053b4
cmp dword [ebp - 0x14], 0
je 0x4ef27e
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x13
mov eax, dword [ebp - 4]
call fcn.004ee0c0
mov eax, dword [ebp - 4]
add eax, 0x38
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.004ee0c0
mov eax, dword [ebp - 4]
add eax, 0x34
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x1d
mov eax, dword [ebp - 4]
call fcn.004ee0c0
mov eax, dword [ebp - 4]
add eax, 0x70
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x21
mov eax, dword [ebp - 4]
call fcn.004ee0c0
mov eax, dword [ebp - 4]
add eax, 0x68
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x16
mov eax, dword [ebp - 4]
call fcn.004ee0c0
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x80000016
mov eax, dword [ebp - 4]
call fcn.004ee0c0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 5
mov eax, dword [ebp - 4]
call fcn.004ee144
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x64], edx
lea eax, [ebp - 0x54]
call fcn.004053b4
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov ecx, 0x2b
mov eax, dword [ebp - 4]
call fcn.004ee0c0
mov eax, dword [ebp - 4]
add eax, 0x60
mov edx, dword [ebp - 0x54]
call fcn.00404f5c
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
call fcn.004ee37c
xor eax, eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x2a], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x3c], eax
cmp byte [ebp + 8], 0
je 0x4ef2a4
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x4ef2b7
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef475
cmp dword [ebp - 0x14], 0
je 0x4ef475
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x4ef475
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xf4]
test eax, eax
jne 0x4ef31a
lea eax, [ebp - 0x78]
push eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
lea edx, [ebp - 0x80]
xor ecx, ecx
mov eax, 0x4ef5fc
call fcn.0040d608
mov eax, dword [ebp - 0x78]
call fcn.004ed860
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x4ef475
mov eax, dword [ebp - 0x10]
call fcn.0040be20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4ef344
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef463
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.0040840c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
push eax
mov eax, dword [ebp - 4]
call dword [eax + 0xf8]
test eax, eax
jne 0x4ef3a9
lea eax, [ebp - 0x84]
push eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
lea edx, [ebp - 0x80]
xor ecx, ecx
mov eax, 0x4ef62c
call fcn.0040d608
mov eax, dword [ebp - 0x84]
call fcn.004ed860
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4ef463
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x28]
call fcn.004214a8
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
jbe 0x4ef3d3
imul eax, dword [ebp - 0x24], 0x64
xor edx, edx
div dword [ebp - 0x20]
mov word [ebp - 0x2a], ax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jbe 0x4ef421
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
fild qword [ebp - 0x80]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebp - 0x88], eax
fild qword [ebp - 0x8c]
fdiv dword [0x4ef64c]
fdivp st(1)
fdiv dword [0x4ef650]
fstp qword [ebp - 0x38]
wait
xor eax, eax
push ebp
push 0x4ef459
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x4ef44f
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov ebx, dword [ebp - 4]
mov cx, word [ebp - 0x2a]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef463
mov eax, dword [ebp - 0x18]
call fcn.00402e94
cmp dword [ebp - 0x10], 0
jne 0x4ef2c1
cmp dword [ebp - 0x14], 0
jne 0x4ef4a8
lea eax, [ebp - 0x90]
push eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0
lea edx, [ebp - 0x80]
xor ecx, ecx
mov eax, 0x4ef65c
call fcn.0040d608
mov eax, dword [ebp - 0x90]
call fcn.004ed860
cmp dword [ebp - 0x14], 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 4]
call fcn.004ef710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef52f
lea eax, [ebp - 0x90]
call fcn.00404cd4
lea eax, [ebp - 0x84]
call fcn.00404cd4
lea eax, [ebp - 0x78]
call fcn.00404cd4
lea eax, [ebp - 0x74]
call fcn.004053b4
lea eax, [ebp - 0x70]
call fcn.00404cd4
lea eax, [ebp - 0x6c]
call fcn.004053b4
lea eax, [ebp - 0x54]
call fcn.004053b4
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004053cc
lea eax, [ebp - 0x1c]
call fcn.004053b4
lea eax, [ebp - 8]
call fcn.00404cd4
lea eax, [ebp + 0xc]
call fcn.00404cd4
ret