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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1007f7da
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097060]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x597dc]
cmp ecx, 2
jne 0x1003d759
mov ebx, dword [eax + 0x59774]
xor edi, edi
cmp ebx, edi
je 0x1003d759
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov eax, ebp
call fcn.10001990
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x597e0]
cmp eax, 4
jne 0x1003c17f
mov ecx, dword [0x1009a210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [0x1009a210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.1001be00
push ebp
call fcn.10004230
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x597b0], edi
ja 0x1003c1cf
mov ecx, dword [0x1009a210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebx + 0xfc], edi
mov eax, dword [ebp + 0x14]
add eax, 0x597e8
lea ebx, [esp + 0x38]
mov dword [esp + 0x38], 2
call fcn.100053d0
mov dword [eax], edi
mov dword [ebp + 0x38], edi
jmp 0x1003d7c5
cmp dword [ebx + 0xa4], edi
jne 0x1003d7c5
cmp dword [ebx + 0xa8], edi
jne 0x1003d7c5
add eax, 0x597a8
cmp dword [eax + 8], edi
mov dword [esp + 0x38], eax
jne 0x1003c200
push ebx
call fcn.10004080
jmp 0x1003d7c5
lea ecx, [esp + 0x34]
push ecx
mov ecx, 0x1008a458
call fcn.10001a30
lea edx, [esp + 0x34]
lea ecx, [ebp + 0x68]
push edx
mov dword [esp + 0xc4], edi
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
cmp esi, edi
je 0x1003c2a1
mov esi, dword [esi]
call fcn.10064990
test eax, eax
je 0x1003c2a1
mov eax, dword [esp + 0x30]
mov edi, dword [eax]
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x1003c2a1
cmp dword [ebx + 0x60], 0x32
jbe 0x1003c2a1
call fcn.1004ad60
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [ecx]
push eax
mov ecx, ebx
call edx
jmp 0x1003d7c5
lea eax, [esp + 0x34]
push eax
mov ecx, 0x1008a464
call fcn.10001a30
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 1
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003c356
mov esi, dword [esi]
call fcn.10064990
test eax, eax
je 0x1003c356
mov edx, dword [esp + 0x30]
mov edi, dword [edx]
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x1003c356
cmp dword [ebx + 0x60], 0x32
jbe 0x1003c356
mov edi, 0x1cba2
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x1003c356
call fcn.1004ad60
mov ecx, dword [ebp + 0x80]
mov edx, dword [esp + 0x30]
mov eax, dword [ebx]
push ecx
mov ecx, dword [edx]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, ebx
call edx
jmp 0x1003d7c5
mov eax, dword [esp + 0x38]
call fcn.100052e0
mov esi, eax
mov dword [esp + 0x34], esi
call fcn.1005a620
fld dword [esi + 0xc]
fstp dword [esp + 0x60]
lea eax, [esp + 0x48]
fld dword [esi + 8]
lea ecx, [esp + 0x5c]
fstp dword [esp + 0x5c]
fld dword [esi + 0x10]
fstp dword [esp + 0x64]
fld dword [esi + 0x14]
fstp dword [esp + 0x68]
fld dword [ebx + 0x24]
fstp dword [esp + 0x4c]
fld dword [ebx + 0x20]
fstp dword [esp + 0x48]
fld dword [ebx + 0x28]
fstp dword [esp + 0x50]
fld dword [ebx + 0x2c]
fstp dword [esp + 0x54]
call fcn.10023f00
fst qword [esp + 0x3c]
fcomp qword [0x1008b750]
fnstsw ax
test ah, 0x41
jp 0x1003c458
fld dword [esp + 0x5c]
sub esp, 0x10
fsub dword [esp + 0x58]
fstp qword [esp + 8]
fld dword [esp + 0x70]
fsub dword [esp + 0x5c]
fstp qword [esp]
call fcn.10059120
fstp dword [esp + 0x40]
add esp, 4
fld dword [0x1008b71c]
fstp dword [esp + 8]
fld dword [esp + 0x60]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fstp dword [esp]
call fcn.10022b80
add esp, 0xc
test eax, eax
jne 0x1003c422
push ebx
call fcn.10004080
fld dword [esp + 0x30]
push ecx
fstp dword [esp]
call fcn.10022bd0
mov edi, dword [esp + 0x34]
call fcn.10004d90
test eax, eax
jne 0x1003c458
mov eax, edi
call fcn.10004040
cmp eax, 0x64
jne 0x1003d7c5
mov eax, dword [esp + 0x38]
call fcn.10005300
mov eax, dword [ebp + 0x14]
push eax
mov eax, edi
call fcn.1001ca30
jmp 0x1003d7c5
call fcn.10064a60
test eax, eax
mov esi, dword [esp + 0x34]
je 0x1003c48e
mov eax, esi
call fcn.10003fe0
test eax, eax
jne 0x1003c48e
mov al, 0
mov ecx, dword [0x1009a43c]
mov byte [ecx], al
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, esi
call fcn.1001ca30
mov eax, dword [esp + 0x38]
call fcn.10005300
cmp dword [ebp + 0x38], 0
mov edi, 0x211
jne 0x1003c4b5
fld dword [ebx + 0x24]
fstp dword [ebp + 0x28]
fld dword [ebx + 0x20]
fstp dword [ebp + 0x24]
fld dword [ebx + 0x28]
fstp dword [ebp + 0x2c]
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x38], 1
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
push ecx
push eax
mov eax, ebx
call fcn.100040c0
test eax, eax
je 0x1003c5b6
fld qword [0x1008b798]
fld qword [esp + 0x3c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x1003c516
fld dword [esp + 0x60]
mov dword [ebp + 0x34], edi
fld dword [esp + 0x4c]
mov dword [ebp + 0x38], 1
fsubr st(1)
fdiv st(2)
fsubp st(1)
fstp dword [ebp + 0x28]
fld dword [esp + 0x5c]
fld dword [esp + 0x48]
fsubr st(1)
fdivrp st(2)
fsubrp st(1)
fstp dword [ebp + 0x24]
fld dword [esp + 0x64]
fstp dword [ebp + 0x2c]
jmp 0x1003c518
fstp st(0)
fld dword [esp + 0x5c]
sub esp, 0x10
fsub dword [esp + 0x58]
fstp qword [esp + 8]
fld dword [esp + 0x70]
fsub dword [esp + 0x5c]
fstp qword [esp]
call fcn.10059120
fstp dword [esp + 0x40]
add esp, 4
fld dword [0x1008b7e8]
fstp dword [esp + 8]
fld dword [esp + 0x60]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fstp dword [esp]
call fcn.10022b80
add esp, 0xc
test eax, eax
jne 0x1003c576
push ebx
call fcn.10004080
fld dword [esp + 0x30]
push ecx
fstp dword [esp]
call fcn.10022bd0
mov edx, dword [ebp + 0x34]
lea eax, [ebp + 0x24]
mov ecx, 1
mov esi, ebx
call fcn.1004a2f0
cmp eax, 2
jne 0x1003c5a8
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x34]
push edx
call fcn.1001ca30
mov eax, dword [esp + 0x38]
call fcn.10005300
jmp 0x1003c680
cmp eax, 1
jne 0x1003c687
jmp 0x1003c680
fld dword [esi + 0xc]
fstp dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
fld dword [esi + 8]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x80]
fstp dword [esp + 0x70]
fld dword [esi + 0x10]
mov eax, dword [esp + 0x70]
fstp dword [esp + 0x78]
mov edx, dword [esp + 0x78]
fld dword [esi + 0x14]
mov dword [esp + 0x5c], eax
fstp dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
fld dword [ebx + 0x24]
mov dword [esp + 0x64], edx
fstp dword [esp + 0x4c]
mov dword [esp + 0x68], eax
fld dword [ebx + 0x20]
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x48]
fld dword [ebx + 0x28]
fstp dword [esp + 0x50]
fld dword [ebx + 0x2c]
fstp dword [esp + 0x54]
call fcn.10065c10
test al, al
je 0x1003c631
lea eax, [esp + 0x48]
lea ecx, [esp + 0x5c]
call fcn.10023f00
jmp 0x1003c661
fld dword [esp + 0x48]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [esp + 0x5c]
fstp dword [esp + 8]
fld dword [esp + 0x80]
fstp dword [esp + 4]
fld dword [esp + 0x84]
fstp dword [esp]
call fcn.10017880
add esp, 0x10
fst qword [esp + 0x3c]
fld qword [0x1008b798]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1003d75d
push ebx
fstp st(0)
call fcn.10004080
mov dword [ebp + 0x38], 0
fld dword [esp + 0x5c]
sub esp, 0x10
fsub dword [esp + 0x58]
fstp qword [esp + 8]
fld dword [esp + 0x70]
fsub dword [esp + 0x5c]
fstp qword [esp]
call fcn.10059120
fstp dword [esp + 0x48]
add esp, 4
fld dword [0x1008b7e8]
fstp dword [esp + 8]
fld dword [esp + 0x60]
fstp dword [esp + 4]
fld dword [esp + 0x44]
fstp dword [esp]
call fcn.10022b80
add esp, 0xc
test eax, eax
jne 0x1003c6e5
push ebx
call fcn.10004080
fld dword [esp + 0x38]
push ecx
fstp dword [esp]
call fcn.10022bd0
push 0x11
call fcn.1004b2a0
test eax, eax
je 0x1003c71a
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx]
add eax, 0x18
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
test eax, eax
je 0x1003c71a
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
call eax
test eax, eax
jle 0x1003c71a
mov edx, dword [ebx]
mov eax, dword [edx + 0x58]
mov ecx, ebx
call eax
push 0x12
call fcn.1004b2a0
test eax, eax
je 0x1003c74f
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx]
add eax, 0x18
push eax
mov eax, dword [edx + 0x3c]
mov ecx, ebx
call eax
test eax, eax
je 0x1003c74f
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
mov ecx, ebx
call eax
test eax, eax
jle 0x1003c74f
mov edx, dword [ebx]
mov eax, dword [edx + 0x5c]
mov ecx, ebx
call eax
push 0x19
call fcn.1004b2a0
test eax, eax
je 0x1003c774
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
push 0x19
mov ecx, ebx
call eax
test eax, eax
jle 0x1003c774
mov edx, dword [ebx]
mov eax, dword [edx + 0x64]
push 0x19
mov ecx, ebx
call eax
push 0x1a
call fcn.1004b2a0
test eax, eax
je 0x1003c799
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
push 0x1a
mov ecx, ebx
call eax
test eax, eax
jle 0x1003c799
mov edx, dword [ebx]
mov eax, dword [edx + 0x64]
push 0x1a
mov ecx, ebx
call eax
fld qword [0x1008b7f8]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 1
jne 0x1003d759
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x3c]
cmp eax, 0x1f4
jbe 0x1003d759
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x1008a548
call fcn.10001a30
lea edx, [esp + 0x38]
lea edi, [ebp + 0x68]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 2
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003c875
cmp dword [esi + 0x14], 0
jne 0x1003c875
mov eax, esi
mov esi, dword [eax]
call fcn.10064990
test eax, eax
je 0x1003c875
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x64]
push ecx
push eax
mov eax, ebx
call fcn.100040c0
test eax, eax
je 0x1003c875
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [ecx]
push eax
mov ecx, ebx
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x3c], eax
jmp 0x1003d7c5
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a550
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 3
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003c936
cmp dword [esi + 0x14], 0
jne 0x1003c936
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003c936
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x64]
push ecx
push eax
mov eax, ebx
call fcn.100040c0
test eax, eax
je 0x1003c936
fld qword [0x1008b7f0]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x1003c936
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 0x80]
mov eax, dword [ebx]
push ecx
mov ecx, dword [edx]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, ebx
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x3c], eax
jmp 0x1003d7c5
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a470
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 4
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003c9cb
cmp dword [esi + 0x14], 0
jne 0x1003c9cb
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003c9cb
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x64]
push ecx
push eax
mov eax, ebx
call fcn.100040c0
test eax, eax
je 0x1003c9cb
cmp dword [ebx + 0x58], 1
ja 0x1003c911
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a478
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 5
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003ca5a
cmp dword [esi + 0x14], 0
jne 0x1003ca5a
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003ca5a
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x64]
push ecx
push eax
mov eax, ebx
call fcn.100040c0
test eax, eax
jne 0x1003c911
fld qword [0x1008b798]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 1
jne 0x1003d759
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a484
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 6
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003cb0a
cmp dword [esi + 0x14], 0
jne 0x1003cb0a
mov esi, dword [esi]
call fcn.10064990
test eax, eax
je 0x1003cb0a
cmp dword [ebx + 0x58], 3
jb 0x1003cb0a
mov edi, 0x1d925
mov eax, ebx
call fcn.1004a950
test eax, eax
je 0x1003cb0a
mov eax, dword [ebp + 0x80]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [ecx]
push eax
jmp 0x1003d747
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a490
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
lea edi, [ebp + 0x68]
mov ecx, edi
mov dword [esp + 0xc4], 7
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003cbba
cmp dword [esi + 0x14], 0
jne 0x1003cbba
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003cbba
mov eax, ebx
call fcn.100040a0
cmp eax, 0x46
ja 0x1003cbba
cmp dword [ebx + 0x60], 0x28
jbe 0x1003cbba
mov ecx, dword [ebp + 0x80]
mov edx, dword [esp + 0x30]
mov eax, dword [ebx]
push ecx
mov ecx, dword [edx]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, ebx
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x3c], eax
xor eax, eax
jmp 0x1003d7ca
mov eax, ebx
call fcn.100040a0
cmp eax, 0x3c
ja 0x1003cc79
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a49c
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 8
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003cc79
cmp dword [esi + 0x14], 0
jne 0x1003cc79
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003cc79
cmp dword [ebx + 0x60], 0x3c
jbe 0x1003cc79
fld dword [esp + 0x50]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x54]
fstp dword [esp + 4]
fld dword [esp + 0x58]
fstp dword [esp]
call fcn.1004e720
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x3c], eax
xor eax, eax
jmp 0x1003d7ca
mov eax, ebx
call fcn.100040a0
cmp eax, 0x41
ja 0x1003cd38
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x1008a558
call fcn.10001a30
lea edx, [esp + 0x38]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 9
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003cd38
cmp dword [esi + 0x14], 0
jne 0x1003cd38
mov eax, esi
mov esi, dword [eax]
call fcn.10064990
test eax, eax
je 0x1003cd38
cmp dword [ebx + 0x58], 3
jb 0x1003cd38
fld dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x54]
fstp dword [esp + 4]
fld dword [esp + 0x58]
fstp dword [esp]
call fcn.1004e720
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x3c], eax
xor eax, eax
jmp 0x1003d7ca
mov edx, dword [esp + 0x34]
cmp dword [edx + 0x6c], 0
je 0x1003cdc9
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4a4
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0xa
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x34], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003cdc9
cmp dword [esi + 0x14], 0
jne 0x1003cdc9
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003cdc9
cmp dword [ebx + 0x60], 0x1e
jbe 0x1003cdc9
mov edx, dword [esp + 0x34]
jmp 0x1003c915
mov eax, ebx
call fcn.100040a0
cmp eax, 0x28
ja 0x1003ce5f
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4b4
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0xb
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003ce5f
cmp dword [esi + 0x14], 0
jne 0x1003ce5f
mov esi, dword [esi]
call fcn.10064990
test eax, eax
je 0x1003ce5f
mov edi, 0x1d87a
mov eax, ebx
call fcn.1004a950
test eax, eax
je 0x1003caf7
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4bc
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
lea edi, [ebp + 0x68]
mov ecx, edi
mov dword [esp + 0xc4], 0xc
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003cee0
cmp dword [esi + 0x14], 0
jne 0x1003cee0
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003cee0
cmp dword [ebx + 0x58], 0
je 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4c4
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0xd
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003cf5e
cmp dword [esi + 0x14], 0
jne 0x1003cf5e
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003cf5e
cmp dword [ebx + 0x60], 0x1e
jbe 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4cc
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0xe
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003cfd6
cmp dword [esi + 0x14], 0
jne 0x1003cfd6
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
jne 0x1003cb93
push 7
mov eax, ebp
call fcn.10004c90
cmp eax, 2
jle 0x1003d3cc
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4e0
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0xf
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d060
cmp dword [esi + 0x14], 0
jne 0x1003d060
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
jne 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a560
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x10
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d0d8
cmp dword [esi + 0x14], 0
jne 0x1003d0d8
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
jne 0x1003cc44
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x1008a570
call fcn.10001a30
lea edx, [esp + 0x38]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 0x11
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d150
cmp dword [esi + 0x14], 0
jne 0x1003d150
mov eax, esi
mov esi, dword [eax]
call fcn.10064990
test eax, eax
jne 0x1003caf7
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4e8
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x12
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d1d4
cmp dword [esi + 0x14], 0
jne 0x1003d1d4
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003d1d4
cmp dword [ebx + 0x60], 0x28
jb 0x1003d1d4
cmp dword [ebx + 0x58], 3
jae 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4f0
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x13
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d252
cmp dword [esi + 0x14], 0
jne 0x1003d252
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003d252
cmp dword [ebx + 0x58], 2
jae 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, str.kp0qKNo_
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x14
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d2d0
cmp dword [esi + 0x14], 0
jne 0x1003d2d0
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003d2d0
cmp dword [ebx + 0x58], 2
jae 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4fc
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x15
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d34e
cmp dword [esi + 0x14], 0
jne 0x1003d34e
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003d34e
cmp dword [ebx + 0x60], 0x28
jae 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a508
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x16
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d3cc
cmp dword [esi + 0x14], 0
jne 0x1003d3cc
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003d3cc
cmp dword [ebx + 0x60], 0x3c
jae 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a584
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x17
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d444
cmp dword [esi + 0x14], 0
jne 0x1003d444
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
jne 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a514
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x18
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d4d1
cmp dword [esi + 0x14], 0
jne 0x1003d4d1
mov esi, dword [esi]
call fcn.10064990
test eax, eax
je 0x1003d4d1
cmp dword [ebx + 0x60], 0x1e
jb 0x1003d4d1
mov edx, dword [esp + 0x30]
mov edi, dword [edx]
mov eax, ebx
call fcn.1004a950
test eax, eax
je 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, str.mp_
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
lea edi, [ebp + 0x68]
mov ecx, edi
mov dword [esp + 0xc4], 0x19
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d552
cmp dword [esi + 0x14], 0
jne 0x1003d552
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003d552
cmp dword [ebx + 0x58], 2
jae 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a528
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x1a
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d5d0
cmp dword [esi + 0x14], 0
jne 0x1003d5d0
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003d5d0
cmp dword [ebx + 0x58], 2
jae 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a534
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x1b
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d654
cmp dword [esi + 0x14], 0
jne 0x1003d654
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1003d654
cmp dword [ebx + 0x60], 0x28
jbe 0x1003d654
cmp dword [ebx + 0x58], 2
jb 0x1003cb93
lea eax, [esp + 0x38]
push eax
mov ecx, 0x1008a4ac
call fcn.10001a30
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x1c
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d6cc
cmp dword [esi + 0x14], 0
jne 0x1003d6cc
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
jne 0x1003cb93
lea eax, [esp + 0x30]
push eax
mov ecx, str.R_e
call fcn.10001a30
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 0x1d
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x3c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x30]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1003d759
mov eax, dword [esi]
mov ecx, dword [0x1009a210]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x68]
call eax
test eax, eax
jne 0x1003d759
mov eax, dword [ebp + 0x80]
mov ecx, dword [esi]
push eax
push ecx
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
mov ecx, ebx
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x3c], eax
xor eax, eax
jmp 0x1003d7ca
fld dword [esp + 0x74]
lea eax, [ebp + 0x24]
fld dword [esp + 0x4c]
mov ecx, 1
fsubr st(1)
mov edx, edi
mov esi, ebx
mov dword [ebp + 0x34], edi
fdiv st(2)
mov dword [ebp + 0x38], ecx
fsubp st(1)
fstp dword [ebp + 0x28]
fld dword [esp + 0x70]
fld dword [esp + 0x48]
fsubr st(1)
fdivrp st(2)
fsubrp st(1)
fstp dword [eax]
fld dword [esp + 0x78]
fstp dword [ebp + 0x2c]
call fcn.1004a2f0
cmp eax, 2
jne 0x1003d7b9
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x38]
call fcn.1001ca30
mov eax, dword [esp + 0x38]
call fcn.10005300
jmp 0x1003d7be
cmp eax, 1
jne 0x1003d7c5
mov dword [ebp + 0x38], 0
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4