Function at 0x103c950
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 [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x288], rax
movzx eax, word [0x01001c50]
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, [0x01066ad8]
call qword [0x01069178]
test eax, eax
jne 0x103ca09
cmp dword [0x010689c0], 0
je 0x103c9fc
cmp dword [0x01068484], 0
je 0x103c9fc
lea rdx, [0x01009620]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066ad8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x103ca2f
cmp dword [0x01068484], 0
je 0x103ca2f
lea rdx, [0x01009620]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp qword [rsp + 0x2b8], 0
je 0x103ca47
mov dword [rsp + 0x280], 1
jmp 0x103ca54
mov eax, dword [0x01066dd4]
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 0x103ca99
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, [0x010095e8]
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x70]
call fcn.01015b10
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 [0x01069168]
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 0x103ce64
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x103cb68
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, [0x01066ad8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x103cb61
cmp dword [0x01068484], 0
je 0x103cb61
lea rdx, [0x01009620]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
xor al, al
jmp 0x103cec4
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 0x103cc06
mov r8d, 0x94
xor edx, edx
mov ecx, 1
call fcn.01034b80
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, [0x01066ad8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x103cbff
cmp dword [0x01068484], 0
je 0x103cbff
lea rdx, [0x01009620]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
xor al, al
jmp 0x103cec4
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 0x103cc78
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [fcn.01047a10]
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, [0x01066dc8]
call qword [sym.imp.SQLSVC.dll_SHRecMemBSLocate]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x103cc73
jmp 0x103ccbf
jmp 0x103ce59
mov dword [rsp + 0x58], 0
jmp 0x103cc8d
mov eax, dword [rsp + 0x58]
add eax, 1
mov dword [rsp + 0x58], eax
mov eax, dword [0x01066dd4]
cmp dword [rsp + 0x58], eax
jge 0x103ce59
mov edx, dword [rsp + 0x58]
lea rcx, [0x01066dc8]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x103ce54
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.0105ab90
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.0105ab90
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 0x103ce44
jmp 0x103ce59
mov rax, qword [rsp + 0x48]
add rax, 0x24c
mov qword [rsp + 0x48], rax
jmp 0x103cc82
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [0x01066ad8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x103ce97
cmp dword [0x01068484], 0
je 0x103ce97
lea rdx, [0x01009620]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov rax, qword [rsp + 0x2b0]
cmp qword [rax], 0
je 0x103ceb2
mov dword [rsp + 0x284], 1
jmp 0x103cebd
mov dword [rsp + 0x284], 0
mov al, byte [rsp + 0x284]
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x298
pop rdi
pop rsi
ret