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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xf8
mov rax, qword [0x1400221d8]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0xe0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x70], 0
jne 0x1400047a1
jmp 0x140005363
mov rax, qword [rsp + 0x110]
mov eax, dword [rax]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], 0x52
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x110]
call fcn.1400046f8
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0xd0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0
jmp 0x14000481d
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jge 0x1400048ba
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
add eax, 0x18
mov rcx, qword [rsp + 0x110]
cmp eax, dword [rcx + 4]
jle 0x140004886
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x110]
call fcn.1400026dc
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x74]
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x110]
call fcn.140003bf4
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.140004624
mov qword [rsp + 0x40], rax
jmp 0x140004813
mov rax, qword [rsp + 0x110]
mov dword [rax + 0xd0], 0
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x40], 0
jne 0x1400049ea
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x78], 0
jne 0x140004921
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x78], 0x1b58
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x4c]
mov rcx, qword [rsp + 0x110]
add eax, dword [rcx + 0x78]
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x74], eax
jmp 0x1400049e8
mov rax, qword [rsp + 0x110]
mov edx, dword [rax + 0x74]
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 0x4c]
call fcn.140002518
test eax, eax
jl 0x1400049e8
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x78], 0x1b58
jae 0x140004964
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x78], 0x1b58
xor edx, edx
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x78]
mov ecx, 2
div ecx
mov rcx, qword [rsp + 0x110]
add eax, dword [rcx + 0x78]
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x78], eax
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x78], 0x1d4c0
jbe 0x1400049ae
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x78], 0x1d4c0
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x4c]
mov rcx, qword [rsp + 0x110]
add eax, dword [rcx + 0x78]
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x74], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x48]
or eax, 1
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x48], eax
jmp 0x140004a08
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x74], 0
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x78], 0
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x48]
and eax, 1
test eax, eax
je 0x140004a91
mov dword [rsp + 0x64], 0x53
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
add eax, 0x18
mov rcx, qword [rsp + 0x110]
cmp eax, dword [rcx + 4]
jle 0x140004a7d
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x110]
call fcn.1400026dc
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.140004624
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x48]
and eax, 2
test eax, eax
je 0x140004b1a
mov dword [rsp + 0x64], 0x54
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
add eax, 0x18
mov rcx, qword [rsp + 0x110]
cmp eax, dword [rcx + 4]
jle 0x140004b06
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x110]
call fcn.1400026dc
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.140004624
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x48], 0
mov rax, qword [rsp + 0x110]
mov edx, dword [rax + 0x40]
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 0x38]
call fcn.140002488
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0xf0], 0
jne 0x140004b71
mov edx, dword [rsp + 0x2c]
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 0x44]
call fcn.140002488
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x10]
add eax, dword [rsp + 0x2c]
mov edx, eax
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 0x14]
call fcn.140002518
test eax, eax
jge 0x140004d8c
mov rax, qword [rsp + 0x110]
add rax, 0x88
mov rcx, qword [rsp + 0x110]
cmp rax, qword [rcx + 0x88]
jne 0x140004bbe
jmp 0x140004d8c
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x88]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0xb8]
mov qword [rax], 0
mov rax, qword [rsp + 0xb8]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx + 0xb0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x110]
add rax, 0xa8
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0xb0]
mov rcx, qword [rsp + 0xb8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0xb0], rcx
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x68]
dec eax
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x68], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x60]
inc eax
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x60], eax
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0xb8]
mov dword [rax + 0x14], 0x51
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x6c]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x14]
mov dword [rax + 0x24], ecx
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x14]
inc eax
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x18]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x30]
mov dword [rax + 0x34], ecx
mov rax, qword [rsp + 0xb8]
mov dword [rax + 0x38], 0
mov rax, qword [rsp + 0xb8]
mov dword [rax + 0x3c], 0
jmp 0x140004b71
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0xe8], 0
jle 0x140004db4
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0xe8]
mov dword [rsp + 0xdc], eax
jmp 0x140004dbf
mov dword [rsp + 0xdc], 0xffffffff
mov eax, dword [rsp + 0xdc]
mov dword [rsp + 0xac], eax
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x6c], 0
jne 0x140004df2
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x30]
sar eax, 3
mov dword [rsp + 0xe0], eax
jmp 0x140004dfd
mov dword [rsp + 0xe0], 0
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0xa8]
mov qword [rsp + 0x20], rax
jmp 0x140004e2e
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x110]
add rax, 0xa8
cmp qword [rsp + 0x20], rax
je 0x1400051e1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xc0], 0
mov rax, qword [rsp + 0xc8]
cmp dword [rax + 0x3c], 0
jne 0x140004ed0
mov dword [rsp + 0xc0], 1
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x30]
mov dword [rax + 0x34], ecx
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x34]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
add eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x30], eax
jmp 0x140005098
mov rax, qword [rsp + 0xc8]
mov edx, dword [rax + 0x30]
mov ecx, dword [rsp + 0x28]
call fcn.140002518
test eax, eax
jl 0x140004ffa
mov dword [rsp + 0xc0], 1
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x58]
inc eax
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x58], eax
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x6c], 0
jne 0x140004f68
mov rax, qword [rsp + 0x110]
mov edx, dword [rax + 0x30]
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rax + 0x34]
call fcn.1400024b8
mov rcx, qword [rsp + 0xc8]
add eax, dword [rcx + 0x34]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x34], eax
jmp 0x140004fcc
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x6c], 2
jae 0x140004f8a
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x34]
mov dword [rsp + 0xe4], eax
jmp 0x140004f9c
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0xd0], eax
mov eax, dword [rsp + 0xd0]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0xc8]
add eax, dword [rcx + 0x34]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x34], eax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x34]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x30], eax
mov dword [rsp + 0xa0], 1
jmp 0x140005098
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0xac]
cmp dword [rax + 0x38], ecx
jb 0x140005098
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0xec]
cmp dword [rax + 0x3c], ecx
jle 0x14000503e
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0xec], 0
jg 0x140005098
mov dword [rsp + 0xc0], 1
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x38], 0
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x34]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 0x30], eax
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0xc0], 0
je 0x1400051dc
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x6c]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x18]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x2c]
add eax, 0x18
mov dword [rsp + 0xd4], eax
mov eax, dword [rsp + 0xd4]
mov ecx, dword [rsp + 0xa8]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x110]
cmp eax, dword [rcx + 4]
jle 0x140005152
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x110]
call fcn.1400026dc
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x40]
call fcn.140004624
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
cmp dword [rax + 0x2c], 0
jbe 0x1400051b5
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x2c]
mov rcx, qword [rsp + 0xc8]
add rcx, 0x40
mov rdi, qword [rsp + 0x40]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x7c]
cmp dword [rax + 0x3c], ecx
jb 0x1400051dc
mov rax, qword [rsp + 0x110]
mov dword [rax + 0xc], 0xffffffff
jmp 0x140004e21
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jle 0x140005222
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x110]
call fcn.1400026dc
cmp dword [rsp + 0x38], 0
je 0x1400052c6
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x10]
mov eax, dword [rax + 0x14]
sub eax, ecx
mov dword [rsp + 0xd8], eax
xor edx, edx
mov eax, dword [rsp + 0xd8]
mov ecx, 2
div ecx
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x24], eax
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x24], 2
jae 0x140005284
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x24], 2
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x24]
add eax, dword [rsp + 0xac]
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x44], eax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x110]
mov eax, dword [rax + 0x44]
imul eax, dword [rcx + 8]
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x80], eax
cmp dword [rsp + 0xa0], 0
je 0x14000532d
xor edx, edx
mov eax, dword [rsp + 0x2c]
mov ecx, 2
div ecx
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x24], eax
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x24], 2
jae 0x140005305
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x24], 2
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x44], 1
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 8]
mov dword [rax + 0x80], ecx
mov rax, qword [rsp + 0x110]
cmp dword [rax + 0x44], 1
jae 0x140005363
mov rax, qword [rsp + 0x110]
mov dword [rax + 0x44], 1
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 8]
mov dword [rax + 0x80], ecx
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14000cb80
add rsp, 0xf8
pop rdi
pop rsi
ret