Function at 0x14007c570
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x1400a9610]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rcx
mov rcx, qword [rbp + 0x1f0]
mov rsi, r9
mov qword [rsp + 0x60], rcx
xor ecx, ecx
mov r12, r8
mov qword [rsp + 0x38], rcx
mov edi, ecx
mov qword [rsp + 0x30], rcx
mov r15d, ecx
mov qword [rdx], rcx
mov qword [rsp + 0x48], rdx
test r8, r8
jne 0x14007c5d4
xor eax, eax
jmp 0x14007c8dd
mov rcx, r14
mov qword [rsp + 0x290], rbx
call fcn.14007c530
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14007c5f9
lea eax, [rbx + 0x1b]
jmp 0x14007c8d5
lea r9, [0x1400a1c30]
test rsi, rsi
lea r8, [0x1400a1c18]
cmovne r9, rsi
lea rcx, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14007c070
mov esi, eax
test eax, eax
je 0x14007c635
mov rcx, rbx
call qword [fcn.1400aaee8]
mov eax, esi
jmp 0x14007c8d5
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x288], r13
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
nop dword [rax]
test rdi, rdi
je 0x14007c67a
lea r8, [0x140094a60]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
mov rbx, qword [rsp + 0x40]
lea r8, [0x1400a1c10]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, rbx
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
lea r8, [0x1400a1be8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
movsxd r9, dword [r12 + 0x10]
mov r8, qword [r12 + 8]
lea rax, [rsp + 0x30]
lea edx, [rbx + 1]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.14007bed0
mov ebx, eax
test eax, eax
jne 0x14007c8aa
lea r8, [0x1400a1be0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
cmp qword [r12 + 0x48], 0
je 0x14007c750
mov rcx, r15
call qword [fcn.1400aaee8]
mov rcx, r14
call fcn.14007c530
mov r15, rax
test rax, rax
je 0x14007cab6
lea r8, [0x1400a1bb0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, rax
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
mov r13, r12
cmp qword [r12 + 0x48], 0
je 0x14007c796
lea r8, [0x1400a1b88]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, r15
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.14007c210
mov ebx, eax
test eax, eax
jmp 0x14007c7c1
mov eax, dword [r12 + 0x50]
test al, 0x51
je 0x14007c7c7
cmp qword [r12 + 0x58], 0
jne 0x14007c7ab
test al, 1
je 0x14007c7bf
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.14007c210
mov ebx, eax
test ebx, ebx
jne 0x14007c8aa
mov r9, qword [r13 + 0x38]
test r9, r9
je 0x14007c7f0
lea r8, [0x1400a1b70]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
mov rdi, qword [r13 + 0x40]
test rdi, rdi
je 0x14007c82e
nop dword [rax]
mov r9, qword [rdi]
lea r8, [0x1400a1b68]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14007c800
jmp 0x14007c832
test ebx, ebx
jne 0x14007c8aa
lea r8, [0x1400a1b60]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
mov eax, dword [r12 + 0x50]
test al, 1
jne 0x14007c94c
test al, 2
jne 0x14007c94c
test al, 0x10
je 0x14007c8fd
movsxd r9, dword [r12 + 0x30]
mov r8, qword [r12 + 0x28]
lea rax, [rsp + 0x30]
mov edx, 2
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x38]
call fcn.14007bed0
mov ebx, eax
mov rdi, qword [rsp + 0x48]
mov r13, qword [r13 + 0x48]
test r13, r13
je 0x14007ca6b
test ebx, ebx
je 0x14007c753
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14007c0e0
mov rcx, r15
call qword [fcn.1400aaee8]
mov rcx, rsi
call qword [fcn.1400aaee8]
mov eax, ebx
mov r13, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002ba00
add rsp, 0x298
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 0x40
je 0x14007c92a
test al, al
jns 0x14007c90c
mov r9, qword [r12 + 0x68]
jmp 0x14007c911
movsxd r9, dword [r12 + 0x20]
mov r8, qword [r12 + 0x60]
lea rax, [rsp + 0x30]
mov edx, 3
mov qword [rsp + 0x20], rax
jmp 0x14007c884
test al, al
jns 0x14007c93d
mov r9, qword [r12 + 0x68]
mov r8, qword [r12 + 0x18]
jmp 0x14007c875
movsxd r9, dword [r12 + 0x20]
mov r8, qword [r12 + 0x18]
jmp 0x14007c875
mov rax, qword [r13 + 0x18]
lea rsi, [0x140095804]
mov ecx, 2
mov rdi, rax
repe cmpsb byte [rsi], byte [rdi]
jne 0x14007c96a
call fcn.140031fe0
jmp 0x14007c979
lea rdx, [0x140096a24]
mov rcx, rax
call fcn.14002c44c
mov rdi, rax
test rax, rax
je 0x14007ca3d
call fcn.140031fe0
cmp rdi, rax
je 0x14007c9b1
mov rcx, rdi
call fcn.14002c20c
mov r8, qword [r13 + 0x18]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdx
lea edx, [r9 + 4]
jmp 0x14007c884
lea rcx, [rsp + 0x70]
mov r9, rdi
mov edx, 1
mov r8d, 0x200
call fcn.14002d0b8
test rax, rax
je 0x14007c890
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x38]
mov edx, 2
call fcn.14007bed0
mov ebx, eax
test eax, eax
jne 0x14007c890
mov rcx, rdi
call fcn.14002d0d8
test eax, eax
jne 0x14007c890
mov rcx, rdi
call fcn.14002d110
test eax, eax
jne 0x14007c890
lea edx, [rbx + 1]
lea rcx, [rsp + 0x70]
mov r9, rdi
mov r8d, 0x200
call fcn.14002d0b8
test rax, rax
jne 0x14007c9d2
jmp 0x14007c890
test r14, r14
je 0x14007ca55
mov r8, qword [r13 + 0x18]
lea rdx, [0x1400a1b48]
mov rcx, r14
call fcn.14004ff40
mov rdi, qword [rsp + 0x48]
mov ebx, reloc.WLDAP32.dll_Ordinal_26
mov qword [rdi], 0
jmp 0x14007c895
test ebx, ebx
jne 0x14007c8aa
cmp qword [r12 + 0x48], 0
je 0x14007ca9e
lea r8, [0x1400a1b38]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, r15
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8aa
mov r12, qword [r12]
test r12, r12
je 0x14007cac0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
jmp 0x14007c650
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14007c8aa
test ebx, ebx
jne 0x14007c8aa
mov rsi, qword [rsp + 0x40]
lea r8, [0x1400a1b28]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9, rsi
call fcn.14007c070
mov ebx, eax
test eax, eax
jne 0x14007c8af
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rax
mov rcx, r15
call qword [fcn.1400aaee8]
mov rcx, rsi
call qword [fcn.1400aaee8]
mov rdx, qword [rsp + 0x50]
xor eax, eax
mov qword [rdi], rdx
jmp 0x14007c8cd