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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
mov ecx, 6
mov esi, 0x1008288
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x34], 0
push 0x104c84c
call dword [0x104ef44]
test eax, eax
jne 0x1038186
cmp dword [0x104e7a8], 0
je 0x103817b
cmp dword [0x104e0cc], 0
je 0x103817b
lea eax, [ebp - 0x30]
push eax
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x10381aa
cmp dword [0x104e0cc], 0
je 0x10381aa
lea ecx, [ebp - 0x30]
push ecx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x10381bc
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x104ca34]
jge 0x1038207
mov ecx, dword [ebp - 0xc]
push ecx
push 0x104ca2c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1038205
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x588], 0
je 0x1038205
push 0
push 0
push 0x1008284
push 5
mov eax, dword [ebp - 0x34]
push eax
call fcn.01039270
add esp, 0x14
jmp 0x10381b3
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1038236
cmp dword [0x104e0cc], 0
je 0x1038236
lea ecx, [ebp - 0x30]
push ecx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104c84c
call dword [0x104ef44]
test eax, eax
jne 0x1038288
cmp dword [0x104e7a8], 0
je 0x103827d
cmp dword [0x104e0cc], 0
je 0x103827d
lea edx, [ebp - 0x30]
push edx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x10382ac
cmp dword [0x104e0cc], 0
je 0x10382ac
lea eax, [ebp - 0x30]
push eax
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x10382c5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x104ca34]
jge 0x1038302
mov eax, dword [ebp - 0xc]
push eax
push 0x104ca2c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1038300
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x588], 0
je 0x1038300
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x10382bc
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1038331
cmp dword [0x104e0cc], 0
je 0x1038331
lea eax, [ebp - 0x30]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [ebp - 4], 0
je 0x103834c
mov ecx, dword [ebp - 4]
push ecx
push 0xba
push 0
push 3
call fcn.01028fb0
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x10384d1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x10], 0x1388
jb 0x1038477
mov dword [ebp - 4], 0
push 0x104c84c
call dword [0x104ef44]
test eax, eax
jne 0x10383b3
cmp dword [0x104e7a8], 0
je 0x10383a8
cmp dword [0x104e0cc], 0
je 0x10383a8
lea edx, [ebp - 0x30]
push edx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x10383d7
cmp dword [0x104e0cc], 0
je 0x10383d7
lea eax, [ebp - 0x30]
push eax
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x10383e9
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x104ca34]
jge 0x1038426
mov eax, dword [ebp - 0xc]
push eax
push 0x104ca2c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1038424
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x588], 0
je 0x1038424
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x10383e0
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1038455
cmp dword [0x104e0cc], 0
je 0x1038455
lea eax, [ebp - 0x30]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [ebp - 4], 0
je 0x1038470
mov ecx, dword [ebp - 4]
push ecx
push 0xba
push 0
push 3
call fcn.01028fb0
add esp, 0x10
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
add edx, 0x1f4
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cdq
mov ecx, 0x3e8
idiv ecx
push eax
call sub.MSVCR80.dll_abs
add esp, 4
cmp eax, dword [0x104dd94]
jl 0x10384cc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x104dd94]
push eax
push 0xbc
push 0
push 2
call fcn.01028fb0
add esp, 0x14
mov dword [0x104e7c4], 1
jmp 0x10384d1
jmp 0x103834c
cmp dword [0x104e7c4], 0
jne 0x1038608
push 0x104c84c
call dword [0x104ef44]
test eax, eax
jne 0x103851c
cmp dword [0x104e7a8], 0
je 0x1038511
cmp dword [0x104e0cc], 0
je 0x1038511
lea ecx, [ebp - 0x30]
push ecx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1038540
cmp dword [0x104e0cc], 0
je 0x1038540
lea edx, [ebp - 0x30]
push edx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x1038552
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x104ca34]
jge 0x10385d9
mov edx, dword [ebp - 0xc]
push edx
push 0x104ca2c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10385d4
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x59c], 0
je 0x10385d4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x59c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x59c], 0
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0xe3c], 0
je 0x10385d4
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xe3c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xe3c]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 8]
call ecx
mov edx, dword [ebp - 0x34]
mov dword [edx + 0xe3c], 0
jmp 0x1038549
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1038608
cmp dword [0x104e0cc], 0
je 0x1038608
lea eax, [ebp - 0x30]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret