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

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x270
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x268], rax
movzx eax, word [0x01001c50]
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x260], 0
mov qword [rsp + 0x258], 0
mov dword [rsp + 0x250], 0
mov eax, dword [0x01068148]
mov ecx, dword [rsp + 0x280]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x280], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x260], eax
xor eax, eax
cmp eax, 1
je 0x103009d
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x01066ba0]
call qword [0x01069178]
test eax, eax
jne 0x102fe5e
cmp dword [0x010689c0], 0
je 0x102fe51
cmp dword [0x01068484], 0
je 0x102fe51
lea rdx, [0x01007980]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066ba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x102fe84
cmp dword [0x01068484], 0
je 0x102fe84
lea rdx, [0x01007980]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [0x01069558], 0
jne 0x102fec5
lea rcx, [0x01066ba0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x102fec0
cmp dword [0x01068484], 0
je 0x102fec0
lea rdx, [0x01007980]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x103009d
lea rcx, [0x01066ba0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x102fef8
cmp dword [0x01068484], 0
je 0x102fef8
lea rdx, [0x01007980]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x280], 0
je 0x1030098
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x260]
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, eax
call sub.MSVCR80.dll_abs
cmp eax, dword [rsp + 0x280]
jl 0x1030098
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x01069558]
mov r8d, 0xf0
xor edx, edx
mov ecx, 1
call fcn.01034b80
mov dword [0x010689dc], 1
lea rcx, [0x01066ba0]
call qword [0x01069178]
test eax, eax
jne 0x102ffa1
cmp dword [0x010689c0], 0
je 0x102ff94
cmp dword [0x01068484], 0
je 0x102ff94
lea rdx, [0x01007980]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066ba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x102ffc7
cmp dword [0x01068484], 0
je 0x102ffc7
lea rdx, [0x01007980]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [0x01066c54], 0
je 0x1030059
mov dword [rsp + 0x250], 0
jmp 0x102fff2
mov eax, dword [rsp + 0x250]
add eax, 1
mov dword [rsp + 0x250], eax
mov eax, dword [0x01066c54]
cmp dword [rsp + 0x250], eax
jge 0x1030059
mov edx, dword [rsp + 0x250]
lea rcx, [0x01066c48]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x258], rax
cmp qword [rsp + 0x258], 0
je 0x1030057
mov rax, qword [rsp + 0x258]
add rax, 4
mov rcx, qword [rsp + 0x258]
mov ecx, dword [rcx]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov r8d, 0x137
xor edx, edx
mov ecx, 1
call fcn.01034b80
jmp 0x102ffe1
mov dword [0x0106955c], 0
lea rcx, [0x01066ba0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x1030096
cmp dword [0x01068484], 0
je 0x1030096
lea rdx, [0x01007980]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x103009d
jmp 0x102fe04
xor edx, edx
mov rcx, qword [0x01068958]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x103013c
mov r9d, 1
lea r8, [0x01007940]
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x50]
call fcn.01015b10
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x103013c
mov qword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1030131
mov rax, qword [rsp + 0x38]
mov dword [rax], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [0x01068e28], 0
je 0x1030153
mov rcx, qword [0x01068e28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x270
pop rdi
ret