Function at 0x102fc40
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push edi
mov ecx, 0xa
mov esi, 0x1007e3c
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x248], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x104c84c
call dword [0x104ef44]
test eax, eax
jne 0x102fcf1
cmp dword [0x104e7a8], 0
je 0x102fce6
cmp dword [0x104e0cc], 0
je 0x102fce6
lea edx, [ebp - 0x40]
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 0x102fd15
cmp dword [0x104e0cc], 0
je 0x102fd15
lea eax, [ebp - 0x40]
push eax
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x102fd27
mov dword [ebp - 0x24c], 1
jmp 0x102fd33
mov ecx, dword [0x104ca34]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
imul edx, edx, 0x24c
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x102fd59
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0x1007e04
push 0x100
lea eax, [ebp - 0x248]
push eax
call fcn.010120f0
add esp, 0x10
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 4
mov eax, dword [0x104ef3c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x103000a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x103000a
push 0
push 0
push 0
push 6
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x102fe04
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x102fdff
cmp dword [0x104e0cc], 0
je 0x102fdff
lea edx, [ebp - 0x40]
push edx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
jmp 0x103000a
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0
je 0x102fe4f
lea edx, [ebp - 4]
push edx
push fcn.010394c0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push 0
push 0x104ca2c
call dword [sym.imp.SQLSVC90.dll_SHRecMemBSLocate]
add esp, 0x1c
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x102fe4a
jmp 0x102fe8f
jmp 0x102ffd1
mov dword [ebp - 0x14], 0
jmp 0x102fe61
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x104ca34]
jge 0x102ffd1
mov eax, dword [ebp - 0x14]
push eax
push 0x104ca2c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x102ffcc
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x44]
add edx, 0x228
push edx
push 0x84
mov eax, dword [ebp - 0xc]
add eax, 0x10
push eax
call fcn.01010390
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x358]
mov dword [ecx + 0x118], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x35c]
mov dword [ecx + 0x11c], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x360]
mov dword [ecx + 0x120], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x364]
mov dword [ecx + 0x124], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x598]
mov dword [ecx + 0x128], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x368]
mov dword [ecx + 0x12c], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x36c]
mov dword [ecx + 0x130], eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x370
push ecx
push 0x84
mov edx, dword [ebp - 0xc]
add edx, 0x134
push edx
call fcn.01010390
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x588]
mov dword [eax + 0x23c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x58c]
mov dword [eax + 0x240], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x590]
mov dword [eax + 0x244], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x594]
mov dword [eax + 0x248], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x10]
mov dword [edx], ecx
cmp dword [ebp + 0xc], 0
je 0x102ffc1
jmp 0x102ffd1
mov eax, dword [ebp - 0xc]
add eax, 0x24c
mov dword [ebp - 0xc], eax
jmp 0x102fe58
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x1030000
cmp dword [0x104e0cc], 0
je 0x1030000
lea ecx, [ebp - 0x40]
push ecx
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret