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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
mov qword [rsp + 0x158], rdx
mov edx, dword [rsp + 0x170]
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x160], r8
mov dword [rsp + 0xc8], r9d
mov word [rsp + 0x78], r9w
test dx, dx
je 0x140184875
mov rax, qword [rcx]
mov rax, qword [rax]
test byte [rax + 0x5c], 0x40
jne 0x140184bb0
mov rax, qword [rsp + 0x158]
mov eax, dword [rax]
mov dword [rsp + 0xcc], eax
mov esi, eax
cmp ax, 0x3f
ja 0x140184bb0
mov ecx, esi
movzx r10d, ax
mov eax, 1
xor esi, esi
shl rax, cl
test dword [rsp + 0xc8], 0x803
setne sil
add si, 0x182
sub rax, 1
mov word [rsp + 0x94], si
mov qword [rsp + 0xa0], rax
je 0x140184ca6
movzx eax, dx
xor r11d, r11d
lea r15, [0x14037cfa0]
mov r13d, r10d
mov dword [rsp + 0xc0], eax
movzx eax, dx
mov r14, r11
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x98], 0
jmp 0x14018495c
cmp r14, qword [rsp + 0xa0]
jae 0x140185378
mov rcx, qword [rsp + 0x88]
lea rax, [rcx + 1]
cmp qword [rsp + 0xa8], rcx
je 0x14018536e
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov rsi, qword [rdi + 8]
or qword [rsp + 0x98], rsi
mov rsi, qword [rsp + 0x88]
mov dword [rsp + 0x38], esi
cmp dword [rsp + 0xc0], esi
jle 0x140184c6d
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rsi*8]
mov qword [rsp + 0x30], rax
test word [rsp + 0x78], 0x800
jne 0x14018491b
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x28]
test dh, 4
jne 0x140184c8b
movzx eax, word [rsp + 0x78]
and ax, 0x80
mov word [rsp + 0x96], ax
je 0x1401849c4
mov rax, qword [rsp + 0x30]
xor r8d, r8d
mov word [rax + 0x1e], r8w
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x150]
movzx ecx, byte [rax + 0x10]
lea rax, [rcx*8]
sub rax, rcx
shl rax, 4
add rax, qword [rsi + 8]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x3c], eax
test r13d, r13d
je 0x1401852c0
mov rax, qword [rsp + 0x158]
mov r12, qword [rsp + 0x98]
xor edi, edi
add rax, 8
not r12
mov qword [rsp + 0x40], rax
mov rbp, rax
mov rax, r12
mov r12d, r13d
mov r13, rax
nop word [rax + rax]
mov rsi, r14
mov ecx, edi
shr rsi, cl
and esi, 1
jne 0x140184a70
mov rbx, qword [rbp]
test rbx, rbx
jne 0x140184a4d
jmp 0x140184a70
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140184a70
mov eax, dword [rbx + 4]
test eax, 0x41000
je 0x140184bd0
test eax, 0x40000
jne 0x140184a40
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140184a4d
nop dword [rax + rax]
add edi, 1
add rbp, 0x20
cmp r12d, edi
jne 0x140184a28
mov rax, qword [rsp + 0x30]
mov r13d, r12d
mov edx, dword [rax + 0x28]
test dh, 0x10
jne 0x140184cb8
test dh, 1
jne 0x140184d8b
mov rax, qword [rsp + 0x30]
mov r11, qword [rax + 0x20]
test r11, r11
je 0x140184bb0
test byte [r11 + 0x64], 4
jne 0x140184bb0
movzx eax, word [r11 + 0x5e]
movzx esi, byte [r11 + 0x62]
mov word [rsp + 0xc6], ax
movzx eax, word [r11 + 0x60]
mov byte [rsp + 0x7b], sil
mov dword [rsp + 0x7c], eax
test sil, sil
je 0x1401852b1
and dh, 0x80
je 0x1401852df
test eax, eax
je 0x140184b4a
mov byte [rsp + 0x7b], 0
jmp 0x140184da5
mov ebp, r12d
add esi, 1
add rdi, 0x20
cmp r13d, esi
jle 0x140184b18
test bpl, bpl
jne 0x140184ef0
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x140184f40
movzx eax, word [rsp + 0xc6]
cmp eax, esi
jg 0x140184f40
cmp byte [rsp + 0x48], 0
jne 0x140184f4b
cmp byte [rsp + 0x7b], 0
jne 0x140184f4b
mov r11, r14
mov r10d, r13d
cmp r14, qword [rsp + 0xa0]
je 0x140184ca6
lea ecx, [r10 - 1]
test ecx, ecx
jle 0x140184bb0
cmp ecx, 0x3f
jg 0x14018534d
mov eax, 1
mov rdx, r11
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x14018534d
mov r8d, 1
jmp 0x140184bab
mov rax, r8
mov rdx, r11
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x14018534d
sub ecx, 1
jne 0x140184b92
xor eax, eax
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rbx]
add eax, 0x5a
test al, 0xfd
jne 0x140184a70
mov eax, dword [rsp + 0x3c]
cmp dword [rbx + 0x2c], eax
jne 0x140184a70
mov rax, qword [rsp + 0x150]
movsx r8d, word [rbx + 0x30]
mov r9, r13
mov qword [rsp + 0x28], 0
mov edx, dword [rsp + 0x3c]
lea rcx, [rax + 0x70]
movzx eax, word [rsp + 0x94]
mov dword [rsp + 0x20], eax
call fcn.140184770
mov r8, rax
test rax, rax
je 0x140184a70
movzx eax, word [rax + 0x14]
cmp ax, 1
je 0x140185308
mov qword [rsp + 0x48], r8
test al, 0x82
je 0x140184c4b
cmp word [rbx + 0x30], 0
jns 0x140185227
mov ecx, edi
mov eax, 1
add edi, 1
add rbp, 0x20
shl rax, cl
or r14, rax
cmp r12d, edi
jne 0x140184a28
jmp 0x140184a7c
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x28]
test dh, 4
je 0x1401849a4
cmp byte [rax + 0x1d], 0
mov r11, r14
je 0x140185360
test byte [rsp + 0xc8], 0x80
jne 0x140185360
movzx eax, byte [rsp + 0xcc]
jmp 0x140184bb2
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
mov rdi, qword [rsp + 0x40]
xor ebp, ebp
lea rbx, [0x140160a10]
lea rsi, [0x1401469f0]
jmp 0x140184d1c
mov rax, qword [rsp + 0x150]
mov rdx, r12
lea rcx, [rax + 0x258]
call fcn.140160080
test rax, rax
je 0x140184d39
mov rdx, qword [rsp + 0xb0]
not rdx
test rdx, rax
je 0x140184d2a
add ebp, 1
add rdi, 0x20
cmp r13d, ebp
jle 0x14018491b
bt r14, rbp
jb 0x140184d0c
mov r12, qword [rdi]
test r12, r12
jne 0x140184ce0
mov eax, 1
mov ecx, ebp
shl rax, cl
or r14, rax
jmp 0x140184d0c
mov eax, 1
lea rcx, [rsp + 0xd0]
mov rdx, r12
mov qword [rsp + 0xd8], rbx
mov word [rsp + 0xf4], ax
mov qword [rsp + 0xe0], rsi
mov dword [rsp + 0xf8], 0
call fcn.140169670
cmp word [rsp + 0xf4], 0
je 0x140184d0c
mov eax, 1
mov ecx, ebp
shl rax, cl
or r14, rax
jmp 0x140184d0c
xor ecx, ecx
mov dword [rsp + 0x7c], 1
xor r11d, r11d
mov word [rsp + 0xc6], cx
mov byte [rsp + 0x7b], 1
movzx ecx, byte [rsp + 0x38]
mov eax, 1
xor r12d, r12d
mov qword [rsp + 0x58], 1
mov byte [rsp + 0x48], 0
shl rax, cl
mov byte [rsp + 0xc5], 0
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0xc4], 0
jmp 0x140184e35
movzx edx, word [rdi + 0x2e]
cmp edx, r12d
jg 0x140184e4d
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x38]
mov r8, qword [rcx + r12*8]
movzx edx, word [r8 + 0x14]
test word [rsp + 0x94], dx
je 0x140185176
movzx edi, byte [rsp + 0x7b]
test dx, 0x180
mov eax, 0
cmovne edi, eax
mov byte [rsp + 0x7b], dil
add qword [rsp + 0x58], 1
add r12, 1
cmp dword [rsp + 0x7c], r12d
jle 0x140184b34
mov rdi, qword [rsp + 0x30]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x50], r12d
movzx eax, word [rdi + 0x18]
cmp eax, r12d
jg 0x140184de0
test r13d, r13d
setg r10b
test r11, r11
je 0x1401851c1
mov rcx, qword [r11 + 0x38]
mov rdx, qword [r11 + 8]
mov dword [rsp + 0x38], 0xffffffff
movzx ecx, byte [rcx + r12]
movsx rdx, word [rdx + r12*2]
and ecx, 1
mov byte [rsp + 0x93], cl
mov rcx, qword [r11 + 0x18]
cmp dx, word [rcx + 0x34]
je 0x140184ec0
movsx edi, dx
cmp byte [rsp + 0x7b], 0
mov dword [rsp + 0x38], edi
je 0x140184ec0
test edi, edi
js 0x1401851e2
cmp eax, dword [rsp + 0x50]
jg 0x140184ec0
lea rax, [rdx + rdx*2]
mov rdx, qword [rcx + 8]
lea rax, [rdx + rax*8]
test byte [rax + 8], 0xf
setne byte [rsp + 0x7b]
nop dword [rax]
test r10b, r10b
je 0x140184b18
lea rax, [r12*8]
mov qword [rsp + 0x80], r12
xor esi, esi
mov r12d, r10d
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x158]
lea rdi, [rax + 8]
nop
mov rbx, r14
mov ecx, esi
shr rbx, cl
and ebx, 1
jne 0x140184b00
mov r8, qword [rdi]
mov rdx, r8
test r8, r8
jne 0x140184f29
jmp 0x140184b00
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140184b00
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x140184f80
test eax, 0x40000
jne 0x140184f18
mov rdx, qword [rdx + 0x10]
jmp 0x140184f20
cmp byte [rsp + 0x48], 0
je 0x140184b4a
mov rcx, qword [rsp + 0x30]
mov rsi, qword [rcx + 8]
or qword [rsp + 0xb0], rsi
test r13d, r13d
je 0x14018491b
mov rax, qword [rsp + 0x158]
add rax, 8
mov qword [rsp + 0x40], rax
jmp 0x140184cc9
test byte [rsp + 0x78], 0xc0
setne bpl
cmp dword [rsp + 0x38], 0xffffffff
jl 0x140185100
movzx eax, byte [rdx]
add eax, 0x5a
test al, 0xfd
jne 0x140184b03
mov eax, dword [rsp + 0x3c]
cmp dword [rdx + 0x2c], eax
jne 0x140184b03
movsx eax, word [rdx + 0x30]
cmp eax, dword [rsp + 0x38]
jne 0x140184b03
cmp dword [rsp + 0x38], 0xffffffff
je 0x140185034
mov rax, qword [rsp + 0x150]
mov rdx, r8
mov qword [rsp + 0x70], r11
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
call fcn.14017bca0
mov rcx, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
test rax, rax
je 0x1401851d6
mov rcx, qword [rsp + 0x60]
mov rdx, qword [r11 + 0x40]
mov r8, qword [rdx + rcx]
mov rcx, qword [rax]
jmp 0x140185023
movzx edx, byte [r15 + rdx]
cmp byte [r15 + rax], dl
jne 0x140184b03
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x140185010
test eax, eax
jne 0x14018501f
cmp word [rsp + 0x96], 0
mov r12, qword [rsp + 0x80]
je 0x140185055
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x58]
mov word [rax + 0x1e], cx
mov rdi, qword [rsp + 0x158]
movsxd rax, esi
shl rax, 5
movzx eax, byte [rdi + rax + 0x18]
test byte [rsp + 0x78], 0x40
jne 0x1401850b8
cmp byte [rsp + 0xc4], 0
jne 0x140185206
mov edx, eax
and edx, 1
cmp dl, byte [rsp + 0x93]
je 0x1401851f1
mov rcx, qword [rsp + 0x180]
mov rdi, qword [rsp + 0xb8]
mov byte [rsp + 0xc5], 1
mov byte [rsp + 0xc4], 1
or qword [rcx], rdi
nop dword [rax + rax]
test al, 2
je 0x1401850d6
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + 0x18]
cmp eax, dword [rsp + 0x50]
jne 0x140184b18
or dword [rcx + 0x28], 0x80000
movzx edi, byte [rsp + 0x48]
cmp dword [rsp + 0x38], 0xffffffff
mov eax, 1
mov ecx, esi
cmove edi, eax
mov eax, 1
shl rax, cl
mov byte [rsp + 0x48], dil
or r14, rax
jmp 0x140184e20
movsxd rax, dword [rsp + 0x40]
shl rax, 5
add rax, qword [r11 + 0x50]
mov r8, qword [rax + 8]
test r8, r8
jne 0x140185131
jmp 0x140184b03
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
test r8, r8
je 0x140184b03
mov eax, dword [r8 + 4]
test eax, 0x41000
je 0x140185150
test eax, 0x40000
jne 0x140185120
mov r8, qword [r8 + 0x10]
jmp 0x140185128
mov r9d, dword [rsp + 0x3c]
xor ecx, ecx
mov qword [rsp + 0x68], r11
call fcn.140182520
mov r11, qword [rsp + 0x68]
test eax, eax
jne 0x140184b03
mov r8, qword [rdi]
jmp 0x140184fc4
test r13d, r13d
setg r10b
and edx, 1
je 0x140184e54
mov rdx, qword [rsp + 0x58]
mov r9, qword [r8]
cmp eax, edx
jg 0x1401851ac
jmp 0x140184e54
add rdx, 1
cmp eax, edx
jle 0x140184e54
mov r8, qword [rcx + rdx*8]
cmp qword [r8], r9
jne 0x1401851a0
xor r10d, r10d
test r11, r11
jne 0x140184e5d
mov dword [rsp + 0x38], 0xffffffff
mov byte [rsp + 0x93], 0
jmp 0x140184ec0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x140184ff4
cmp dword [rsp + 0x38], 0xfffffffe
setne byte [rsp + 0x7b]
jmp 0x140184ec0
mov byte [rsp + 0xc5], 0
mov byte [rsp + 0xc4], 1
jmp 0x1401850b8
mov edx, eax
movzx ecx, byte [rsp + 0x93]
xor cl, byte [rsp + 0xc5]
and edx, 1
cmp cl, dl
jne 0x140184b18
jmp 0x1401850b8
mov rax, qword [rsp + 0x150]
mov rdx, qword [rbp]
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
call fcn.14017bca0
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
test rax, rax
mov rbx, rax
je 0x140185354
mov rax, qword [r8]
mov r9, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
test byte [rax + 5], 2
jne 0x1401852f8
mov r8, r9
call fcn.14017bea0
test rax, rax
je 0x140184a70
mov r8, qword [rax]
mov rcx, qword [rbx]
jmp 0x14018529b
movzx ebx, byte [r15 + rdx]
cmp byte [r15 + rax], bl
jne 0x140184a70
add rsi, 1
movzx eax, byte [rcx + rsi]
movzx edx, byte [r8 + rsi]
cmp eax, edx
jne 0x140185288
test eax, eax
jne 0x140185297
jmp 0x140184c4b
test eax, eax
jne 0x140184da5
jmp 0x140184b4a
test dh, 0x10
je 0x140184a90
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi + 8]
or qword [rsp + 0xb0], rcx
jmp 0x14018491b
mov byte [rsp + 0x7b], 1
test eax, eax
jne 0x140184da5
jmp 0x140184f4b
mov r8, rdx
mov rdx, r9
call fcn.14017bea0
jmp 0x140185273
mov rax, qword [rsp + 0x30]
movzx edx, word [rax + 0x2c]
test dx, dx
je 0x140184a70
mov rax, qword [rax + 0x38]
sub edx, 1
lea rdx, [rax + rdx*8 + 8]
cmp qword [rax], r8
je 0x140184c4b
add rax, 8
cmp rdx, rax
jne 0x140185326
add edi, 1
add rbp, 0x20
cmp r12d, edi
jne 0x140184a28
jmp 0x140184a7c
mov eax, ecx
jmp 0x140184bb2
mov rax, qword [rcx]
mov rbx, qword [rax + 0x10]
jmp 0x140185256
cmp qword [rsp + 0xa0], r11
je 0x140184ca6
mov eax, 0xffffffff
jmp 0x140184bb2
jne 0x14018536e
jmp 0x140184ca6