Function at 0x103be70
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x298
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x288], rax
movzx eax, word [0x01001c38]
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
lea rcx, [0x01065ad8]
call qword [0x01068178]
test eax, eax
jne 0x103bf29
cmp dword [0x010679c0], 0
je 0x103bf1c
cmp dword [0x01067484], 0
je 0x103bf1c
lea rdx, [0x01009390]
lea rcx, [0x01001b70]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01065ad8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010679c0], 0
je 0x103bf4f
cmp dword [0x01067484], 0
je 0x103bf4f
lea rdx, [0x01009390]
lea rcx, [0x01001b38]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp qword [rsp + 0x2b8], 0
je 0x103bf67
mov dword [rsp + 0x280], 1
jmp 0x103bf74
mov eax, dword [0x01065dd4]
mov dword [rsp + 0x280], eax
movsxd rax, dword [rsp + 0x280]
imul rax, rax, 0x24c
add rax, 4
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x2b0]
cmp qword [rax], 0
je 0x103bfb9
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x2b0]
mov qword [rax], 0
mov r9d, 1
lea r8, [0x01009358]
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.010158f0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 4
mov rdx, qword [0x01068168]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rsp + 0x2b0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x2b0]
cmp qword [rax], 0
je 0x103c384
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x103c088
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x2b0]
mov qword [rax], 0
lea rcx, [0x01065ad8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010679c0], 0
je 0x103c081
cmp dword [0x01067484], 0
je 0x103c081
lea rdx, [0x01009390]
lea rcx, [0x01001b00]
call qword [sym.imp.MSVCR80.dll_wprintf]
xor al, al
jmp 0x103c3e4
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x103c126
mov r8d, 0x94
xor edx, edx
mov ecx, 1
call fcn.01033fa0
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x2b0]
mov qword [rax], 0
lea rcx, [0x01065ad8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010679c0], 0
je 0x103c11f
cmp dword [0x01067484], 0
je 0x103c11f
lea rdx, [0x01009390]
lea rcx, [0x01001b00]
call qword [sym.imp.MSVCR80.dll_wprintf]
xor al, al
jmp 0x103c3e4
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
mov rax, qword [rsp + 0x50]
add rax, 4
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x2b8], 0
je 0x103c198
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [fcn.01046df0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x01065dc8]
call qword [sym.imp.SQLSVC.dll_SHRecMemBSLocate]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x103c193
jmp 0x103c1df
jmp 0x103c379
mov dword [rsp + 0x58], 0
jmp 0x103c1ad
mov eax, dword [rsp + 0x58]
add eax, 1
mov dword [rsp + 0x58], eax
mov eax, dword [0x01065dd4]
cmp dword [rsp + 0x58], eax
jge 0x103c379
mov edx, dword [rsp + 0x58]
lea rcx, [0x01065dc8]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x103c374
lea rax, [rsp + 0x270]
mov rdi, rax
mov rsi, qword [rsp + 0x60]
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x270]
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x60]
add rax, 0x228
mov rcx, qword [rsp + 0x48]
add rcx, 0x10
mov r8, rax
mov edx, 0x84
call fcn.01013c30
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x358]
mov dword [rax + 0x118], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x35c]
mov dword [rax + 0x11c], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x360]
mov dword [rax + 0x120], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x364]
mov dword [rax + 0x124], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x598]
mov dword [rax + 0x128], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x368]
mov dword [rax + 0x12c], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x36c]
mov dword [rax + 0x130], ecx
mov rax, qword [rsp + 0x60]
add rax, 0x370
mov rcx, qword [rsp + 0x48]
add rcx, 0x134
mov r8, rax
mov edx, 0x84
call fcn.01013c30
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x588]
mov dword [rax + 0x23c], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x58c]
mov dword [rax + 0x240], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x590]
mov dword [rax + 0x244], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x594]
mov dword [rax + 0x248], ecx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
add eax, 1
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
cmp qword [rsp + 0x2b8], 0
je 0x103c364
jmp 0x103c379
mov rax, qword [rsp + 0x48]
add rax, 0x24c
mov qword [rsp + 0x48], rax
jmp 0x103c1a2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [0x01065ad8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010679c0], 0
je 0x103c3b7
cmp dword [0x01067484], 0
je 0x103c3b7
lea rdx, [0x01009390]
lea rcx, [0x01001b00]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov rax, qword [rsp + 0x2b0]
cmp qword [rax], 0
je 0x103c3d2
mov dword [rsp + 0x284], 1
jmp 0x103c3dd
mov dword [rsp + 0x284], 0
mov al, byte [rsp + 0x284]
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x298
pop rdi
pop rsi
ret