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

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x70
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x60], rsi
mov rsi, rcx
mov qword [rsp + 0x58], rdi
mov edi, edx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14003119b
call qword [0x1400e5848]
mov rcx, qword [rsi + 0x28]
cmp byte [rcx + 0x11], 0
je 0x1400311b3
inc dword [rcx + 0x14]
cmp byte [rcx + 0x12], 0
jne 0x1400311b3
call fcn.140024fb0
mov rax, qword [rsi]
test rax, rax
je 0x1400311ca
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400311ca
call qword [0x1400e5848]
mov ebx, dword [rsi + 0x30]
test ebx, ebx
je 0x1400311dd
lea eax, [rbx - 5]
cmp eax, 1
ja 0x14003196c
cmp qword [rsi], 0
mov qword [rsp + 0x68], rbp
mov rbp, qword [rsi + 0x28]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
mov rdx, qword [rbp + 8]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x90], 0
mov rax, qword [rdx]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + 8]
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov qword [rsp + 0x98], rax
je 0x14003123a
cmp byte [rdx + 0x24], 2
jne 0x14003123a
mov ebx, 5
jmp 0x1400313b8
xor ebx, ebx
cmp byte [rbp + 0x10], bl
jne 0x1400313b8
mov rdi, rdx
cmp byte [rbp + 0x11], bl
je 0x14003125d
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], bl
jne 0x14003125d
mov rcx, rbp
call fcn.140024fb0
movzx eax, byte [rbp + 0x10]
dec al
cmp al, 1
jbe 0x140031392
movzx ecx, word [rdi + 0x26]
test cl, 0x40
je 0x140031287
mov rax, qword [rdi + 0x78]
cmp qword [rax], rbx
je 0x140031287
mov ebx, 0x106
jmp 0x140031392
mov rax, qword [rbp + 8]
cmp byte [rbp + 0x11], bl
je 0x1400312ca
cmp qword [rax + 0x78], rbp
je 0x1400312a6
test byte [rax + 0x26], 0x20
je 0x1400312a6
mov ebx, 0x106
jmp 0x140031392
mov rax, qword [rax + 0x70]
test rax, rax
je 0x1400312ca
nop
cmp qword [rax], rbp
je 0x1400312c1
cmp dword [rax + 8], 1
jne 0x1400312c1
cmp byte [rax + 0xc], 1
jne 0x14003127d
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400312b0
mov eax, 0xfff7
and cx, ax
cmp dword [rdi + 0x3c], 0
mov word [rdi + 0x26], cx
jne 0x1400312e4
or cx, 8
mov word [rdi + 0x26], cx
xor r15d, r15d
cmp qword [rdi + 0x18], r15
jne 0x1400312fd
mov rcx, rdi
call fcn.140027bb0
mov ebx, eax
test eax, eax
je 0x1400312e7
jmp 0x140031301
test ebx, ebx
je 0x14003131d
cmp byte [rdi + 0x24], r15b
jne 0x14003131d
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14003131d
mov qword [rdi + 0x18], r15
mov rcx, qword [rcx + 0x70]
call fcn.140020be0
cmp bl, 5
jne 0x14003135d
cmp byte [rdi + 0x24], r15b
jne 0x14003135d
mov r14, qword [rdi + 8]
add r14, 0x218
je 0x14003135d
mov rax, qword [r14]
test rax, rax
je 0x14003135d
mov edx, dword [r14 + 0x10]
test edx, edx
js 0x14003135d
mov rcx, qword [r14 + 8]
call rax
test eax, eax
je 0x140031355
inc dword [r14 + 0x10]
jmp 0x1400312e7
mov dword [r14 + 0x10], 0xffffffff
test ebx, ebx
jne 0x140031392
cmp byte [rbp + 0x10], r15b
jne 0x140031384
inc dword [rdi + 0x38]
cmp byte [rbp + 0x11], r15b
je 0x140031384
mov byte [rbp + 0x3c], 1
mov rax, qword [rdi + 0x70]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x30]
mov qword [rdi + 0x70], rax
mov byte [rbp + 0x10], 1
cmp byte [rdi + 0x24], 1
jae 0x140031392
mov byte [rdi + 0x24], 1
cmp byte [rbp + 0x11], 0
je 0x1400313a6
sub dword [rbp + 0x14], 1
jne 0x1400313a6
mov rcx, rbp
call fcn.140024f80
mov edi, dword [rsp + 0x88]
mov dword [rsp + 0x90], 1
cmp dword [rsi + 0x14], 0
mov ebp, 7
jne 0x1400313d7
test ebx, ebx
jne 0x14003140c
mov rcx, rsi
call fcn.140030d80
cmp eax, ebp
jne 0x1400313db
mov ebx, ebp
jmp 0x14003140c
test ebx, ebx
jne 0x14003140c
cmp dword [rsi + 0x14], 0
jne 0x14003140c
mov rcx, qword [rsi + 8]
mov edx, 2
call fcn.140027f50
mov ebx, eax
test eax, eax
jne 0x14003140c
mov rcx, qword [rsi + 8]
lea r8, [rsi + 0x10]
lea edx, [rax + 1]
mov dword [rsi + 0x14], 1
call fcn.14002f390
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 8]
mov rax, qword [rsi + 8]
movsxd r13, dword [rcx + 0x30]
mov rax, qword [rax + 8]
mov r15d, dword [rax + 0x30]
mov rax, qword [rax]
mov dword [rsp + 0x80], r15d
movzx r12d, byte [rax + 9]
test ebx, ebx
jne 0x140031449
cmp r12d, 5
jne 0x140031449
cmp r13d, r15d
mov eax, 8
cmovne ebx, eax
mov r14d, dword [rcx + 0x3c]
xor ebp, ebp
nop
test edi, edi
js 0x14003145c
cmp ebp, edi
jge 0x1400314dc
mov edi, dword [rsi + 0x18]
cmp edi, r14d
ja 0x1400314dc
test ebx, ebx
jne 0x140031521
mov rax, qword [rsi + 0x28]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1400e4dcc]
div dword [rcx + 0x30]
inc eax
cmp edi, eax
je 0x1400314cb
mov rax, qword [rsp + 0x28]
lea r9d, [rbx + 2]
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rax
call qword [rax + 0x108]
mov ebx, eax
test eax, eax
jne 0x1400314cb
mov rax, qword [rsp + 0x20]
xor r9d, r9d
mov edx, edi
mov rcx, rsi
mov r8, qword [rax + 8]
call fcn.140030fe0
mov rcx, qword [rsp + 0x20]
mov ebx, eax
test rcx, rcx
je 0x1400314cb
call fcn.140020be0
inc dword [rsi + 0x18]
mov edi, dword [rsp + 0x88]
inc ebp
jmp 0x140031450
test ebx, ebx
jne 0x140031521
mov eax, r14d
mov dword [rsi + 0x38], r14d
sub eax, dword [rsi + 0x18]
inc eax
mov dword [rsi + 0x34], eax
cmp dword [rsi + 0x18], r14d
ja 0x14003152a
cmp dword [rsi + 0x3c], ebx
jne 0x1400318c1
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x70]
mov qword [rsi + 0x40], rax
mov qword [rdx + 0x70], rsi
mov dword [rsi + 0x3c], 1
jmp 0x1400318c1
cmp ebx, 0x65
jne 0x1400318c1
test r14d, r14d
jne 0x140031583
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x11], r14b
je 0x14003154a
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], r14b
jne 0x14003154a
mov rcx, rdi
call fcn.140024fb0
mov rax, qword [rdi + 8]
mov dword [rax + 0x3c], 0
mov rcx, qword [rdi + 8]
call fcn.140027e70
cmp byte [rdi + 0x11], 0
mov ebx, eax
je 0x140031574
sub dword [rdi + 0x14], 1
jne 0x140031574
mov rcx, rdi
call fcn.140024f80
mov r14d, 1
test ebx, ebx
je 0x140031583
cmp ebx, 0x65
jne 0x1400315e0
mov rdi, qword [rsi + 8]
mov ebp, dword [rsi + 0x10]
inc ebp
cmp byte [rdi + 0x11], 0
mov rbx, qword [rdi + 8]
je 0x1400315a7
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x1400315a7
mov rcx, rdi
call fcn.140024fb0
mov rcx, qword [rbx + 0x18]
mov r15, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x70]
call fcn.140021430
mov ebx, eax
test eax, eax
jne 0x1400315c4
bswap ebp
mov dword [r15 + 0x28], ebp
cmp byte [rdi + 0x11], 0
je 0x1400315d8
sub dword [rdi + 0x14], 1
jne 0x1400315d8
mov rcx, rdi
call fcn.140024f80
mov r15d, dword [rsp + 0x80]
test ebx, ebx
jne 0x1400318c1
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400315f5
call fcn.1400588c0
cmp r12d, 5
jne 0x140031613
mov rcx, qword [rsi + 8]
lea edx, [r12 - 3]
call fcn.1400309b0
mov ebx, eax
test eax, eax
jne 0x1400318c1
cmp r13d, r15d
jge 0x140031650
mov eax, r15d
cdq
idiv r13d
mov ecx, eax
lea eax, [r14 - 1]
add eax, ecx
cdq
idiv ecx
mov rcx, qword [rsi + 8]
xor edx, edx
mov r9d, eax
mov eax, dword [0x1400e4dcc]
mov r8, qword [rcx + 8]
lea edi, [r9 - 1]
div dword [r8 + 0x30]
inc eax
cmp r9d, eax
cmovne edi, r9d
jmp 0x14003165d
mov eax, r13d
cdq
idiv r15d
mov edi, eax
imul edi, r14d
cmp r13d, r15d
jge 0x140031819
mov r10, qword [rsp + 0x98]
mov r15, r13
movsxd r12, r14d
imul r12, r13
mov r14, qword [r10 + 0x48]
mov ebp, dword [r10 + 0x20]
cmp edi, ebp
ja 0x1400316e2
mov rax, qword [rsi + 8]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1400e4dcc]
div dword [rcx + 0x30]
inc eax
cmp edi, eax
je 0x1400316da
xor r9d, r9d
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, r10
call qword [r10 + 0x108]
mov ebx, eax
test eax, eax
jne 0x1400316d2
mov rcx, qword [rsp + 0x20]
call fcn.140021430
mov rcx, qword [rsp + 0x20]
mov ebx, eax
test rcx, rcx
je 0x1400316d2
call fcn.140020be0
mov r10, qword [rsp + 0x98]
inc edi
test ebx, ebx
je 0x140031680
jmp 0x1400316f6
test ebx, ebx
jne 0x1400316f6
xor edx, edx
lea r8d, [rbx + 1]
mov rcx, r10
call fcn.140021610
mov ebx, eax
mov edx, dword [0x1400e4dcc]
mov rbp, r12
mov eax, dword [rsp + 0x80]
add eax, edx
movsxd rcx, eax
cmp rcx, r12
lea eax, [rdx + r13]
movsxd rdi, eax
cmovl rbp, rcx
test ebx, ebx
jne 0x1400318c1
cmp rdi, rbp
jge 0x140031798
mov rax, rdi
mov qword [rsp + 0x80], 0
cqo
lea r8, [rsp + 0x80]
idiv r15
xor r9d, r9d
lea edx, [rax + 1]
mov rax, qword [rsp + 0x28]
mov rcx, rax
call qword [rax + 0x108]
mov ebx, eax
test eax, eax
jne 0x14003177a
mov rax, qword [rsp + 0x80]
mov r9, rdi
mov r10, qword [r14]
mov r8d, r13d
mov rcx, r14
mov rdx, qword [rax + 8]
call qword [r10 + 0x18]
mov ebx, eax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14003178c
call fcn.140020be0
add rdi, r15
test ebx, ebx
je 0x140031721
jmp 0x1400318c1
test ebx, ebx
jne 0x1400318c1
mov rax, qword [r14]
lea rdx, [rsp + 0x80]
mov rcx, r14
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jne 0x1400317cf
cmp qword [rsp + 0x80], r12
jle 0x1400317cf
mov rax, qword [r14]
mov rdx, r12
mov rcx, r14
call qword [rax + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x1400318c1
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rdi + 0x48]
cmp qword [rcx], rbx
je 0x140031803
mov rax, qword [rcx]
lea edx, [rbx + 0x15]
xor r8d, r8d
call qword [rax + 0x50]
mov ebx, eax
cmp eax, 0xc
jne 0x1400317ff
xor ebx, ebx
jmp 0x140031803
test eax, eax
jne 0x140031833
cmp byte [rdi + 0xb], 0
jne 0x140031833
mov rcx, qword [rdi + 0x48]
movzx edx, byte [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x140031831
mov rax, qword [rsp + 0x98]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rax + 0x20], edi
call fcn.140021610
mov ebx, eax
test ebx, ebx
jne 0x1400318c1
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x10], bl
je 0x1400318bc
cmp byte [rdi + 0x11], bl
je 0x140031859
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], bl
jne 0x140031859
mov rcx, rdi
call fcn.140024fb0
cmp byte [rdi + 0x10], 2
jne 0x1400318a0
mov r14, qword [rdi + 8]
mov rcx, qword [r14]
call fcn.140021840
mov ebx, eax
test eax, eax
je 0x140031887
cmp byte [rdi + 0x11], 0
je 0x1400318c1
sub dword [rdi + 0x14], 1
jne 0x1400318c1
mov rcx, rdi
call fcn.140024f80
jmp 0x1400318c1
dec dword [rdi + 0x1c]
mov rcx, qword [r14 + 0x58]
mov byte [r14 + 0x24], 1
call fcn.14001ab80
mov qword [r14 + 0x58], 0
mov rcx, rdi
call fcn.140028dc0
cmp byte [rdi + 0x11], 0
je 0x1400318bc
sub dword [rdi + 0x14], 1
jne 0x1400318bc
mov rcx, rdi
call fcn.140024f80
mov ebx, 0x65
cmp dword [rsp + 0x90], 0
mov r15, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
je 0x140031956
mov rcx, qword [rsi + 0x28]
xor edx, edx
call fcn.140028d10
mov rdi, qword [rsi + 0x28]
cmp byte [rdi + 0x10], 0
je 0x140031956
cmp byte [rdi + 0x11], 0
je 0x14003190b
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x14003190b
mov rcx, rdi
call fcn.140024fb0
cmp byte [rdi + 0x10], 2
jne 0x14003193a
mov r14, qword [rdi + 8]
mov rcx, qword [r14]
call fcn.140021840
test eax, eax
jne 0x140031942
dec dword [rdi + 0x1c]
mov rcx, qword [r14 + 0x58]
mov byte [r14 + 0x24], 1
call fcn.14001ab80
mov qword [r14 + 0x58], 0
mov rcx, rdi
call fcn.140028dc0
cmp byte [rdi + 0x11], 0
je 0x140031956
sub dword [rdi + 0x14], 1
jne 0x140031956
mov rcx, rdi
call fcn.140024f80
mov r14, qword [rsp + 0x40]
cmp ebx, 0xc0a
mov eax, 7
cmove ebx, eax
mov dword [rsi + 0x30], ebx
mov rax, qword [rsi]
mov rdi, qword [rsp + 0x58]
test rax, rax
je 0x140031988
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140031988
call qword [0x1400e5858]
mov rcx, qword [rsi + 0x28]
cmp byte [rcx + 0x11], 0
je 0x14003199d
sub dword [rcx + 0x14], 1
jne 0x14003199d
call fcn.140024f80
mov rax, qword [rsi + 0x20]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400319b5
call qword [0x1400e5858]
mov eax, ebx
add rsp, 0x70
pop rbx
ret