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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x10], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov eax, dword [rsp + rax*4 + 0x90]
inc eax
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
mov dword [rsp + rcx*4 + 0x90], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x10]
dec eax
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x10], 0
jne 0x140040611
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + 0x1b8]
cmp dword [rsp + rax + 0x90], ecx
jne 0x14004068b
mov rax, qword [rsp + 0x1d8]
mov qword [rax], 0
mov rax, qword [rsp + 0x1e0]
mov dword [rax], 0
xor eax, eax
jmp 0x140040df1
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax]
mov dword [rsp + 0x14], eax
mov dword [rsp], 1
jmp 0x1400406aa
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xf
ja 0x1400406c1
mov eax, dword [rsp]
cmp dword [rsp + rax*4 + 0x90], 0
je 0x1400406bf
jmp 0x1400406c1
jmp 0x1400406a2
mov eax, dword [rsp]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp]
cmp dword [rsp + 0x14], eax
jae 0x1400406d8
mov eax, dword [rsp]
mov dword [rsp + 0x14], eax
mov dword [rsp + 0x10], 0xf
jmp 0x1400406ec
mov eax, dword [rsp + 0x10]
dec eax
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x10], 0
je 0x140040705
mov eax, dword [rsp + 0x10]
cmp dword [rsp + rax*4 + 0x90], 0
je 0x140040703
jmp 0x140040705
jmp 0x1400406e2
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x10]
cmp dword [rsp + 0x14], eax
jbe 0x14004071f
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x14], eax
mov rax, qword [rsp + 0x1e0]
mov ecx, dword [rsp + 0x14]
mov dword [rax], ecx
mov eax, dword [rsp]
mov ecx, 1
mov dword [rsp + 0x68], ecx
movzx ecx, al
mov eax, dword [rsp + 0x68]
shl eax, cl
mov dword [rsp + 0x2c], eax
jmp 0x14004075a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x2c]
shl eax, 1
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x10]
cmp dword [rsp], eax
jae 0x14004078c
mov eax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0x90]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x14004078a
mov eax, 0xfffffffd
jmp 0x140040df1
jmp 0x140040748
mov eax, dword [rsp + 0x10]
mov eax, dword [rsp + rax*4 + 0x90]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x1400407b4
mov eax, 0xfffffffd
jmp 0x140040df1
mov eax, dword [rsp + 0x10]
mov eax, dword [rsp + rax*4 + 0x90]
add eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x10]
mov dword [rsp + rcx*4 + 0x90], eax
mov dword [rsp], 0
mov eax, 4
imul rax, rax, 1
mov ecx, dword [rsp]
mov dword [rsp + rax + 0xd0], ecx
lea rax, [rsp + 0x94]
mov qword [rsp + 8], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x10]
dec eax
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x10], 0
je 0x14004084c
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp]
mov dword [rax], ecx
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
jmp 0x140040802
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], 0
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov dword [rsp], eax
mov eax, dword [rsp]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
cmp dword [rsp + 0x6c], 0
je 0x1400408b6
mov eax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0xd0]
mov rcx, qword [rsp + 0x1f8]
mov edx, dword [rsp + 0x10]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0xd0]
inc eax
mov ecx, dword [rsp]
mov dword [rsp + rcx*4 + 0xd0], eax
mov eax, dword [rsp + 0x10]
inc eax
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x1b8]
cmp dword [rsp + 0x10], eax
jb 0x140040861
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0xd0]
mov dword [rsp + 0x1b8], eax
mov dword [rsp + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + 0x10]
mov dword [rsp + rax + 0xd0], ecx
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 8], rax
mov dword [rsp + 0x28], 0xffffffff
mov eax, dword [rsp + 0x14]
neg eax
mov dword [rsp + 0x18], eax
mov eax, 8
imul rax, rax, 0
mov qword [rsp + rax + 0x110], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x20], 0
jmp 0x14004094d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x24], eax
jg 0x140040dcd
movsxd rax, dword [rsp + 0x24]
mov eax, dword [rsp + rax*4 + 0x90]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x70], 0
je 0x140040dc8
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x18]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0x24], eax
jle 0x140040bb7
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x18]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x14]
cmp dword [rsp + 0x20], eax
jbe 0x1400409dc
mov eax, dword [rsp + 0x14]
mov dword [rsp + 0x50], eax
jmp 0x1400409e4
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, 1
mov dword [rsp + 0x74], ecx
movzx ecx, al
mov eax, dword [rsp + 0x74]
shl eax, cl
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0x30]
inc eax
cmp dword [rsp + 0x1c], eax
jbe 0x140040a9a
mov eax, dword [rsp + 0x30]
inc eax
mov ecx, dword [rsp + 0x1c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x1c], eax
movsxd rax, dword [rsp + 0x24]
lea rax, [rsp + rax*4 + 0x90]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x20]
cmp dword [rsp], eax
jae 0x140040a9a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp], eax
jae 0x140040a9a
mov eax, dword [rsp + 0x1c]
shl eax, 1
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
cmp dword [rsp + 0x1c], eax
ja 0x140040a85
jmp 0x140040a9a
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x1c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x1c], eax
jmp 0x140040a4d
mov eax, dword [rsp]
mov ecx, 1
mov dword [rsp + 0x78], ecx
movzx ecx, al
mov eax, dword [rsp + 0x78]
shl eax, cl
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax]
add eax, dword [rsp + 0x20]
cmp eax, 0x5a0
jbe 0x140040ad2
mov eax, 0xfffffffd
jmp 0x140040df1
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x1e8]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + rax*8 + 0x110], rcx
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax]
add eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x1f0]
mov dword [rcx], eax
cmp dword [rsp + 0x28], 0
je 0x140040ba2
movsxd rax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x10]
mov dword [rsp + rax*4 + 0xd0], ecx
movzx eax, byte [rsp + 0x14]
mov byte [rsp + 0x39], al
movzx eax, byte [rsp]
mov byte [rsp + 0x38], al
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x18]
sub ecx, eax
mov eax, ecx
movzx ecx, al
mov eax, dword [rsp + 0x10]
shr eax, cl
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
dec eax
cdqe
mov rax, qword [rsp + rax*8 + 0x110]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
sar rax, 3
mov ecx, dword [rsp]
sub rax, rcx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x28]
dec eax
cdqe
mov ecx, dword [rsp]
mov rax, qword [rsp + rax*8 + 0x110]
mov rdx, qword [rsp + 0x38]
mov qword [rax + rcx*8], rdx
jmp 0x140040bb2
mov rax, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
jmp 0x140040988
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x39], al
mov eax, dword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x1f8]
lea rax, [rcx + rax*4]
cmp qword [rsp + 8], rax
jb 0x140040beb
mov byte [rsp + 0x38], 0xc0
jmp 0x140040c91
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x1c0]
cmp dword [rax], ecx
jae 0x140040c3e
mov rax, qword [rsp + 8]
cmp dword [rax], 0x100
jae 0x140040c12
mov dword [rsp + 0x54], 0
jmp 0x140040c1a
mov dword [rsp + 0x54], 0x60
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 8]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
jmp 0x140040c91
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x1c0]
mov eax, dword [rax]
sub eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x1d0]
mov eax, dword [rcx + rax*4]
add eax, 0x50
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x1c0]
mov eax, dword [rax]
sub eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x1c8]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 8]
add rax, 4
mov qword [rsp + 8], rax
mov eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov ecx, 1
mov dword [rsp + 0x7c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x7c]
shl eax, cl
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 0x18]
movzx ecx, al
mov eax, dword [rsp + 0x10]
shr eax, cl
mov dword [rsp], eax
jmp 0x140040cd3
mov eax, dword [rsp + 0x1c]
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp], eax
jae 0x140040cef
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x38]
mov qword [rcx + rax*8], rdx
jmp 0x140040cc5
mov eax, dword [rsp + 0x24]
dec eax
mov ecx, 1
mov dword [rsp + 0x80], ecx
movzx ecx, al
mov eax, dword [rsp + 0x80]
shl eax, cl
mov dword [rsp], eax
jmp 0x140040d1a
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x10]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140040d3a
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x10]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
jmp 0x140040d12
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x10]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x18]
mov ecx, 1
mov dword [rsp + 0x84], ecx
movzx ecx, al
mov eax, dword [rsp + 0x84]
shl eax, cl
dec eax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x10]
and ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x28]
cmp eax, dword [rsp + rcx*4 + 0xd0]
je 0x140040dc3
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 0x18]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
mov ecx, 1
mov dword [rsp + 0x88], ecx
movzx ecx, al
mov eax, dword [rsp + 0x88]
shl eax, cl
dec eax
mov dword [rsp + 0x58], eax
jmp 0x140040d6b
jmp 0x14004096b
jmp 0x140040943
cmp dword [rsp + 0x2c], 0
je 0x140040de5
cmp dword [rsp + 0x40], 1
je 0x140040de5
mov dword [rsp + 0x5c], 0xfffffffb
jmp 0x140040ded
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14000de10
add rsp, 0x1a8
ret