Function at 0x1024da0
Capabilities:
Check for time delay via gettickcount
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
push edi
mov ecx, 0xd
mov esi, 0x10065b0
lea edi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov edx, dword [ebp + 8]
add edx, dword [0x104dd94]
mov dword [ebp + 8], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x254], eax
mov eax, 1
test eax, eax
je 0x10250a0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104c8c4
call dword [0x104ef44]
test eax, eax
jne 0x1024e8b
cmp dword [0x104e7a8], 0
je 0x1024e80
cmp dword [0x104e0cc], 0
je 0x1024e80
lea ecx, [ebp - 0x250]
push ecx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c8c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1024eb2
cmp dword [0x104e0cc], 0
je 0x1024eb2
lea edx, [ebp - 0x250]
push edx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [0x104f4e0], 0
jne 0x1024ef2
push 0x104c8c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1024eed
cmp dword [0x104e0cc], 0
je 0x1024eed
lea eax, [ebp - 0x250]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
jmp 0x10250a0
push 0x104c8c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1024f24
cmp dword [0x104e0cc], 0
je 0x1024f24
lea ecx, [ebp - 0x250]
push ecx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [ebp + 8], 0
je 0x102509b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x254]
cdq
mov ecx, 0x3e8
idiv ecx
push eax
call sub.MSVCR80.dll_abs
add esp, 4
cmp eax, dword [ebp + 8]
jl 0x102509b
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x104f4e0]
push eax
push 0xf0
push 0
push 1
call fcn.01028fb0
add esp, 0x14
mov dword [0x104e7c4], 1
push 0x104c8c4
call dword [0x104ef44]
test eax, eax
jne 0x1024fba
cmp dword [0x104e7a8], 0
je 0x1024faf
cmp dword [0x104e0cc], 0
je 0x1024faf
lea ecx, [ebp - 0x250]
push ecx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c8c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1024fe1
cmp dword [0x104e0cc], 0
je 0x1024fe1
lea edx, [ebp - 0x250]
push edx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [0x104c934], 0
je 0x102505d
mov dword [ebp - 0x214], 0
jmp 0x1025005
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [0x104c934]
jge 0x102505d
mov edx, dword [ebp - 0x214]
push edx
push 0x104c92c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x102505b
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x218]
add edx, 4
push edx
push 0x137
push 0
push 1
call fcn.01028fb0
add esp, 0x14
jmp 0x1024ff6
mov dword [0x104f4e4], 0
push 0x104c8c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1025099
cmp dword [0x104e0cc], 0
je 0x1025099
lea eax, [ebp - 0x250]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
jmp 0x10250a0
jmp 0x1024e32
push 0
mov ecx, dword [0x104e774]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1025120
push 1
push 0x1006574
push 0x100
lea edx, [ebp - 0x210]
push edx
call fcn.010120f0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1025120
push 4
push 0
push 0
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1025116
mov edx, dword [ebp - 8]
mov dword [edx], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x104ef28], 0
je 0x1025136
mov edx, dword [0x104ef28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret