Function at 0x100439920
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf20]
mov eax, 0x1020
call fcn.10046b370
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1050], rbx
mov qword [rsp + 0x1058], rsi
mov qword [rsp + 0x1060], rdi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0xf10], rax
mov r12d, ecx
xor edx, edx
mov r8d, 0x224
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0xb10]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x310]
call sub.VCRUNTIME140.dll_memset
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x44], r13d
mov r14d, r13d
mov r15d, r13d
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
lea r8d, [r13 + 0x10]
lea rdx, str.WorkingDirectory
lea rcx, [rsp + 0x70]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x60]
call fcn.10040a3c0
nop
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r9, qword [rbp - 0x60]
mov edx, 0x112
mov r8d, edx
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x20]
sub r9, rax
lea rax, [r8 + 0x7ffffeec]
test rax, rax
je 0x100439a76
movzx eax, word [r9 + rcx]
test ax, ax
je 0x100439a76
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x100439a53
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], r13w
mov rcx, rdx
lea rax, [rbp - 0x20]
nop dword [rax]
cmp word [rax], 0
je 0x100439aa0
add rax, 2
sub rcx, 1
jne 0x100439a90
mov rax, rdx
sub rax, rcx
mov r8, r13
test rcx, rcx
cmovne r8, rax
je 0x100439b03
sub rdx, r8
lea rcx, [rbp - 0x20]
lea rcx, [rcx + r8*2]
je 0x100439af4
lea rax, [r8 + 0x7ffffeec]
add rax, rdx
lea r9, str.SQLCACHE.BIN
sub r9, rcx
test rax, rax
je 0x100439af4
movzx r8d, word [rcx + r9]
test r8w, r8w
je 0x100439af4
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdx, 1
jne 0x100439ad3
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r13w
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x100080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x10043a000
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100439b82
lea r9, str.SQLServerAgent
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, 0xe9
call fcn.100432180
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10043a000
mov r9d, dword [rsp + 0x48]
cmp r9d, 0xf4240
jge 0x100439bae
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, 0xea
call fcn.100432180
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10043a000
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100439b5d
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x44]
xor edx, edx
lea ecx, [rdx + 2]
lea r8d, [rdx + 0x71]
call fcn.100432180
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9188]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100439c3f
cmp dword [0x1004a8ebc], eax
je 0x100439c32
test dil, dil
je 0x100439c32
lea rdx, str.LoadOperationCache
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a9188]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x100439c60
test dil, dil
je 0x100439c60
lea rdx, str.LoadOperationCache
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov edi, r13d
cmp dword [rsp + 0x44], r13d
jle 0x100439d15
nop
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 0x20
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100439d09
cmp dword [rsp + 0x40], 0x20
jne 0x100439d09
mov r8d, 0xbdb
lea rdx, str.LoadOperationCache
mov ecx, dword [rsp + 0x58]
call fcn.10043acf0
mov qword [rsp + 0x60], rax
test rax, rax
je 0x100439d09
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100439d09
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x40], eax
jne 0x100439d09
lea rdx, [rsp + 0x50]
lea rcx, [0x1004a9210]
call qword [sym.imp.SQLSVC.dll_SHRecMemAdd]
mov eax, dword [rsp + 0x54]
cmp eax, 7
jae 0x100439d03
inc dword [rbp + rax*4 - 0x40]
jmp 0x100439d06
inc dword [rbp - 0x24]
inc r14d
inc edi
cmp edi, dword [rsp + 0x44]
jl 0x100439c70
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9188]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x100439d4b
test dil, dil
je 0x100439d4b
lea rdx, str.LoadOperationCache
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x400
lea r8, [rbp + 0x310]
mov edx, WSACleanup
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov edi, r13d
lea rsi, [rbp - 0x40]
nop word [rax + rax]
mov ebx, dword [rsi]
test ebx, ebx
je 0x100439e53
lea edx, [rdi + 0x28]
mov r9d, 0x200
lea r8, [rbp + 0xb10]
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0xb10]
lea r8, str._s___ld__
mov edx, 0x80
lea rcx, [rbp + 0x210]
call fcn.10040b460
mov ecx, 0x400
lea rax, [rbp + 0x310]
cmp word [rax], 0
je 0x100439de6
add rax, 2
sub rcx, 1
jne 0x100439dd6
mov eax, 0x400
sub rax, rcx
mov r8, r13
test rcx, rcx
cmovne r8, rax
je 0x100439e53
mov edx, 0x400
sub rdx, r8
lea rax, [rbp + 0x310]
lea rax, [rax + r8*2]
je 0x100439e44
lea rcx, [r8 + 0x7ffffbfe]
add rcx, rdx
lea r9, [rbp + 0x210]
sub r9, rax
test rcx, rcx
je 0x100439e44
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x100439e44
mov word [rax], r8w
add rax, 2
dec rcx
sub rdx, 1
jne 0x100439e23
lea rcx, [rax - 2]
test rdx, rdx
cmovne rcx, rax
mov word [rcx], r13w
inc edi
add rsi, 4
cmp edi, 8
jb 0x100439d80
lea rcx, [rbp + 0x310]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x100439e70
cmp rax, 2
jb 0x100439e9d
lea rax, [rax*2 - 4]
cmp rax, 0x800
jae 0x10043a08f
mov word [rbp + rax + 0x310], r13w
lea r9, [rbp + 0x310]
xor r8d, r8d
lea rdx, [0x1004725a8]
lea ecx, [r8 + 2]
call fcn.100432180
test r12d, r12d
je 0x10043a003
lea rcx, [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr]
mov rcx, rax
call fcn.10043a0a0
mov r15d, r14d
mov r9d, dword [0x1004a921c]
sub r15d, r9d
mov dword [rsp + 0x44], r9d
test r9d, r9d
je 0x10043a000
xor edx, edx
lea ecx, [rdx + 2]
lea r8d, [rdx + 0x76]
call fcn.100432180
mov r9d, dword [rsp + 0x44]
xor edx, edx
lea ecx, [rdx + 2]
mov r8d, 0x100
call fcn.100432180
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a9188]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100439f5c
cmp dword [0x1004a8ebc], eax
je 0x100439f4f
test bl, bl
je 0x100439f4f
lea rdx, str.LoadOperationCache
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a9188]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x100439f7c
test bl, bl
je 0x100439f7c
lea rdx, str.LoadOperationCache
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov ebx, r13d
cmp dword [0x1004a921c], ebx
jle 0x100439fcb
nop word [rax + rax]
mov edx, ebx
lea rcx, [0x1004a9210]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
test rax, rax
je 0x100439fc1
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x100439fb2
call fcn.10043b3b0
mov edx, ebx
lea rcx, [0x1004a9210]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
inc ebx
cmp ebx, dword [0x1004a921c]
jl 0x100439f90
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a9188]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x10043a000
test bl, bl
je 0x10043a000
lea rdx, str.LoadOperationCache
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
test r12d, r12d
cmovne r14d, r15d
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x10043a04a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x10043a045
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x10043a045
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
movdqa xmm0, xmmword [0x100482320]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r13w
mov eax, r14d
mov rcx, qword [rbp + 0xf10]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1004694e8
nop
int3