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

Disassembly:
mov r11, rsp
mov word [r11 + 0x20], r9w
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd8
movzx eax, word [rsp + 0x140]
xor ebx, ebx
mov qword [rsp + 0x48], rbx
movzx r10d, r9w
mov r8, rdx
mov r9, rcx
mov r12d, ebx
mov r15d, ebx
test ax, ax
je 0x180323989
mov rax, qword [rcx]
mov r10, qword [rax]
test byte [r10 + 0x5c], 0x40
jne 0x1803241ec
movzx r10d, word [r11 + 0x20]
movzx eax, word [rsp + 0x140]
movzx ebp, word [rdx]
mov word [rsp + 0x62], bp
cmp bp, 0x3f
ja 0x1803241ec
mov r11d, ebx
movzx r14d, bp
mov ecx, r14d
mov dword [rsp + 0x64], r14d
mov edi, 1
mov qword [rsp + 0x80], rbx
shl rdi, cl
movzx esi, r10w
dec rdi
mov qword [rsp + 0x68], rbx
mov ecx, 0x800
mov qword [rsp + 0x88], rdi
and si, cx
mov dword [rsp + 0x54], ebx
mov r13b, 1
mov word [rsp + 0x3c], si
setne r11b
mov dword [rsp + 0x30], r13d
add r11w, 0x182
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x38], r11d
mov rdx, rbx
mov ecx, ebx
cmp r15, rdi
jae 0x1803241b7
movzx eax, ax
cmp ecx, eax
jg 0x1803241b4
test ecx, ecx
jle 0x180323a25
or rdx, qword [r12 + 8]
mov qword [rsp + 0x68], rdx
cmp ecx, eax
jge 0x180323a49
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + rbx*8]
mov qword [rsp + 0x58], r12
test si, si
jne 0x18032417e
jmp 0x180323a56
mov r12, qword [rsp + 0x148]
mov qword [rsp + 0x58], r12
mov edx, dword [r12 + 0x28]
bt edx, 0xa
jb 0x1803241a7
movzx eax, r10w
mov ecx, 0x80
and ax, cx
mov word [rsp + 0x60], ax
je 0x180323a80
xor eax, eax
mov word [r12 + 0x1e], ax
movzx eax, byte [r12 + 0x10]
imul rcx, rax, 0x70
mov rax, qword [r9 + 8]
xor r9d, r9d
mov esi, r9d
mov r10d, dword [rcx + rax + 0x4c]
mov dword [rsp + 0x40], r10d
test r14d, r14d
je 0x180323bd2
mov r13, qword [rsp + 0x120]
lea rdi, [r8 + 8]
mov ebp, r9d
nop word [rax + rax]
mov eax, esi
bt r15, rax
jb 0x180323ba9
mov rbx, qword [rdi]
test rbx, rbx
je 0x180323af7
mov eax, dword [rbx + 4]
test eax, 0x41000
je 0x180323af7
bt eax, 0x12
jae 0x180323aee
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
jmp 0x180323af2
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180323ad4
cmp byte [rbx], 0xa4
jne 0x180323ba9
cmp dword [rbx + 0x2c], r10d
jne 0x180323ba9
mov r9, qword [rsp + 0x68]
lea rcx, [r13 + 0x68]
movsx r8d, word [rbx + 0x30]
not r9
movzx eax, r11w
mov edx, r10d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call fcn.18031f700
mov r8, rax
test rax, rax
je 0x180323b9c
movzx r10d, word [rax + 0x14]
cmp r10w, 1
jne 0x180323b78
movzx edx, word [r12 + 0x2c]
xor r9d, r9d
mov ecx, r9d
test edx, edx
je 0x180323b74
mov r9, qword [r12 + 0x38]
nop dword [rax]
movsxd rax, ecx
cmp r8, qword [r9 + rax*8]
je 0x180323b71
inc ecx
cmp ecx, edx
jl 0x180323b60
jmp 0x180323b9c
xor r9d, r9d
cmp ecx, edx
jge 0x180323b9f
test r10b, 0x82
je 0x180323b98
cmp word [rbx + 0x30], 0
jl 0x180323b98
mov r8, qword [r8]
mov rdx, qword [rdi]
mov rcx, qword [r13]
call fcn.1802d1ff0
test eax, eax
je 0x180323b9c
bts r15, rbp
xor r9d, r9d
mov r10d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x38]
inc esi
inc rbp
add rdi, 0x20
cmp esi, r14d
jl 0x180323ac0
mov r13d, dword [rsp + 0x30]
mov edx, dword [r12 + 0x28]
mov r8, qword [rsp + 0x128]
mov qword [rsp + 0x48], r15
bt edx, 0xc
jb 0x180324050
bt edx, 8
jae 0x180323bfb
mov esi, dword [rsp + 0x30]
mov r11, r9
mov qword [rsp + 0x70], r9
mov eax, 1
mov word [rsp + 0x50], r9w
jmp 0x180323c41
mov r11, qword [r12 + 0x20]
mov qword [rsp + 0x70], r11
test r11, r11
je 0x1803241ec
test byte [r11 + 0x64], 4
jne 0x1803241ec
cmp byte [r11 + 0x62], 0
movzx eax, word [r11 + 0x5e]
mov word [rsp + 0x50], ax
movzx eax, word [r11 + 0x60]
je 0x180323c3a
bt edx, 0xf
jb 0x180323c3a
mov sil, 1
jmp 0x180323c3d
xor sil, sil
mov dword [rsp + 0x30], esi
xor cl, cl
movzx eax, ax
xor dil, dil
mov byte [rsp + 0x35], cl
mov byte [rsp + 0x34], cl
mov r13d, r9d
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x78], eax
test eax, eax
je 0x18032404b
nop dword [rax]
nop dword [rax + rax]
movzx r10d, word [r12 + 0x18]
mov bl, 1
cmp r13d, r10d
jge 0x180323ced
movzx eax, word [r12 + 0x2e]
cmp r13d, eax
jl 0x180323ced
mov r9, qword [r12 + 0x38]
movsxd rax, r13d
mov rcx, qword [r9 + rax*8]
movzx eax, word [rcx + 0x14]
test word [rsp + 0x38], ax
je 0x180323cc3
mov ecx, 0x180
mov r9d, 0
test cx, ax
movzx eax, sil
mov ecx, r9d
cmove ecx, eax
movzx esi, cl
mov dword [rsp + 0x30], esi
jmp 0x180324014
test al, 1
je 0x180323cea
mov r8, qword [rcx]
lea edx, [r13 + 1]
cmp edx, r10d
jge 0x180323cea
movsxd rax, edx
mov rcx, qword [r9 + rax*8]
cmp qword [rcx], r8
je 0x180323ce8
inc edx
cmp edx, r10d
jl 0x180323cd3
jmp 0x180323cea
xor bl, bl
xor r9d, r9d
test r11, r11
je 0x180323d1a
mov rax, qword [r11 + 8]
movsxd rcx, r13d
movsx r14d, word [rax + rcx*2]
mov rax, qword [r11 + 0x38]
movzx r12d, byte [rcx + rax]
mov rax, qword [r11 + 0x18]
and r12b, 1
movsx ecx, word [rax + 0x44]
cmp r14d, ecx
jne 0x180323d23
jmp 0x180323d1d
xor r12b, r12b
mov r14d, 0xffffffff
test sil, sil
je 0x180323d52
test r14d, r14d
js 0x180323d52
cmp r13d, r10d
jl 0x180323d52
mov rax, qword [r11 + 0x18]
movzx esi, sil
mov rcx, qword [rax + 8]
movsxd rax, r14d
shl rax, 5
cmp byte [rax + rcx + 0x18], 0
cmove esi, r9d
mov dword [rsp + 0x30], esi
mov ebp, r9d
test bl, bl
je 0x180323f03
nop dword [rax]
cmp ebp, dword [rsp + 0x64]
jge 0x180323eff
mov eax, ebp
bt r15, rax
jb 0x180323ef5
mov rsi, qword [rsp + 0x128]
add rsi, 8
movsxd r15, ebp
mov rax, r15
shl rax, 5
add rsi, rax
mov rdx, qword [rsi]
test rdx, rdx
je 0x180323dc3
nop word [rax + rax]
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x180323dc3
bt eax, 0x12
jae 0x180323dba
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + 8]
jmp 0x180323dbe
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x180323da0
test byte [rsp + 0x138], 0xc0
mov ecx, r9d
movzx eax, bl
cmovne ecx, eax
movzx ebx, cl
movzx edi, cl
cmp r14d, 0xffffffff
jl 0x180323e08
cmp byte [rdx], 0xa4
jne 0x180323ef0
mov eax, dword [rsp + 0x40]
cmp dword [rdx + 0x2c], eax
jne 0x180323ef0
movsx eax, word [rdx + 0x30]
cmp eax, r14d
jne 0x180323ef0
jmp 0x180323e88
mov rax, qword [r11 + 0x50]
movsxd rcx, r13d
shl rcx, 5
mov r8, qword [rcx + rax + 8]
test r8, r8
je 0x180323e44
nop dword [rax]
mov eax, dword [r8 + 4]
test eax, 0x41000
je 0x180323e44
bt eax, 0x12
jae 0x180323e3b
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
jmp 0x180323e3f
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x180323e20
test rdx, rdx
je 0x180323e73
nop dword [rax]
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x180323e73
bt eax, 0x12
jae 0x180323e6a
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
jmp 0x180323e6e
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x180323e50
mov r9d, dword [rsp + 0x40]
xor ecx, ecx
call fcn.1802dab40
mov r11, qword [rsp + 0x70]
test eax, eax
jne 0x180323eed
cmp r14d, 0xffffffff
je 0x180323f43
mov rax, qword [rsp + 0x120]
mov rdx, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1802d1e20
test rax, rax
jne 0x180323eb4
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax]
lea r15, [0x1803b9ff0]
mov r11, qword [rsp + 0x70]
movsxd rcx, r13d
mov rax, qword [r11 + 0x40]
mov r9, qword [rax + rcx*8]
sub r9, rdx
movzx ecx, byte [rdx]
movzx r8d, byte [rdx + r9]
cmp ecx, r8d
jne 0x180323f30
test ecx, ecx
jne 0x180323f3e
movsxd r15, ebp
movzx ebx, dil
test ecx, ecx
je 0x180323f43
xor r9d, r9d
mov r15, qword [rsp + 0x48]
inc ebp
test bl, bl
jne 0x180323d60
mov edi, dword [rsp + 0x44]
mov r8, qword [rsp + 0x128]
mov r12, qword [rsp + 0x58]
test r13d, r13d
je 0x180323f23
movzx eax, word [rsp + 0x50]
cmp r13d, eax
jge 0x180324022
xor r13b, r13b
mov dword [rsp + 0x30], r13d
jmp 0x180324027
movzx ecx, byte [rcx + r15]
movzx eax, byte [r8 + r15]
sub ecx, eax
jne 0x180323ee2
inc rdx
jmp 0x180323ed1
cmp word [rsp + 0x60], 0
je 0x180323f58
mov rcx, qword [rsp + 0x58]
lea eax, [r13 + 1]
mov word [rcx + 0x1e], ax
test byte [rsp + 0x138], 0x40
mov r8, qword [rsp + 0x128]
jne 0x180323fbc
mov rax, r15
shl rax, 5
movzx ecx, byte [rax + r8 + 0x18]
and cl, 1
cmp byte [rsp + 0x35], 0
je 0x180323f94
xor r12b, byte [rsp + 0x34]
cmp r12b, cl
je 0x180323fbc
mov edi, dword [rsp + 0x44]
jmp 0x180323f0b
movzx edx, cl
xor dl, r12b
mov byte [rsp + 0x34], dl
je 0x180323fb7
mov rdx, qword [rsp + 0x150]
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rdx]
bts rcx, rax
mov qword [rdx], rcx
mov byte [rsp + 0x35], 1
mov r12, qword [rsp + 0x58]
mov rax, r15
shl rax, 5
test byte [rax + r8 + 0x18], 2
je 0x180323fe4
movzx eax, word [r12 + 0x18]
cmp r13d, eax
jne 0x18032403b
or dword [r12 + 0x28], 0x80000
mov edi, dword [rsp + 0x44]
cmp r14d, 0xffffffff
mov esi, dword [rsp + 0x30]
mov eax, 1
movzx edi, dil
cmove edi, eax
mov rax, qword [rsp + 0x48]
bts rax, r15
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rax
mov r15, rax
xor r9d, r9d
inc r13d
cmp r13d, dword [rsp + 0x78]
jl 0x180323c70
mov r13d, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x64]
test dil, dil
je 0x180324044
mov r13b, 1
mov dword [rsp + 0x30], r13d
jmp 0x180324059
mov edi, dword [rsp + 0x44]
jmp 0x180323f10
mov r15, qword [rsp + 0x48]
jmp 0x180324050
mov r13d, dword [rsp + 0x30]
test r13b, r13b
je 0x180324152
mov rax, qword [rsp + 0x80]
xor ecx, ecx
or rax, qword [r12 + 8]
mov edi, ecx
mov r15, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
test r14d, r14d
je 0x180324152
mov r13, qword [rsp + 0x120]
mov r12, rax
nop dword [rax + rax]
mov eax, edi
bt r15, rax
jb 0x180324130
movsxd rbp, edi
mov rax, rbp
shl rax, 5
mov rbx, qword [rax + r8 + 8]
test rbx, rbx
je 0x1803240c6
lea rcx, [r13 + 0x290]
mov rdx, rbx
call fcn.18031ef70
mov rsi, rax
xor ecx, ecx
jmp 0x1803240c9
mov rsi, rcx
test rsi, rsi
jne 0x18032411f
mov dword [rsp + 0xc0], ecx
mov eax, 1
mov word [rsp + 0xbc], ax
lea rax, [fcn.1802d48d0]
mov qword [rsp + 0xa0], rax
lea rax, [0x1802d4720]
mov qword [rsp + 0xa8], rax
test rbx, rbx
je 0x18032411f
mov rdx, rbx
lea rcx, [rsp + 0x98]
call fcn.1802ceb60
cmp word [rsp + 0xbc], si
je 0x18032412e
mov rax, r12
not rax
test rsi, rax
jne 0x18032412e
bts r15, rbp
xor ecx, ecx
mov r8, qword [rsp + 0x128]
inc edi
cmp edi, r14d
jl 0x180324090
mov r12, qword [rsp + 0x58]
mov r13d, dword [rsp + 0x30]
mov qword [rsp + 0x48], r15
mov r9, qword [rsp + 0x120]
movzx r10d, word [rsp + 0x138]
mov ecx, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x88]
movzx esi, word [rsp + 0x3c]
inc qword [rsp + 0x90]
inc ecx
mov rbx, qword [rsp + 0x90]
movzx eax, word [rsp + 0x140]
mov dword [rsp + 0x54], ecx
test r13b, r13b
jne 0x180323a03
jmp 0x1803241b4
cmp byte [r12 + 0x1d], 0
je 0x1803241b4
test r10b, r10b
jns 0x1803241b9
cmp r15, rdi
jne 0x1803241c0
movzx eax, byte [rsp + 0x62]
jmp 0x1803241ee
test r13b, r13b
jne 0x180324207
lea ecx, [r14 - 1]
test ecx, ecx
jle 0x1803241ec
nop dword [rax]
mov edx, 1
shl rdx, cl
dec rdx
mov rax, rdx
and rax, r15
cmp rax, rdx
je 0x180324202
dec ecx
test ecx, ecx
jg 0x1803241d0
xor al, al
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx eax, cl
jmp 0x1803241ee
mov al, 0xff
jmp 0x1803241ee