Function at 0x18000e940
Capabilities:
Compute adler32 checksum

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r15, qword [rsp + 0x188]
mov rbx, r9
mov r13, qword [r8]
mov r12, rcx
mov rcx, qword [rsp + 0x180]
add r13, rdx
mov r14d, dword [rsp + 0x190]
mov rsi, rdx
mov rax, qword [r15]
mov r9d, r14d
mov qword [rsp + 0x58], rbx
mov r11, rcx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x68], rcx
lea rdi, [rax + rcx]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x30], rcx
and r9d, 4
je 0x18000e9c8
or rax, 0xffffffffffffffff
jmp 0x18000e9d1
sub rax, rbx
dec rax
add rax, rcx
lea r10, [rax + 1]
mov qword [rsp + 0x50], rax
test rax, r10
jne 0x18000ff5d
cmp rcx, rbx
jb 0x18000ff5d
mov rax, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x20]
mov edx, dword [r12 + 0x28]
mov ebx, dword [r12 + 4]
mov r15d, dword [r12 + 0x24]
mov qword [rsp + 0x48], rax
mov eax, dword [r12]
mov qword [rsp + 0x178], rbp
mov rbp, qword [r12 + 0x38]
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x38], edx
cmp eax, 0x35
ja case.0x18000ea45.4
lea rcx, sym.SdAppServices_x64.dll_Ordinal_60
mov ecx, dword [rcx + rax*4 + 0xff90]
lea rax, sym.SdAppServices_x64.dll_Ordinal_60
add rcx, rax
jmp rcx
xor r11d, r11d
mov qword [r12 + 8], 0
xor r15d, r15d
mov dword [rsp + 0x38], 0
xor ebx, ebx
mov dword [rsp + 0x20], r11d
xor ebp, ebp
mov dword [r12 + 0x1c], 1
mov dword [r12 + 0x10], 1
test r14b, 1
je 0x18000eb88
cmp rsi, r13
jae 0x18000eaac
movzx eax, byte [rsi]
inc rsi
mov dword [r12 + 8], eax
jmp 0x18000eaca
mov r11d, dword [rsp + 0x20]
cmp rsi, r13
jae 0x18000eaac
movzx eax, byte [rsi]
inc rsi
mov dword [r12 + 8], eax
jmp 0x18000eaca
test r14b, 2
je 0x18000eac1
mov r13d, 1
mov dword [r12], r13d
jmp 0x18000fc6d
mov dword [r12 + 8], 0
cmp rsi, r13
jae 0x18000eaf3
movzx eax, byte [rsi]
inc rsi
mov dword [r12 + 0xc], eax
jmp 0x18000eb15
mov r11d, dword [rsp + 0x20]
cmp rsi, r13
jae 0x18000eaf3
movzx eax, byte [rsi]
inc rsi
mov dword [r12 + 0xc], eax
jmp 0x18000eb15
test r14b, 2
je 0x18000eb0c
mov r13d, 1
mov dword [r12], 2
jmp 0x18000fc6d
mov dword [r12 + 0xc], 0
mov edi, dword [r12 + 8]
mov eax, 0x8421085
mov r8d, dword [r12 + 0xc]
mov ecx, edi
shl ecx, 8
add ecx, r8d
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
imul eax, eax, 0x1f
cmp ecx, eax
jne 0x18000eb53
test r8b, 0x20
jne 0x18000eb53
mov eax, edi
and al, 0xf
cmp al, 8
jne 0x18000eb53
xor r15d, r15d
jmp 0x18000eb59
mov r15d, 1
test r9d, r9d
jne 0x18000eb83
shr edi, 4
mov eax, 1
lea ecx, [rdi + 8]
shl eax, cl
cmp eax, 0x8000
ja 0x18000eb7b
cmp r10, rax
jb 0x18000eb7b
xor eax, eax
jmp 0x18000eb80
mov eax, 1
or r15d, eax
test r15d, r15d
jne 0x18000ebb5
mov r11, qword [rsp + 0x30]
cmp ebx, 3
jae 0x18000f294
cmp rsi, r13
jb 0x18000f27a
test r14b, 2
jne 0x18000fb70
xor eax, eax
jmp 0x18000f280
mov r11d, dword [rsp + 0x20]
or r13, 0xffffffffffffffff
mov dword [r12], 0x24
jmp 0x18000fc6d
mov rax, rsi
cmp rsi, r13
jae 0x18000eb9f
movzx eax, byte [rax]
jmp 0x18000f27d
mov rax, rsi
cmp rsi, r13
jae 0x18000f2c0
movzx eax, byte [rax]
jmp 0x18000f2d1
mov rax, rsi
cmp rsi, r13
jae 0x18000f30e
movzx eax, byte [rax]
jmp 0x18000f31f
cmp rsi, r13
jae 0x18000f353
movzx eax, byte [rsi]
inc rsi
mov byte [r15 + r12 + 0x2928], al
inc r15d
jmp 0x18000f2fa
mov rax, rsi
cmp rsi, r13
jae 0x18000f3c6
movzx eax, byte [rax]
jmp 0x18000f3d7
mov rax, rsi
cmp rsi, r13
jae 0x18000f589
movzx eax, byte [rax]
lea r8, sym.SdAppServices_x64.dll_Ordinal_60
inc rsi
jmp 0x18000f5a4
lea rdx, sym.SdAppServices_x64.dll_Ordinal_60
mov rax, rsi
cmp rsi, r13
jae 0x18000f62a
movzx eax, byte [rax]
jmp 0x18000f63b
mov rax, rsi
cmp rsi, r13
jae 0x18000f934
movzx eax, byte [rax]
jmp 0x18000f945
mov rax, rsi
cmp rsi, r13
jae 0x18000fa25
movzx eax, byte [rax]
jmp 0x18000fa36
mov rax, rsi
cmp rsi, r13
jae 0x18000ee9c
movzx eax, byte [rax]
jmp 0x18000eead
mov rax, rsi
cmp rsi, r13
jae 0x18000ef68
movzx eax, byte [rax]
jmp 0x18000ef79
mov rax, rsi
cmp rsi, r13
jae 0x18000f00d
movzx eax, byte [rax]
jmp 0x18000f01e
mov rax, rsi
cmp rsi, r13
jae 0x18000f0d0
movzx eax, byte [rax]
jmp 0x18000f0e1
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
jmp 0x18000f165
cmp r11, rdi
jae 0x18000fc4c
mov byte [r11], r15b
inc r11
mov qword [rsp + 0x30], r11
mov rcx, r13
sub rcx, rsi
cmp rcx, 4
jl 0x18000edfd
mov rax, rdi
sub rax, r11
cmp rax, 2
jl 0x18000edfd
cmp ebx, 0x1e
jae 0x18000ed3b
mov eax, dword [rsi]
mov ecx, ebx
shl rax, cl
add rsi, 4
or rbp, rax
add ebx, 0x20
mov rax, rbp
and eax, 0x3ff
movsx r15d, word [r12 + rax*2 + 0x168]
test r15d, r15d
js 0x18000ed59
mov ecx, r15d
sar ecx, 9
jmp 0x18000ed82
mov ecx, 0xa
nop
not r15d
mov rdx, rbp
shr rdx, cl
inc ecx
and edx, 1
movsxd rax, r15d
add rdx, rax
movsx r15d, word [r12 + rdx*2 + 0x968]
test r15d, r15d
js 0x18000ed60
shr rbp, cl
sub ebx, ecx
bt r15d, 8
jb 0x18000ef26
mov rax, rbp
and eax, 0x3ff
movsx eax, word [r12 + rax*2 + 0x168]
test eax, eax
js 0x18000edae
mov ecx, eax
sar ecx, 9
jmp 0x18000edd2
mov ecx, 0xa
not eax
mov rdx, rbp
shr rdx, cl
inc ecx
and edx, 1
cdqe
add rdx, rax
movsx eax, word [r12 + rdx*2 + 0x968]
test eax, eax
js 0x18000edb3
shr rbp, cl
sub ebx, ecx
mov byte [r11], r15b
bt eax, 8
jb 0x18000eded
mov byte [r11 + 1], al
add r11, 2
jmp 0x18000ed00
inc r11
mov r15d, eax
mov qword [rsp + 0x30], r11
jmp 0x18000ef26
cmp ebx, 0xf
jae 0x18000ee31
cmp rcx, 2
jge 0x18000eec9
mov rax, rbp
and eax, 0x3ff
movsx edi, word [r12 + rax*2 + 0x168]
test edi, edi
js 0x18000ee5d
sar edi, 9
test edi, edi
je 0x18000ee97
cmp ebx, edi
jb 0x18000ee97
mov rdi, qword [rsp + 0x40]
mov rax, rbp
and eax, 0x3ff
movsx r15d, word [r12 + rax*2 + 0x168]
test r15d, r15d
js 0x18000eeed
mov ecx, r15d
sar ecx, 9
and r15d, 0x1ff
jmp 0x18000ef14
cmp ebx, 0xa
jbe 0x18000ee97
mov ecx, 0xa
nop word [rax + rax]
not edi
mov rdx, rbp
shr rdx, cl
inc ecx
and edx, 1
movsxd rax, edi
add rdx, rax
movsx edi, word [r12 + rdx*2 + 0x968]
test edi, edi
jns 0x18000ee2c
lea eax, [rcx + 1]
cmp ebx, eax
jae 0x18000ee70
cmp rsi, r13
jb 0x18000eeaa
test r14b, 2
jne 0x18000fb11
xor eax, eax
jmp 0x18000eeb0
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, 0xf
jb 0x18000ee0c
jmp 0x18000ee2c
movzx edx, byte [rsi + 1]
lea ecx, [rbx + 8]
movzx eax, byte [rsi]
add rsi, 2
shl rdx, cl
mov ecx, ebx
shl rax, cl
or rdx, rax
or rbp, rdx
add ebx, 0x10
jmp 0x18000ee31
mov ecx, 0xa
not r15d
mov rdx, rbp
shr rdx, cl
inc ecx
and edx, 1
movsxd rax, r15d
add rdx, rax
movsx r15d, word [r12 + rdx*2 + 0x968]
test r15d, r15d
js 0x18000eef2
shr rbp, cl
sub ebx, ecx
cmp r15d, 0x100
jb case.0x18000ea45.24
and r15d, 0x1ff
cmp r15d, 0x100
je 0x18000f254
lea ecx, [r15 - 0x101]
lea rax, sym.SdAppServices_x64.dll_Ordinal_60
mov edx, dword [rax + rcx*4 + 0xfe200]
mov r15d, dword [rax + rcx*4 + 0xfe000]
mov dword [rsp + 0x38], edx
test edx, edx
je 0x18000efa0
cmp ebx, edx
jae 0x18000ef8b
cmp rsi, r13
jb 0x18000ef76
test r14b, 2
jne 0x18000fb24
xor eax, eax
jmp 0x18000ef7c
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, edx
jb 0x18000ef63
mov ecx, edx
mov eax, 1
shl eax, cl
sub ebx, edx
dec eax
and eax, ebp
shr rbp, cl
add r15d, eax
cmp ebx, 0xf
jae 0x18000f052
mov rax, r13
sub rax, rsi
cmp rax, 2
jge 0x18000f033
mov rax, rbp
and eax, 0x3ff
movsx edi, word [r12 + rax*2 + 0xf08]
test edi, edi
js 0x18000efd7
sar edi, 9
test edi, edi
je 0x18000f008
cmp ebx, edi
jae 0x18000f052
jmp 0x18000f008
cmp ebx, 0xa
jbe 0x18000f008
mov ecx, 0xa
not edi
mov rdx, rbp
shr rdx, cl
inc ecx
and edx, 1
movsxd rax, edi
add rdx, rax
movsx edi, word [r12 + rdx*2 + 0x1708]
test edi, edi
jns 0x18000f052
lea eax, [rcx + 1]
cmp ebx, eax
jae 0x18000efe1
cmp rsi, r13
jb 0x18000f01b
test r14b, 2
jne 0x18000fb37
xor eax, eax
jmp 0x18000f021
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, 0xf
jb 0x18000efb5
jmp 0x18000f052
movzx edx, byte [rsi + 1]
lea ecx, [rbx + 8]
movzx eax, byte [rsi]
add rsi, 2
shl rdx, cl
mov ecx, ebx
shl rax, cl
or rdx, rax
or rbp, rdx
add ebx, 0x10
mov rax, rbp
and eax, 0x3ff
movsx eax, word [r12 + rax*2 + 0xf08]
test eax, eax
js 0x18000f073
mov ecx, eax
sar ecx, 9
and eax, 0x1ff
jmp 0x18000f09f
mov ecx, 0xa
nop dword [rax + rax]
not eax
mov rdx, rbp
shr rdx, cl
inc ecx
and edx, 1
cdqe
add rdx, rax
movsx eax, word [r12 + rdx*2 + 0x1708]
test eax, eax
js 0x18000f080
shr rbp, cl
sub ebx, ecx
lea rcx, sym.SdAppServices_x64.dll_Ordinal_60
mov edx, dword [rcx + rax*4 + 0xfe100]
mov r8d, dword [rcx + rax*4 + 0xfe080]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x20], r8d
test edx, edx
je 0x18000f10d
cmp ebx, edx
jae 0x18000f0f3
cmp rsi, r13
jb 0x18000f0de
test r14b, 2
jne 0x18000fb4a
xor eax, eax
jmp 0x18000f0e4
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, edx
jb 0x18000f0cb
mov ecx, edx
mov eax, 1
shl eax, cl
sub ebx, edx
dec eax
and eax, ebp
shr rbp, cl
add r8d, eax
mov dword [rsp + 0x20], r8d
mov r9, qword [rsp + 0x58]
mov rcx, r11
sub rcx, r9
mov eax, r8d
mov qword [rsp + 0x48], rcx
cmp rax, rcx
jbe 0x18000f12f
test r14b, 4
jne case.0x18000ea45.37
mov r10, qword [rsp + 0x50]
sub rcx, rax
mov rdi, qword [rsp + 0x40]
and rcx, r10
add rcx, r9
mov edx, r15d
cmp r11, rcx
mov rax, rcx
cmova rax, r11
add rax, rdx
cmp rax, rdi
jbe 0x18000f199
mov eax, r15d
dec r15d
test eax, eax
je 0x18000fb07
cmp r11, rdi
jae 0x18000fb5d
mov rdx, qword [rsp + 0x48]
mov rcx, rdx
mov eax, r8d
sub rcx, rax
and rcx, r10
movzx eax, byte [rcx + r9]
mov byte [r11], al
inc r11
inc rdx
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x48], rdx
jmp 0x18000f157
cmp r15d, 9
jb 0x18000f210
cmp r15d, r8d
ja 0x18000f210
mov eax, 0xfffffff8
and rdx, rax
add rdx, rcx
nop
mov eax, dword [rcx]
mov dword [r11], eax
mov eax, dword [rcx + 4]
add rcx, 8
mov dword [r11 + 4], eax
add r11, 8
cmp rcx, rdx
jb 0x18000f1b0
and r15d, 7
mov qword [rsp + 0x30], r11
cmp r15d, 3
jae 0x18000f210
test r15d, r15d
je 0x18000fb07
movzx eax, byte [rcx]
mov byte [r11], al
cmp r15d, 1
jbe 0x18000f1f5
movzx eax, byte [rcx + 1]
mov byte [r11 + 1], al
mov rdi, qword [rsp + 0x40]
mov eax, r15d
add r11, rax
mov qword [rsp + 0x30], r11
jmp 0x18000ed05
movzx eax, byte [rcx]
lea rcx, [rcx + 3]
mov byte [r11], al
add r15d, 0xfffffffd
movzx eax, byte [rcx - 2]
mov byte [r11 + 1], al
movzx eax, byte [rcx - 1]
mov byte [r11 + 2], al
add r11, 3
cmp r15d, 2
jg 0x18000f210
mov qword [rsp + 0x30], r11
test r15d, r15d
jle 0x18000fb07
movzx eax, byte [rcx]
mov byte [r11], al
cmp r15d, 1
jle 0x18000f1f5
jmp 0x18000f1ed
test byte [r12 + 0x14], 1
je 0x18000eb8d
test r14b, 1
jne 0x18000fe7d
xor r13d, r13d
mov dword [r12], 0x22
jmp 0x18000fc68
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, 3
jb 0x18000eb96
mov eax, ebp
add ebx, 0xfffffffd
and eax, 7
shr rbp, 3
mov dword [r12 + 0x14], eax
shr eax, 1
mov dword [r12 + 0x18], eax
jne 0x18000f484
mov eax, ebx
and eax, 7
cmp ebx, eax
jae 0x18000f2e8
cmp rsi, r13
jb 0x18000f2ce
test r14b, 2
jne 0x18000fb83
xor eax, eax
jmp 0x18000f2d4
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
mov eax, ebx
and eax, 7
cmp ebx, eax
jb 0x18000f2bb
mov ecx, ebx
mov eax, 0xfffffff8
and cl, 7
and ebx, eax
shr rbp, cl
xor r15d, r15d
cmp r15d, 4
jae 0x18000f36b
test ebx, ebx
je 0x18000f34a
cmp ebx, 8
jae 0x18000f332
cmp rsi, r13
jb 0x18000f31c
test r14b, 2
jne 0x18000fb96
xor eax, eax
jmp 0x18000f322
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, 8
jb 0x18000f309
mov byte [r15 + r12 + 0x2928], bpl
mov eax, 0xfffffff8
add ebx, eax
shr rbp, 8
inc r15d
jmp 0x18000f2fa
cmp rsi, r13
jb 0x18000ec07
test r14b, 2
jne 0x18000fba9
mov byte [r15 + r12 + 0x2928], 0
inc r15d
jmp 0x18000f2fa
movzx eax, byte [r12 + 0x2928]
movzx r15d, byte [r12 + 0x2929]
movzx ecx, byte [r12 + 0x292b]
shl ecx, 8
shl r15d, 8
or r15d, eax
movzx eax, byte [r12 + 0x292a]
or ecx, eax
xor ecx, 0xffff
cmp r15d, ecx
jne case.0x18000ea45.39
mov rdi, qword [rsp + 0x40]
test r15d, r15d
je 0x18000f254
test ebx, ebx
je 0x18000f417
cmp ebx, 8
jae 0x18000f3ea
cmp rsi, r13
jb 0x18000f3d4
test r14b, 2
jne 0x18000fbbc
xor eax, eax
jmp 0x18000f3da
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, 8
jb 0x18000f3c1
movzx r8d, bpl
mov eax, 0xfffffff8
shr rbp, 8
add ebx, eax
mov dword [rsp + 0x20], r8d
cmp r11, rdi
jae 0x18000fbcf
mov byte [r11], r8b
inc r11
mov qword [rsp + 0x30], r11
dec r15d
jmp 0x18000f3af
test r15d, r15d
je 0x18000f254
cmp r11, rdi
jae 0x18000fbfc
cmp rsi, r13
jae 0x18000fbe2
mov rcx, rdi
mov edx, r15d
sub rcx, r11
mov rdi, r13
sub rdi, rsi
mov rax, rcx
cmp rcx, rdi
cmovae rax, rdi
cmp rax, rdx
jae 0x18000f459
cmp rcx, rdi
cmovb rdi, rcx
jmp 0x18000f45c
mov rdi, rdx
mov r8, rdi
mov rdx, rsi
mov rcx, r11
call fcn.1800b0420
mov r11, qword [rsp + 0x30]
add rsi, rdi
add r11, rdi
sub r15d, edi
mov qword [rsp + 0x30], r11
mov rdi, qword [rsp + 0x40]
jmp 0x18000f417
cmp eax, 3
je case.0x18000ea45.10
cmp eax, 1
jne 0x18000f563
movabs rax, 0x505050505050505
mov dword [r12 + 0x2c], pe_nt_image_headers64
mov dword [r12 + 0x30], 0x20
mov ecx, 2
mov qword [r12 + 0xde8], rax
movabs r8, 0x808080808080808
mov qword [r12 + 0xdf0], rax
mov qword [r12 + 0xdf8], rax
mov qword [r12 + 0xe00], rax
lea rax, [r12 + 0x48]
nop word [rax + rax]
mov qword [rax], r8
mov qword [rax + 8], r8
mov qword [rax + 0x10], r8
lea rax, [rax + 0x40]
mov qword [rax - 0x28], r8
mov qword [rax - 0x20], r8
mov qword [rax - 0x18], r8
mov qword [rax - 0x10], r8
mov qword [rax - 8], r8
sub rcx, 1
jne 0x18000f4f0
mov qword [rax], r8
lea rdi, [r12 + 0xd8]
mov qword [rax + 8], r8
mov ecx, 0x70
mov eax, 9
rep stosb byte [rdi], al
movabs rax, 0x707070707070707
mov qword [r12 + 0x148], rax
mov qword [r12 + 0x150], rax
mov qword [r12 + 0x158], rax
mov qword [r12 + 0x160], r8
jmp 0x18000f679
xor r15d, r15d
lea r8, sym.SdAppServices_x64.dll_Ordinal_60
cmp r15d, 3
jae 0x18000f5fa
movsx eax, byte [r15 + r8 + 0xff218]
cmp ebx, eax
jae 0x18000f5bc
cmp rsi, r13
jb 0x18000f59e
test r14b, 2
jne 0x18000fc0c
xor eax, eax
lea r8, sym.SdAppServices_x64.dll_Ordinal_60
jmp 0x18000f5a4
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
movsx eax, byte [r15 + r8 + 0xff218]
cmp ebx, eax
jb 0x18000f584
movzx ecx, byte [r15 + r8 + 0xff218]
mov edx, 1
shl edx, cl
dec edx
and edx, ebp
mov dword [r12 + r15*4 + 0x2c], edx
movsx ecx, byte [r15 + r8 + 0xff218]
shr rbp, cl
sub ebx, ecx
mov ecx, dword [r8 + r15*4 + 0xfd958]
add ecx, edx
mov dword [r12 + r15*4 + 0x2c], ecx
inc r15d
jmp 0x18000f56d
lea rcx, [r12 + 0x1b88]
xor edx, edx
mov r8d, pe_nt_image_headers64
call fcn.1800b27a0
xor r15d, r15d
lea rdx, sym.SdAppServices_x64.dll_Ordinal_60
cmp r15d, dword [r12 + 0x34]
jae 0x18000f670
cmp ebx, 3
jae 0x18000f64e
cmp rsi, r13
jb 0x18000f638
test r14b, 2
jne 0x18000fc1c
xor eax, eax
jmp 0x18000f63e
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, 3
jb 0x18000f625
movzx eax, byte [r15 + rdx + 0xfd778]
mov ecx, ebp
and ecx, 7
shr rbp, 3
add ebx, 0xfffffffd
inc r15d
mov byte [rax + r12 + 0x1b88], cl
jmp 0x18000f619
mov dword [r12 + 0x34], 0x13
mov eax, dword [r12 + 0x18]
test eax, eax
js 0x18000fb02
imul r14, rax, 0xda0
xor eax, eax
xor edx, edx
add r14, r12
mov qword [rsp + 0xd0], rax
mov r8d, 0xc80
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rax
lea rcx, [r14 + 0x168]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
call fcn.1800b27a0
mov eax, dword [r12 + 0x18]
mov r9d, dword [r12 + rax*4 + 0x2c]
test r9d, r9d
je 0x18000f714
lea rcx, [r14 + 0x48]
mov edx, r9d
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
inc dword [rsp + rax*4 + 0xd0]
sub rdx, 1
jne 0x18000f700
xor edi, edi
xor ecx, ecx
mov qword [rsp + 0x80], rcx
xor edx, edx
lea r8d, [rdi + 0xf]
nop word [rax + rax]
mov eax, dword [rsp + rdx + 0xd4]
lea rdx, [rdx + 4]
add ecx, eax
add edi, eax
add ecx, ecx
mov dword [rsp + rdx + 0x84], ecx
sub r8, 1
jne 0x18000f730
cmp ecx, 0x10000
je 0x18000f75f
cmp edi, 1
ja 0x18000fe0d
or r10d, 0xffffffff
xor r11d, r11d
test r9d, r9d
je 0x18000f88f
nop
movzx r9d, byte [r11 + r14 + 0x48]
xor edx, edx
test r9d, r9d
je 0x18000f87c
lea rcx, [rsp + 0x80]
mov r8d, r9d
mov edi, dword [rcx + r9*4]
lea rcx, [rcx + r9*4]
lea eax, [rdi + 1]
mov dword [rcx], eax
nop dword [rax]
mov ecx, edi
lea eax, [rdx + rdx]
and ecx, 1
shr edi, 1
mov edx, ecx
or edx, eax
add r8d, 0xffffffff
jne 0x18000f7a0
cmp r9d, 0xa
ja 0x18000f7f9
movzx edi, r9w
shl di, 9
or di, r11w
cmp edx, 0x400
jae 0x18000f87c
mov ecx, r9d
mov r8d, 1
shl r8d, cl
nop
mov word [r14 + rdx*2 + 0x168], di
add edx, r8d
cmp edx, 0x400
jb 0x18000f7e0
jmp 0x18000f87c
mov eax, edx
and eax, 0x3ff
movsx ecx, word [r14 + rax*2 + 0x168]
test ecx, ecx
jne 0x18000f81d
mov word [r14 + rax*2 + 0x168], r10w
mov ecx, r10d
sub r10d, 2
shr edx, 9
cmp r9d, 0xb
jbe 0x18000f867
lea edi, [r9 - 0xb]
nop word [rax + rax]
shr edx, 1
mov eax, edx
and eax, 1
sub ecx, eax
not ecx
movsxd rax, ecx
movzx ecx, word [r14 + rax*2 + 0x968]
test cx, cx
jne 0x18000f85e
mov word [r14 + rax*2 + 0x968], r10w
mov ecx, r10d
sub r10d, 2
jmp 0x18000f861
movsx ecx, cx
sub rdi, 1
jne 0x18000f830
shr edx, 1
and edx, 1
sub edx, ecx
lea eax, [rdx - 1]
cdqe
mov word [r14 + rax*2 + 0x968], r11w
mov eax, dword [r12 + 0x18]
inc r11d
cmp r11d, dword [r12 + rax*4 + 0x2c]
jb 0x18000f770
cmp dword [r12 + 0x18], 2
jne 0x18000faf0
xor r15d, r15d
mov eax, dword [r12 + 0x30]
add eax, dword [r12 + 0x2c]
cmp r15d, eax
jae 0x18000faa4
cmp ebx, 0xf
jae 0x18000f97d
mov rax, r13
sub rax, rsi
cmp rax, 2
jge 0x18000f95e
mov rax, rbp
and eax, 0x3ff
movsx edi, word [r12 + rax*2 + 0x1ca8]
test edi, edi
js 0x18000f8f0
sar edi, 9
test edi, edi
je 0x18000f927
cmp ebx, edi
jae 0x18000f97d
jmp 0x18000f927
cmp ebx, 0xa
jbe 0x18000f927
mov ecx, 0xa
nop word [rax + rax]
not edi
mov rdx, rbp
shr rdx, cl
inc ecx
and edx, 1
movsxd rax, edi
add rdx, rax
movsx edi, word [r12 + rdx*2 + 0x24a8]
test edi, edi
jns 0x18000f97d
lea eax, [rcx + 1]
cmp ebx, eax
jae 0x18000f900
cmp rsi, r13
jb 0x18000f942
mov r14d, dword [rsp + 0x190]
test r14b, 2
jne 0x18000fc2c
xor eax, eax
jmp 0x18000f948
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, 0xf
jb 0x18000f8ca
jmp 0x18000f97d
movzx edx, byte [rsi + 1]
lea ecx, [rbx + 8]
movzx eax, byte [rsi]
add rsi, 2
shl rdx, cl
mov ecx, ebx
shl rax, cl
or rdx, rax
or rbp, rdx
add ebx, 0x10
mov rax, rbp
and eax, 0x3ff
movsx r8d, word [r12 + rax*2 + 0x1ca8]
test r8d, r8d
js 0x18000f9a2
mov ecx, r8d
sar ecx, 9
and r8d, 0x1ff
jmp 0x18000f9d2
mov ecx, 0xa
nop word [rax + rax]
not r8d
mov rdx, rbp
shr rdx, cl
inc ecx
and edx, 1
movsxd rax, r8d
add rdx, rax
movsx r8d, word [r12 + rdx*2 + 0x24a8]
test r8d, r8d
js 0x18000f9b0
shr rbp, cl
sub ebx, ecx
mov dword [rsp + 0x20], r8d
cmp r8d, 0x10
jae 0x18000f9f2
mov byte [r15 + r12 + 0x292c], r8b
inc r15d
jmp 0x18000f89e
jne 0x18000f9fd
test r15d, r15d
je 0x18000fe22
lea ecx, [r8 - 0x10]
lea rax, sym.SdAppServices_x64.dll_Ordinal_60
movsx edx, byte [rcx + rax + 0xff21c]
mov dword [rsp + 0x38], edx
cmp ebx, edx
jae 0x18000fa48
cmp rsi, r13
jb 0x18000fa33
mov r14d, dword [rsp + 0x190]
test r14b, 2
jne 0x18000fc3c
xor eax, eax
jmp 0x18000fa39
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, edx
jb 0x18000fa18
mov ecx, edx
lea rax, sym.SdAppServices_x64.dll_Ordinal_60
mov edi, 1
sub ebx, edx
shl edi, cl
dec edi
and edi, ebp
shr rbp, cl
lea ecx, [r8 - 0x10]
movsx eax, byte [rcx + rax + 0xff220]
add edi, eax
cmp r8d, 0x10
jne 0x18000fa84
lea eax, [r15 - 1]
movzx edx, byte [rax + r12 + 0x292c]
jmp 0x18000fa86
xor edx, edx
mov eax, r15d
lea rcx, [r12 + 0x292c]
add rcx, rax
mov r8d, edi
call fcn.1800b27a0
add r15d, edi
jmp 0x18000f89e
mov edx, dword [r12 + 0x2c]
mov ecx, dword [r12 + 0x30]
add ecx, edx
cmp ecx, r15d
jne 0x18000fe37
mov r8d, edx
lea rcx, [r12 + 0x48]
lea rdx, [r12 + 0x292c]
call fcn.1800b0420
mov eax, dword [r12 + 0x2c]
lea rdx, [r12 + 0x292c]
mov r8d, dword [r12 + 0x30]
lea rcx, [r12 + 0xde8]
add rdx, rax
call fcn.1800b0420
dec dword [r12 + 0x18]
mov r14d, dword [rsp + 0x190]
jmp 0x18000f679
mov r11, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
jmp 0x18000ed05
mov r13d, 1
mov dword [r12], 0x17
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 0x19
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 0x1a
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 0x1b
jmp 0x18000fc68
mov r13d, 2
mov dword [r12], 0x35
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 3
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 5
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 6
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 7
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 0x33
jmp 0x18000fc68
mov r13d, 2
mov dword [r12], 0x34
jmp 0x18000fc68
test r14b, 2
je case.0x18000ea45.40
mov r13d, 1
mov dword [r12], 0x26
jmp 0x18000fc68
mov r13d, 2
mov dword [r12], 9
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], VariantTimeToDosDateTime
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 0xe
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 0x10
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 0x12
jmp 0x18000fc68
mov r13d, 2
mov dword [r12], 0x18
jmp 0x18000fc68
mov dword [r12], 0x27
or r13, 0xffffffffffffffff
mov r11d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x38]
sub rsi, qword [rsp + 0x28]
mov r10, qword [rsp + 0x30]
mov dword [r12 + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [r12 + 0x40], rax
mov rax, qword [rsp + 0x60]
mov qword [r12 + 0x38], rbp
mov rbp, qword [rsp + 0x178]
mov dword [r12 + 0x20], r11d
mov r11, qword [rsp + 0x68]
mov dword [r12 + 4], ebx
sub r10, r11
mov dword [r12 + 0x24], r15d
mov qword [rax], rsi
mov rax, qword [rsp + 0x70]
mov qword [rax], r10
test r14b, 9
je 0x18000fdeb
test r13d, r13d
js 0x18000fdeb
mov edi, dword [r12 + 0x1c]
movabs rax, 0x79baa6bb6398b6f7
mul r10
mov rax, r10
movzx ecx, di
sub rax, rdx
shr edi, 0x10
shr rax, 1
mov r8, r10
add rax, rdx
shr rax, 0xc
imul rax, rax, 0x15b0
sub r8, rax
test r10, r10
je 0x18000fdc8
nop
xor edx, edx
cmp r8, 7
jbe 0x18000fd7a
lea r9d, [rdx + 7]
nop dword [rax]
movzx eax, byte [r11]
add r9d, 8
add ecx, eax
add edx, 8
movzx eax, byte [r11 + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [r11 + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [r11 + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [r11 + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [r11 + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [r11 + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [r11 + 7]
add edi, ecx
add ecx, eax
add r11, 8
add edi, ecx
mov eax, r9d
cmp rax, r8
jb 0x18000fd20
mov eax, edx
cmp rax, r8
jae 0x18000fd95
movzx eax, byte [r11]
inc edx
add ecx, eax
inc r11
add edi, ecx
mov eax, edx
cmp rax, r8
jb 0x18000fd81
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub r10, r8
mov r8d, 0x15b0
jne 0x18000fd10
shl edi, 0x10
add edi, ecx
mov dword [r12 + 0x1c], edi
test r13d, r13d
jne 0x18000fdeb
test r14b, 1
je 0x18000fdeb
cmp edi, dword [r12 + 0x10]
mov eax, 0xfffffffe
cmovne r13d, eax
mov eax, r13d
jmp 0x18000ff6a
mov dword [r12], 0x28
jmp case.0x18000ea45.4
mov dword [r12], 0xa
jmp case.0x18000ea45.4
mov r14d, dword [rsp + 0x190]
mov dword [r12], 0x23
jmp case.0x18000ea45.4
mov r14d, dword [rsp + 0x190]
mov dword [r12], 0x11
jmp case.0x18000ea45.4
mov r14d, dword [rsp + 0x190]
mov dword [r12], 0x15
jmp case.0x18000ea45.4
mov dword [r12], 0x25
jmp case.0x18000ea45.4
mov r11, rsi
cmp rsi, r13
jae 0x18000fe6a
movzx eax, byte [r11]
inc rsi
jmp 0x18000fe72
test r14b, 2
jne 0x18000fea7
xor eax, eax
mov ecx, ebx
shl rax, cl
or rbp, rax
add ebx, 8
mov eax, ebx
and eax, 7
cmp ebx, eax
jae 0x18000fe93
cmp rsi, r13
jae 0x18000fe6a
movzx eax, byte [rsi]
inc rsi
jmp 0x18000fe72
mov ecx, ebx
mov eax, 0xfffffff8
and cl, 7
and ebx, eax
shr rbp, cl
xor r15d, r15d
jmp 0x18000fee1
mov r13d, 1
mov dword [r12], 0x20
jmp 0x18000fc68
mov r11, rsi
cmp rsi, r13
jae 0x18000fef9
movzx eax, byte [rsi]
jmp 0x18000ff06
test r14b, 2
jne 0x18000ff4a
xor ecx, ecx
mov eax, dword [r12 + 0x10]
shl eax, 8
or eax, ecx
mov dword [r12 + 0x10], eax
inc r15d
cmp r15d, 4
jae case.0x18000ea45.34
test ebx, ebx
je case.0x18000ea45.42
cmp ebx, 8
jae 0x18000ff19
cmp rsi, r13
jb 0x18000ff03
test r14b, 2
jne 0x18000ff37
xor eax, eax
jmp 0x18000ff09
movzx eax, byte [rsi]
inc rsi
mov ecx, ebx
add ebx, 8
shl rax, cl
or rbp, rax
cmp ebx, 8
jb 0x18000fef4
movzx ecx, bpl
mov eax, 0xfffffff8
shr rbp, 8
add ebx, eax
jmp 0x18000fecf
cmp rsi, r13
jae 0x18000fec7
movzx ecx, byte [rsi]
inc rsi
jmp 0x18000fecf
mov r13d, 1
mov dword [r12], 0x29
jmp 0x18000fc68
mov r13d, 1
mov dword [r12], 0x2a
jmp 0x18000fc68
xor eax, eax
mov qword [r15], rax
mov qword [r8], rax
mov eax, 0xfffffffd
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1800ae8d0
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret