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

Disassembly:
push 0xffffffffffffffff
push 0x100a078b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c60c8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
xor esi, esi
cmp dword [eax], esi
je 0x100246d2
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0xa0], esi
mov eax, 0x8000
lea ecx, [esp + 0x44]
call fcn.10022a40
push 4
mov ecx, ebp
mov dword [esp + 0x20], 4
call fcn.10023a80
test al, al
jne 0x100240ab
mov dword [esp + 0xa0], 0xffffffff
jmp 0x100246b5
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov cl, byte [ebp + 0xec]
test cl, cl
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
jne 0x1002466c
lea esp, [esp]
mov ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x34]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
mov dword [esp + 0x20], esi
mov edi, 0x8000
je 0x100243fc
mov edx, dword [ebp + 0x2c]
cmp eax, edx
mov esi, dword [ebp + 0x28]
jb 0x100243fc
ja 0x10024104
cmp ecx, esi
jb 0x100243fc
sub ecx, esi
sbb eax, edx
mov edx, ecx
or edx, eax
jne 0x100243f0
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.100239d0
mov byte [esp + 0xa0], 1
cmp dword [esp + 0x18], 0
je 0x10024583
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [esp + 0x18]
mov esi, edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
mov edi, eax
mov eax, dword [ebp + 0x10]
lea ebx, [ebp + 0x18]
push ebx
push eax
call edx
test al, al
je 0x100242db
mov ecx, dword [ebp + 0x20]
add ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x24]
adc eax, dword [ebp + 0x34]
cmp eax, esi
jb 0x100242db
ja 0x1002417e
cmp ecx, edi
jb 0x100242db
mov eax, dword [esp + 0xac]
mov esi, dword [eax]
mov eax, dword [esp + 0x48]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], ecx
je 0x100241a3
mov ecx, dword [esp + 0x4c]
sub ecx, eax
sar ecx, 1
jne 0x100241ad
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0x8000
push eax
mov ecx, esi
call edx
cmp eax, 1
mov eax, dword [esp + 0x20]
jne 0x100241d7
test eax, eax
je 0x10024583
test eax, eax
jbe 0x10024583
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], 0
call esi
sub eax, dword [esp + 0x28]
cmp eax, 0x7d0
jbe 0x1002420a
call esi
lea ecx, [ebp + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10024583
mov ecx, 8
mov esi, ebx
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, eax
call edx
test al, al
je 0x10024583
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0xac]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
xor edi, edi
add esi, dword [esp + 0x64]
adc edi, dword [esp + 0x68]
add esi, dword [esp + 0x5c]
adc edi, dword [esp + 0x60]
call eax
cmp esi, eax
jne 0x10024583
cmp edi, edx
jne 0x10024583
mov eax, dword [esp + 0x48]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x10024289
mov ecx, dword [esp + 0x4c]
sub ecx, eax
sar ecx, 1
jne 0x10024293
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push ecx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
call edx
test al, al
je 0x10024583
mov ecx, 8
lea esi, [esp + 0x54]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1002455e
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
jmp 0x1002455e
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.100239d0
mov byte [esp + 0xa0], 2
mov ebx, dword [eax]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10024318
test ebx, ebx
je 0x10024309
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10024314
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0xa0], 1
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1002432f
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0
je 0x100245ab
mov ecx, edi
and ecx, esi
cmp ecx, 0xffffffff
mov eax, edi
mov edx, esi
je 0x10024357
sub edi, dword [ebp + 0x20]
sbb esi, dword [ebp + 0x24]
sub edi, dword [ebp + 0x30]
sbb esi, dword [ebp + 0x34]
mov eax, edi
mov edx, esi
lea ebx, [ebp + 0x18]
mov ecx, 8
mov esi, ebx
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
lea edi, [esp + 0x74]
push edi
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
test al, al
je 0x1002458b
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esp + 0x84]
add ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x88]
adc esi, dword [esp + 0x80]
cmp ecx, eax
jne 0x10024579
cmp esi, edx
jne 0x10024579
mov esi, edi
xor eax, eax
mov ecx, 8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
mov byte [esp + 0xa0], al
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x1002455e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
jmp 0x1002455e
test eax, eax
ja 0x100243fc
jb 0x100243fa
cmp ecx, edi
jae 0x100243fc
mov edi, ecx
mov eax, dword [esp + 0x48]
test eax, eax
mov ecx, dword [esp + 0xac]
mov esi, dword [ecx]
mov dword [esp + 0x30], 0
je 0x1002441f
mov edx, dword [esp + 0x4c]
sub edx, eax
sar edx, 1
jne 0x10024429
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
push ecx
push edi
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x20], 0
mov edi, eax
jbe 0x100244e9
mov dword [esp + 0x24], 0
call ebx
sub eax, dword [esp + 0x28]
cmp eax, 0x7d0
jbe 0x10024470
call ebx
lea ecx, [ebp + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [esp + 0x20]
add dword [ebp + 0x28], eax
lea ecx, [esp + 0x2c]
push ecx
adc dword [ebp + 0x2c], 0
mov ecx, ebp
call fcn.100239d0
mov byte [esp + 0xa0], 3
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x100245b5
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100244ad
mov edx, dword [esp + 0x4c]
sub edx, eax
sar edx, 1
jne 0x100244b7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push ecx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
call edx
test al, al
je 0x100245b5
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x100244e9
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
cmp edi, 1
jne 0x1002453e
mov ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x34]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x1002463b
mov edx, dword [ebp + 0x2c]
cmp edx, eax
ja 0x1002463b
jb 0x10024519
mov eax, dword [ebp + 0x28]
cmp eax, ecx
jae 0x1002463b
cmp dword [esp + 0x24], 3
jae 0x100245cb
mov eax, dword [ebp + 0xc8]
test eax, eax
je 0x10024537
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add dword [esp + 0x24], 1
jmp 0x1002455e
cmp edi, 0x8000000a
jne 0x10024556
cmp dword [esp + 0x20], 0
jne 0x1002455e
push 1
call sub.KERNEL32.dll_Sleep
jmp 0x1002455e
test edi, edi
jne 0x1002467d
mov cl, byte [ebp + 0xec]
test cl, cl
jne 0x1002466c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
jmp 0x100240d0
mov dword [esp + 0x1c], 0x65
jmp 0x1002458b
mov dword [esp + 0x1c], 6
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1002466c
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
jmp 0x1002466c
mov dword [esp + 0x1c], 0x64
jmp 0x1002458b
mov dword [esp + 0x1c], 0x64
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x2c]
jmp 0x10024597
cmp dword [esp + 0x30], 0
mov dword [esp + 0x1c], 0x68
jne 0x1002466c
call fcn.100251a0
test al, al
je 0x1002466c
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.100239d0
mov byte [esp + 0xa0], 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10024622
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push eax
call edx
test al, al
je 0x10024622
mov dword [esp + 0x1c], 6
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1002466c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
jmp 0x1002466c
mov eax, dword [ebp + 0x28]
cmp eax, ecx
jne 0x10024654
mov ecx, dword [ebp + 0x2c]
cmp ecx, dword [ebp + 0x34]
jne 0x10024654
mov dword [esp + 0x1c], 6
jmp 0x1002466c
cmp dword [esp + 0x30], 0
jne 0x10024664
call fcn.100251a0
test al, al
jne 0x1002468d
mov dword [esp + 0x1c], 0x68
mov cl, byte [ebp + 0xec]
test cl, cl
je 0x10024697
mov eax, 0x64
jmp 0x100246a0
mov edx, dword [ebp + 0x28]
cmp edx, dword [ebp + 0x30]
jne 0x10024664
mov eax, dword [ebp + 0x2c]
cmp eax, dword [ebp + 0x34]
jne 0x10024664
mov dword [esp + 0x1c], 6
jmp 0x1002466c
mov eax, dword [esp + 0x1c]
cmp eax, 4
je 0x100246a8
push eax
mov ecx, ebp
call fcn.10023a80
mov dword [esp + 0xa0], 0xffffffff
xor esi, esi
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x100246c6
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 8