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

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
push rdi
sub rsp, 0x98
mov qword [rax - 0x18], rbp
mov rbp, qword [rcx]
mov qword [rax - 0x20], rsi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
xor r14d, r14d
mov dword [rax - 0x74], 1
mov rbx, rcx
mov dword [rax - 0x78], r14d
mov eax, dword [rcx + 0xbc]
mov rcx, qword [rcx + 0x50]
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
mov r13d, edx
lea rdx, [rsp + 0x50]
mov r12d, r14d
mov dword [rsp + 0xb0], r14d
call qword [rax + 0x30]
mov edi, eax
test eax, eax
jne 0x14007031a
mov rax, qword [rbx]
mov rsi, qword [rbx + 0x110]
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rax + 8]
mov rdx, rsi
inc r8d
call fcn.14006e7a0
mov edi, eax
test eax, eax
jne 0x14007031a
cmp byte [rsi], r12b
je 0x14006ff1f
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [rbp + 0x38]
mov edi, eax
test eax, eax
jne 0x14007031a
mov qword [rsp + 0x68], r15
cmp dword [rsp + 0x34], r12d
je 0x1400702e8
mov r8, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0xc0]
mov edx, r13d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x60], r14
mov esi, r13d
mov dword [rsp + 0xc8], r13d
call fcn.14006eb20
mov edi, eax
test eax, eax
jne 0x1400702df
mov r15d, dword [rsp + 0xb8]
mov ebp, dword [rsp + 0xc0]
mov r10, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbp
cmp ebp, 0xffffffff
jne 0x14006ffb4
mov ecx, dword [rbx + 0xb8]
mov rax, r10
sub rax, rcx
mov ecx, dword [rbx + 0xbc]
add ecx, 8
cqo
movsxd r8, ecx
idiv r8
mov rbp, rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0xc0], eax
test ebp, ebp
jne 0x14006fff5
test r13d, r13d
jne 0x14006fff5
mov ecx, dword [rbx + 0xb8]
mov rdx, qword [rbx + 0x60]
add rcx, qword [rbx + 0x68]
cmp rcx, rdx
jne 0x14006fff5
mov eax, dword [rbx + 0xbc]
add eax, 8
movsxd rcx, eax
mov rax, r10
sub rax, rdx
cqo
idiv rcx
mov ebp, eax
mov dword [rsp + 0xc0], eax
mov qword [rsp + 0x58], rbp
mov eax, dword [rbx + 0xb8]
cmp qword [rbx + 0x60], rax
jne 0x140070028
mov esi, dword [rsp + 0x30]
mov rcx, rbx
mov edx, esi
call fcn.14006fd20
mov edi, eax
test eax, eax
jne 0x140070315
mov r10, qword [rsp + 0x50]
mov dword [rbx + 0x1c], esi
mov esi, dword [rsp + 0xc8]
mov r13d, r14d
test ebp, ebp
je 0x140070293
test esi, esi
je 0x140070074
mov rax, qword [rbx + 0x70]
inc dword [rbx + 0x84]
test rax, rax
je 0x140070060
nop word [rax + rax]
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x140070050
mov rcx, qword [rbx + 0x118]
call fcn.14006ce90
mov dword [rsp + 0xc8], r14d
mov rbp, qword [rbx + 0x50]
mov r9, qword [rbx + 0x60]
mov r12, qword [rbx + 0x110]
mov rax, qword [rbp]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rbp
call qword [rax + reloc.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jne 0x14007024a
mov r9, qword [rbx + 0x60]
mov esi, dword [rsp + 0x38]
mov rax, qword [rbp]
mov r8d, dword [rbx + 0xbc]
add r9, 4
mov rdx, r12
mov rcx, rbp
bswap esi
call qword [rax + reloc.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jne 0x14007024a
mov eax, dword [rbx + 0xbc]
add eax, 8
cdqe
add qword [rbx + 0x60], rax
mov r9, qword [rbx + 0x60]
test esi, esi
je 0x140070282
mov eax, dword [0x14017d440]
cdq
idiv dword [rbx + 0xbc]
inc eax
cmp esi, eax
je 0x140070282
cmp esi, dword [rbx + 0x1c]
ja 0x14007024e
mov rax, qword [rbp]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x3c]
add r9, 0xfffffffffffffffc
mov rcx, rbp
call qword [rax + reloc.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jne 0x14007012e
mov r15d, dword [rsp + 0x3c]
bswap r15d
test eax, eax
jne 0x14007024a
mov rdx, r12
mov rcx, rbx
call fcn.14006f740
cmp eax, r15d
jne 0x140070282
cmp esi, 1
jne 0x140070165
movzx eax, byte [r12 + 0x14]
cmp word [rbx + 0xb2], ax
je 0x140070165
mov word [rbx + 0xb2], ax
cmp qword [rbx + 0x120], r14
je 0x140070178
mov rax, r14
mov qword [rsp + 0x48], rax
jmp 0x140070187
mov edx, esi
mov rcx, rbx
call fcn.140072f70
mov qword [rsp + 0x48], rax
cmp byte [rbx + 0xb], r14b
jne 0x14007019c
mov rcx, qword [rbx + 0x68]
cmp qword [rbx + 0x60], rcx
jle 0x14007019c
mov edx, r14d
jmp 0x1400701a1
mov edx, 1
mov r10, qword [rbx + 0x48]
cmp qword [r10], r14
je 0x1400701ff
movzx ecx, byte [rbx + 0x14]
cmp cl, 4
jae 0x1400701b7
test cl, cl
jne 0x1400701ff
test edx, edx
je 0x1400701ff
movsxd r8, dword [rbx + 0xbc]
mov rax, qword [r10]
lea r9d, [rsi - 1]
imul r9, r8
mov rdx, r12
mov rcx, r10
call qword [rax + 0x18]
mov edi, eax
cmp esi, dword [rbx + 0x24]
jbe 0x1400701e0
mov dword [rbx + 0x24], esi
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400701fa
mov r8, r12
mov edx, esi
call fcn.140085ee0
mov rax, qword [rsp + 0x48]
jmp 0x1400701ff
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14007024a
mov rbp, qword [rax + 8]
movsxd r8, dword [rbx + 0xbc]
mov rdx, r12
mov rcx, rbp
call sub.MSVCR90.dll_memcpy
mov rcx, qword [rsp + 0x48]
call qword [rbx + 0x100]
cmp esi, 1
jne 0x140070240
mov rax, qword [rbp + 0x18]
mov qword [rbx + 0x88], rax
mov rax, qword [rbp + 0x20]
mov qword [rbx + 0x90], rax
mov rcx, qword [rsp + 0x48]
call fcn.14006ca50
test edi, edi
jne 0x14007027d
mov r12d, dword [rsp + 0xb0]
mov esi, dword [rsp + 0xc8]
inc r13d
inc r12d
mov dword [rsp + 0xb0], r12d
cmp r13d, dword [rsp + 0x58]
jb 0x140070033
mov r10, qword [rsp + 0x50]
jmp 0x140070293
cmp edi, 0x65
jne 0x1400702cd
mov r10, qword [rsp + 0x50]
mov r12d, dword [rsp + 0xb0]
mov qword [rbx + 0x60], r10
mov r13d, dword [rsp + 0xb8]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0xc0]
mov r8, r10
mov rcx, rbx
mov edx, r13d
mov qword [rsp + 0x20], rax
call fcn.14006eb20
mov edi, eax
test eax, eax
jne 0x1400702df
mov esi, dword [rsp + 0xc8]
jmp 0x14006ff72
cmp edi, 0x20a
je 0x1400702e8
mov r13d, dword [rsp + 0xb8]
jmp 0x1400702e4
cmp edi, 0x65
je 0x1400702e8
test edi, edi
jne 0x14007030d
lea rdx, [rsp + 0x40]
or r8d, 0xffffffff
mov rcx, rbx
call fcn.140071450
mov r12d, dword [rsp + 0xb0]
mov r13d, dword [rsp + 0xb8]
mov edi, eax
jmp 0x140070315
mov r12d, dword [rsp + 0xb0]
mov r15, qword [rsp + 0x68]
movzx eax, byte [rbx + 0x10]
mov rbp, qword [rsp + 0x90]
mov byte [rbx + 0x16], al
test edi, edi
jne 0x1400703df
mov rax, qword [rbx]
mov rsi, qword [rbx + 0x110]
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rax + 8]
mov rdx, rsi
inc r8d
call fcn.14006e7a0
mov edi, eax
test eax, eax
jne 0x1400703df
movzx eax, byte [rbx + 0x14]
cmp al, 4
jae 0x140070364
test al, al
jne 0x1400703a9
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x140070387
xor r8d, r8d
lea edx, [r8 + 0x15]
call qword [rax + 0x50]
mov edi, eax
cmp eax, 0xc
je 0x140070387
test eax, eax
jne 0x1400703a9
jmp 0x14007038a
mov edi, r14d
cmp byte [rbx + 0xb], r14b
jne 0x1400703a9
movzx edx, byte [rbx + 0xe]
mov rcx, qword [rbx + 0x48]
test edx, edx
je 0x1400703a6
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edi, eax
jmp 0x1400703a9
mov edi, r14d
test edi, edi
jne 0x1400703df
cmp byte [rsi], r14b
mov rcx, rbx
setne r14b
xor r8d, r8d
mov edx, r14d
call fcn.14006f3c0
mov edi, eax
test eax, eax
jne 0x1400703df
cmp byte [rsi], al
je 0x1400703df
cmp dword [rsp + 0x34], eax
je 0x1400703df
mov rdx, rsi
mov rcx, rbx
call fcn.14006faa0
mov edi, eax
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
test r13d, r13d
mov r13, qword [rsp + 0x78]
je 0x140070416
test r12d, r12d
je 0x140070416
mov r9, qword [rbx + 0xd8]
lea rdx, str.recovered__d_pages_from__s
mov r8d, r12d
mov ecx, 0x21b
call fcn.140065b40
cmp byte [rbx + 0x10], 0
mov r12, qword [rsp + 0x80]
jne 0x14007047e
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x60]
bt eax, 0xc
jb 0x14007047e
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140070467
call rdx
cmp eax, 0x20
jl 0x14007047e
mov ecx, 0x10000
cmp eax, ecx
cmovg eax, ecx
mov dword [rbx + 0xb8], eax
mov eax, edi
add rsp, 0x98
pop rdi
pop rbx
ret
mov eax, 0x1000
mov dword [rbx + 0xb8], eax
mov eax, edi
add rsp, 0x98
pop rdi
pop rbx
ret
mov eax, 0x200
mov dword [rbx + 0xb8], eax
mov eax, edi
add rsp, 0x98
pop rdi
pop rbx
ret