Function at 0x140042334
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
xor r14d, r14d
lea eax, [r9 - 1]
imul rax, rax, 0x34
mov r13, r8
mov dword [rbp - 0x34], r14d
mov r15, rdx
mov r12, rcx
movzx eax, word [rax + r8]
lea ebx, [rax*2 + 0x200]
movzx eax, byte [rcx + 0x10e]
mov edi, eax
test al, al
jne 0x14004238c
mov edi, 0x100
mov rcx, qword [rcx + 0x30]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
call qword [0x14008f740]
mov r14d, dword [r13 + 4]
xor edx, edx
mov ecx, eax
mov dword [rbp + 0x48], r14d
imul ecx, edi
mov eax, ebx
mov r8d, r14d
div ecx
mov rcx, qword [r12 + 0x48]
test edx, edx
mov edx, dword [r15]
lea esi, [rax + 1]
cmove esi, eax
mov dword [rbp - 0x30], esi
call fcn.140013290
mov rbx, qword [rbp + 0x90]
mov edi, eax
mov rax, qword [rbp + 0x98]
cmp esi, edi
jbe 0x14004268d
mov r14d, 1
mov rdx, rax
mov rcx, rbx
mov dword [rbp - 0x34], r14d
call fcn.14003dd1c
mov rax, qword [rbx]
lea r9d, [r14 + 2]
xor r8d, r8d
mov edx, 0x1393
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14008f740]
cmp dword [section..data], 5
jbe 0x14004248b
movabs rdx, 0x400000000000
test qword [0x140098010], rdx
je 0x14004248b
mov rax, qword [0x140098018]
and rax, rdx
cmp rax, qword [0x140098018]
jne 0x14004248b
lea rax, [rbp - 0x18]
mov dword [rbp - 0x2c], r14d
mov qword [rsp + 0x38], rax
lea rdx, [0x140092e59]
lea rax, [rbp - 0x2c]
mov dword [rbp - 0x28], 0x2020053
mov qword [rsp + 0x30], rax
xor ecx, ecx
lea rax, [rbp - 0x28]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x20], 0x402
call fcn.140001310
lea rdx, [0x14008fb54]
mov rcx, rbx
call fcn.14000ce94
mov edx, esi
sub edx, edi
je 0x1400425d8
mov rcx, qword [r12 + 0x48]
lea r8, [rbp + 0x48]
call fcn.140013838
xor edi, edi
mov r15d, eax
test eax, eax
je 0x1400425da
mov rdi, qword [r12 + 0x48]
mov r10d, eax
mov r13, qword [rbp + 0x78]
cmp byte [rdi + 0x50], 0xc
mov rdx, qword [rdi + 0x30]
jne 0x14004250c
lea ecx, [r10 + r10*2]
mov eax, ecx
shr eax, 1
add eax, r14d
movzx r11d, byte [rax + rdx]
mov eax, ecx
shr rax, 1
movzx eax, byte [rax + rdx]
test r14b, cl
je 0x1400424fc
shl r11d, 4
shr eax, 4
jmp 0x140042504
and r11d, 0xf
shl r11d, 8
or r11d, eax
mov esi, r10d
jmp 0x140042527
cmp byte [rdi + 0x50], 0x10
mov esi, r10d
jne 0x14004251c
movzx r11d, word [rdx + rsi*2]
jmp 0x140042527
mov r11d, dword [rdx + rsi*4]
and r11d, 0xfffffff
mov cl, byte [r13 + 0x14]
mov r8, rsi
mov r9d, dword [rdi + 0x3c]
mov edx, r14d
mov rdi, qword [r13 + 0x20]
shr r8, cl
mov ecx, r10d
and ecx, dword [r13 + 0x18]
shl edx, cl
or dword [rdi + r8*4], edx
cmp r11d, r9d
jae 0x1400425b3
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
mov rdx, qword [rdi + 0x30]
cmp al, 0xc
jne 0x140042595
lea ecx, [r10 + r10*2]
mov eax, ecx
shr eax, 1
add eax, r14d
movzx r10d, byte [rax + rdx]
mov eax, ecx
shr rax, 1
movzx edx, byte [rax + rdx]
test r14b, cl
je 0x140042585
shl r10d, 4
shr edx, 4
jmp 0x14004258d
and r10d, 0xf
shl r10d, 8
or r10d, edx
jmp 0x1400424cb
cmp al, 0x10
jne 0x1400425a3
movzx r10d, word [rdx + rsi*2]
jmp 0x1400424cb
mov r10d, dword [rdx + rsi*4]
and r10d, 0xfffffff
jmp 0x1400424cb
mov r13, qword [rbp + 0x58]
mov edx, r15d
mov r14d, dword [rbp + 0x48]
mov r8d, r14d
mov rcx, qword [r12 + 0x48]
mov r9d, dword [r13 + 4]
call fcn.14001afa0
mov dword [r13 + 4], r14d
jmp 0x14004286e
xor edi, edi
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1394
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14008f740]
lea rdx, [0x14008fb54]
mov rcx, rbx
call fcn.14000ce94
cmp dword [section..data], 5
jbe 0x140042f11
movabs rdx, 0x400000000000
test qword [0x140098010], rdx
je 0x140042f11
mov rax, qword [0x140098018]
and rax, rdx
cmp rax, qword [0x140098018]
jne 0x140042f11
lea rax, [rbp - 0x18]
mov qword [rbp - 0x18], rdi
mov qword [rsp + 0x38], rax
lea rdx, [0x140092e59]
lea rax, [rbp + 0x60]
mov dword [rbp + 0x60], r14d
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x58], 0x2eb0054
mov dword [rbp + 0x48], 0x3eb
call fcn.140001310
jmp 0x140042f11
jae 0x140042871
mov rdx, rax
mov dword [rbp - 0x34], 1
mov rcx, rbx
call fcn.14003dd1c
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x138f
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14008f740]
lea rdx, [0x14008fb54]
mov rcx, rbx
call fcn.14000ce94
cmp dword [section..data], 5
jbe 0x14004274c
movabs rdx, 0x400000000000
test qword [0x140098010], rdx
je 0x14004274c
mov rax, qword [0x140098018]
and rax, rdx
cmp rax, qword [0x140098018]
jne 0x14004274c
lea rax, [rbp - 0x18]
mov dword [rbp + 0x48], 1
mov qword [rsp + 0x38], rax
lea rdx, [0x140092e59]
lea rax, [rbp + 0x48]
mov dword [rbp - 0x20], 0x2030056
mov qword [rsp + 0x30], rax
xor ecx, ecx
lea rax, [rbp - 0x20]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x28], 0x403
call fcn.140001310
mov edx, dword [r15]
lea r8d, [rsi - 1]
mov rcx, qword [r12 + 0x48]
call fcn.14001311c
mov r8d, dword [r13 + 4]
mov edx, eax
mov rcx, qword [r12 + 0x48]
mov r14d, eax
call fcn.140049ea4
mov rbx, qword [rbp + 0x78]
mov r10d, eax
mov dword [r13 + 4], r14d
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
mov rdx, qword [rdi + 0x30]
cmp al, 0xc
jne 0x1400427c1
lea ecx, [r10 + r10*2]
mov eax, ecx
shr eax, 1
inc eax
movzx r11d, byte [rax + rdx]
mov eax, ecx
shr rax, 1
movzx edx, byte [rax + rdx]
test cl, 1
je 0x1400427b1
shl r11d, 4
shr edx, 4
jmp 0x1400427b9
and r11d, 0xf
shl r11d, 8
or r11d, edx
mov esi, r10d
jmp 0x1400427da
mov esi, r10d
cmp al, 0x10
jne 0x1400427cf
movzx r11d, word [rdx + rsi*2]
jmp 0x1400427da
mov r11d, dword [rdx + rsi*4]
and r11d, 0xfffffff
mov cl, byte [rbx + 0x14]
mov r8, rsi
mov r9d, dword [rdi + 0x3c]
mov edx, 1
mov rdi, qword [rbx + 0x20]
shr r8, cl
mov ecx, r10d
and ecx, dword [rbx + 0x18]
shl edx, cl
not edx
and dword [rdi + r8*4], edx
cmp r11d, r9d
jae 0x140042867
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
mov rdx, qword [rdi + 0x30]
cmp al, 0xc
jne 0x140042849
lea ecx, [r10 + r10*2]
mov eax, ecx
shr eax, 1
inc eax
movzx r10d, byte [rax + rdx]
mov eax, ecx
shr rax, 1
movzx edx, byte [rax + rdx]
test cl, 1
je 0x140042839
shl r10d, 4
shr edx, 4
jmp 0x140042841
and r10d, 0xf
shl r10d, 8
or r10d, edx
jmp 0x140042780
cmp al, 0x10
jne 0x140042857
movzx r10d, word [rdx + rsi*2]
jmp 0x140042780
mov r10d, dword [rdx + rsi*4]
and r10d, 0xfffffff
jmp 0x140042780
mov rbx, qword [rbp + 0x90]
mov esi, dword [rbp - 0x30]
mov r15d, dword [rbp + 0x80]
xor r13d, r13d
mov rdi, qword [rbp + 0x50]
mov byte [rbp + 0x48], r13b
test r15d, r15d
je 0x140042a2c
mov qword [rsp + 0x28], r13
lea r8, [rbp + 0x48]
mov r9d, r14d
mov byte [rsp + 0x20], 1
mov rdx, rdi
mov rcx, r12
call fcn.14001a440
test al, al
jne 0x140042967
mov rdx, qword [rbp + 0x98]
mov rcx, rbx
call fcn.14003dd1c
mov rax, qword [rbx]
lea r9d, [r13 + 3]
xor r8d, r8d
mov edx, 0x1394
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14008f740]
cmp dword [section..data], 5
jbe 0x140042953
movabs rdx, 0x400000000000
test qword [0x140098010], rdx
je 0x140042953
mov rax, qword [0x140098018]
and rax, rdx
cmp rax, qword [0x140098018]
jne 0x140042953
lea rax, [rbp - 0x18]
mov qword [rbp - 0x18], r13
mov qword [rsp + 0x38], rax
lea rdx, [0x140092e59]
lea rax, [rbp + 0x60]
mov dword [rbp + 0x60], 1
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x58], 0x2eb0052
mov dword [rbp + 0x48], 0x3eb
call fcn.140001310
lea rdx, [0x14008fb54]
mov rcx, rbx
call fcn.14000ce94
jmp 0x140042f11
cmp byte [rbp + 0x48], r13b
je 0x140042a2c
mov rdx, qword [rbp + 0x98]
mov rcx, rbx
mov dword [rbp - 0x34], 1
call fcn.14003dd1c
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1395
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14008f740]
lea rdx, [0x14008fb54]
mov rcx, rbx
call fcn.14000ce94
cmp dword [section..data], 5
jbe 0x140042a2c
movabs rdx, 0x400000000000
test qword [0x140098010], rdx
je 0x140042a2c
mov rax, qword [0x140098018]
and rax, rdx
cmp rax, qword [0x140098018]
jne 0x140042a2c
lea rax, [rbp - 0x18]
mov qword [rbp - 0x18], r13
mov qword [rsp + 0x38], rax
lea rdx, [0x140092e59]
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], 1
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x20], 0x2040057
mov dword [rbp - 0x28], 0x404
call fcn.140001310
mov r13, qword [rbp + 0x70]
mov r9, r12
mov r8, qword [r12 + 0x30]
mov rcx, r13
mov rdx, qword [rbp + 0x68]
movzx eax, si
mov dword [rsp + 0x30], eax
mov eax, dword [rdi]
mov dword [rsp + 0x28], eax
mov rax, qword [r12 + 0x48]
mov qword [rsp + 0x20], rax
call fcn.140012520
test al, al
je 0x140042ed5
mov rdi, qword [r13 + 0x80]
mov rax, rdi
neg rax
sbb rsi, rsi
lea rcx, [rdi + 0x20]
and rsi, rcx
je 0x140042ed5
test rdi, rdi
je 0x140042ed5
mov rcx, r13
call fcn.140012300
cmp dword [section..data], 5
movzx r14d, al
mov byte [rbp - 0x38], r14b
jbe 0x140042b10
movabs rax, 0x400000000000
test qword [0x140098010], rax
je 0x140042b10
mov rcx, qword [0x140098018]
and rcx, rax
cmp rcx, qword [0x140098018]
jne 0x140042b10
lea rax, [rbp - 0x18]
mov dword [rbp + 0x48], r14d
mov qword [rsp + 0x38], rax
lea rdx, [0x140092e59]
lea rax, [rbp + 0x48]
mov dword [rbp - 0x20], 0x2040058
mov qword [rsp + 0x30], rax
xor ecx, ecx
lea rax, [rbp - 0x20]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x28], 0x404
call fcn.140001310
xor r9d, r9d
test r14b, r14b
jne 0x140042b5e
test r15d, r15d
jne 0x140042f11
mov rdx, qword [rbp + 0x98]
mov rcx, rbx
call fcn.14003dd1c
mov rax, qword [rbx]
lea r9d, [r15 + 3]
xor r8d, r8d
mov edx, 0x1395
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14008f740]
lea rdx, [0x14008fb54]
mov rcx, rbx
call fcn.14000ce94
xor r9d, r9d
and qword [rdi + 8], 0
mov ecx, 0xf0
and dword [rdi + 0x10], 0
mov r15b, r9b
mov qword [rdi], 0x4445
mov r8d, 0xffff
mov word [rdi + 0x14], r9w
mov rdi, rsi
movzx eax, r9w
rep stosw word [rdi], ax
mov eax, dword [rbp + 0x60]
mov cl, 1
mov byte [rbp + 0x48], cl
mov edi, r9d
test eax, eax
jle 0x140042c73
mov rdx, qword [rbp + 0x58]
mov r14, r9
mov r13, qword [rbp + 0x50]
mov qword [rbp - 0x20], rax
cmp byte [rdx + 0x1a], 1
jne 0x140042c52
movzx eax, word [rdx]
mov byte [rbp + 0x48], r9b
cmp edi, eax
jge 0x140042be9
lea rcx, [r14*2 + 0x1e0]
cmp word [rsi + rcx], r8w
je 0x140042bd9
mov word [rsi + rcx], r8w
mov r15b, 1
movzx eax, word [rdx]
inc edi
inc r14
add rcx, 2
cmp edi, eax
jl 0x140042bca
mov r8d, dword [rdx + 4]
mov edx, dword [r13]
mov rcx, qword [r12 + 0x48]
call fcn.140013290
movsxd rdx, edi
xor r9d, r9d
sar rdx, 7
mov ecx, eax
mov rax, rdx
test rdx, rdx
js 0x140042c20
cmp word [rsi + rax*2], r9w
jne 0x140042c20
mov word [rsi + rax*2], cx
sub rax, 1
jns 0x140042c0f
movzx eax, word [rsi + rdx*2]
sub ecx, eax
movzx eax, word [rsi + r14*2 + 0x1e0]
cmp eax, ecx
je 0x140042c3f
mov word [rsi + r14*2 + 0x1e0], cx
mov r15b, 1
mov rax, qword [rbp - 0x20]
inc edi
mov rdx, qword [rbp + 0x58]
inc r14
mov r8d, 0xffff
add rdx, 0x34
sub rax, 1
mov qword [rbp + 0x58], rdx
mov qword [rbp - 0x20], rax
jne 0x140042bad
mov r13, qword [rbp + 0x70]
mov cl, byte [rbp + 0x48]
mov r14b, byte [rbp - 0x38]
mov rax, qword [rbp + 0x50]
mov r8, qword [r12 + 0x48]
mov r10d, dword [rax]
test cl, cl
je 0x140042d83
mov al, byte [r8 + 0x50]
mov rdx, qword [r8 + 0x30]
cmp al, 0xc
jne 0x140042cc9
lea ecx, [r10 + r10*2]
mov eax, ecx
shr eax, 1
inc eax
movzx r11d, byte [rax + rdx]
mov eax, ecx
shr rax, 1
movzx eax, byte [rax + rdx]
test cl, 1
je 0x140042cb9
shl r11d, 4
shr eax, 4
jmp 0x140042cc1
and r11d, 0xf
shl r11d, 8
or r11d, eax
mov ebx, r10d
jmp 0x140042ce2
mov ebx, r10d
cmp al, 0x10
jne 0x140042cd7
movzx r11d, word [rdx + rbx*2]
jmp 0x140042ce2
mov r11d, dword [rdx + rbx*4]
and r11d, 0xfffffff
mov rdx, qword [rbp + 0x78]
mov r9d, dword [r8 + 0x3c]
mov r8, rbx
mov cl, byte [rdx + 0x14]
mov rdi, qword [rdx + 0x20]
shr r8, cl
mov ecx, r10d
and ecx, dword [rdx + 0x18]
mov edx, 1
shl edx, cl
not edx
and dword [rdi + r8*4], edx
cmp r11d, r9d
jae 0x140042d74
mov r8, qword [r12 + 0x48]
mov al, byte [r8 + 0x50]
mov rdx, qword [r8 + 0x30]
cmp al, 0xc
jne 0x140042d56
lea ecx, [r10 + r10*2]
mov eax, ecx
shr eax, 1
inc eax
movzx r10d, byte [rax + rdx]
mov eax, ecx
shr rax, 1
movzx edx, byte [rax + rdx]
test cl, 1
je 0x140042d46
shl r10d, 4
shr edx, 4
jmp 0x140042d4e
and r10d, 0xf
shl r10d, 8
or r10d, edx
jmp 0x140042c87
cmp al, 0x10
jne 0x140042d64
movzx r10d, word [rdx + rbx*2]
jmp 0x140042c87
mov r10d, dword [rdx + rbx*4]
and r10d, 0xfffffff
jmp 0x140042c87
mov rax, qword [rbp + 0x50]
xor ecx, ecx
mov dword [rax], ecx
mov al, 1
jmp 0x140042f13
mov edx, r10d
mov rcx, r8
call fcn.14001319c
lea ecx, [rdi - 1]
sar ecx, 7
inc ecx
movsxd rcx, ecx
cmp rcx, 0xf0
jge 0x140042db6
add rcx, rcx
mov word [rsi + rcx], ax
add rcx, 2
cmp rcx, 0x1e0
jl 0x140042da5
cmp edi, dword [r13 + 0x88]
jge 0x140042deb
movsxd rax, edi
mov ecx, 0xffff
lea rax, [rax*2 + 0x1e0]
cmp word [rsi + rax], cx
je 0x140042ddc
mov word [rsi + rax], cx
mov r15b, 1
inc edi
add rax, 2
cmp edi, dword [r13 + 0x88]
jl 0x140042dcf
xor edi, edi
test r15b, r15b
je 0x140042eaf
mov rdx, qword [rbp + 0x98]
mov rcx, rbx
mov dword [rbp - 0x34], 1
call fcn.14003dd1c
mov rax, qword [rbx]
lea r9d, [rdi + 3]
xor r8d, r8d
mov edx, 0x1396
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14008f740]
cmp dword [section..data], 5
jbe 0x140042ea0
movabs rdx, 0x400000000000
test qword [0x140098010], rdx
je 0x140042ea0
mov rax, qword [0x140098018]
and rax, rdx
cmp rax, qword [0x140098018]
jne 0x140042ea0
movzx eax, r14b
lea rdx, [0x140092e59]
mov dword [rbp + 0x60], eax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x18], rdi
mov dword [rbp + 0x58], 0x2050059
mov dword [rbp + 0x48], 5
call fcn.140001310
lea rdx, [0x14008fb54]
mov rcx, rbx
call fcn.14000ce94
cmp dword [rbp - 0x34], edi
je 0x140042d7c
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0x18], 3
je 0x140042d7c
mov dword [rax + 0x18], 1
jmp 0x140042d7c
lea rcx, str.onecore_base_fsutilsufat_src_fatsachk.cxx
call fcn.14000d6b4
mov r9d, 3
mov dword [rsp + 0x30], 0xb71
mov qword [rsp + 0x28], rax
mov edx, 0x43c
lea rax, str._I64x_x
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 2]
call fcn.14000cf6c
xor al, al
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret