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

Disassembly:
push 0xffffffffffffffff
push 0x10012757
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001eb78]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
mov dword [esp + 0x28], esi
call fcn.1000f9e0
push 0x1001568a
cmp eax, 1
jne 0x10003f4f
mov esi, dword [esp + 0x50]
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_310]
jmp 0x100043fc
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea ecx, [ebp + 0xbc]
mov dword [esp + 0x44], esi
call fcn.10010ad0
lea ecx, [esp + 0x20]
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x28], esi
call fcn.10003cc0
mov edx, dword [ebp + 0x98]
sub edx, dword [ebp + 0x94]
lea esi, [ebp + 0x88]
sar edx, 2
test edx, edx
jbe 0x100041c1
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x10003fa4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x34], eax
cmp edi, dword [esi + 0x10]
jbe 0x10003fb8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
test eax, eax
je 0x10003fc4
cmp eax, dword [esp + 0x34]
je 0x10003fca
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x10003fda
push 0
push ebx
push edi
call fcn.10002c40
add esp, 0xc
push 0
mov ecx, esi
call fcn.10002f70
mov edi, dword [eax]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
lea edx, [esp + 0x24]
push edx
push edi
call eax
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_306]
mov edx, dword [edi]
mov ecx, dword [edx]
lea eax, [esp + 0x1c]
push eax
push 0x10019c04
push edi
mov byte [esp + 0x50], 1
call ecx
test eax, eax
jl 0x1000413a
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
push 0x1001ecbc
mov ecx, ebp
call fcn.10002810
cmp eax, 1
jne 0x1000411c
push 0xcc
call sub.mfc90.dll_Ordinal_798
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x44], 2
test eax, eax
je 0x1000406d
push 0
mov ecx, eax
call fcn.10001210
mov edi, eax
jmp 0x1000406f
xor edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x144]
push 0
push 0x3ec
mov ecx, edi
mov byte [esp + 0x4c], 1
call edx
cmp dword [0x1001ec84], 1
mov ecx, edi
jne 0x1000409b
push 1
call sub.mfc90.dll_Ordinal_6584
jmp 0x100040b3
push 0
call sub.mfc90.dll_Ordinal_6584
push 1
push 0
push 0
push 0
push 0
mov ecx, edi
call sub.mfc90.dll_Ordinal_4529
push ecx
lea eax, [ebp + 0x78]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x50], 3
call dword [sym.imp.mfc90.dll_Ordinal_300]
push ecx
lea eax, [ebp + 0x74]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x54], 4
call dword [sym.imp.mfc90.dll_Ordinal_300]
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x1001568a
mov byte [esp + 0x58], 5
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ecx, edi
mov byte [esp + 0x54], 1
call fcn.100013a0
mov dword [ebp + 0xb8], edi
jmp 0x1000412b
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x114]
call eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
xor edi, edi
sar ecx, 2
test ecx, ecx
jbe 0x10004184
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp edi, edx
jb 0x10004168
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc edi
sar eax, 2
cmp edi, eax
jb 0x10004155
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
cmp dword [esi + 0xc], eax
jbe 0x10004196
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x100041a6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
push ecx
push ebx
push edi
push eax
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.10003040
jmp 0x1000430d
mov eax, dword [ebp + 0xb0]
sub eax, dword [ebp + 0xac]
lea esi, [ebp + 0xa0]
sar eax, 2
test eax, eax
jbe 0x1000431c
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x100041ec
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x34], ecx
cmp edi, dword [esi + 0x10]
jbe 0x10004200
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
push ebx
push edx
push edi
push eax
call fcn.10002de0
add esp, 0x10
push 0
mov ecx, esi
call fcn.10002f70
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov bl, 6
push 0xcc
mov byte [esp + 0x48], bl
call sub.mfc90.dll_Ordinal_798
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x44], 7
test eax, eax
je 0x10004253
push 0
mov ecx, eax
call fcn.10001210
mov esi, eax
jmp 0x10004255
xor esi, esi
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
push 0
push 0x3ec
mov ecx, esi
mov byte [esp + 0x4c], bl
call edx
cmp dword [0x1001ec84], 1
mov ecx, esi
jne 0x10004280
push 1
call sub.mfc90.dll_Ordinal_6584
jmp 0x10004298
push 0
call sub.mfc90.dll_Ordinal_6584
push 1
push 0
push 0
push 0
push 0
mov ecx, esi
call sub.mfc90.dll_Ordinal_4529
push ecx
lea eax, [ebp + 0x78]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x50], 8
call dword [sym.imp.mfc90.dll_Ordinal_300]
push ecx
lea eax, [ebp + 0x74]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x54], 9
call dword [sym.imp.mfc90.dll_Ordinal_300]
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x1001568a
mov byte [esp + 0x58], 0xa
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ecx, esi
mov byte [esp + 0x54], bl
call fcn.100013a0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov dword [ebp + 0xb8], esi
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x1001568a
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
je 0x100043cb
lea esi, [ebp + 0x7c]
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 1
jle 0x100043b9
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 7
jge 0x100043b9
push ecx
mov edi, esp
mov dword [esp + 0x38], esp
push ecx
lea edx, [ebp + 0x80]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
push edi
call fcn.1000f1b0
add esp, 4
mov edi, esp
mov dword [esp + 0x38], esp
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x54], 0xb
call dword [sym.imp.mfc90.dll_Ordinal_300]
push edi
call fcn.1000f1b0
add esp, 4
mov ecx, esp
mov dword [esp + 0x38], esp
push esi
mov byte [esp + 0x54], 0xc
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x50], 0
call fcn.1000ff10
add esp, 0xc
mov ecx, ebp
call fcn.10001e60
mov ecx, dword [ebp + 0x20]
push 0
push eax
push 2
push ecx
jmp 0x100043db
mov ecx, ebp
call fcn.10001e60
mov edx, dword [ebp + 0x20]
push 0
push eax
push 2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_300]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4