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

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x80
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov ebp, edx
mov ecx, 0xb0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140177951
mov qword [rsp + 0x78], r14
xor edx, edx
mov r8d, 0xb0
mov qword [rsp + 0x70], r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov eax, 0x10103
mov dword [rdi], ebp
mov r8d, 1
mov r14d, ebp
and r14d, 1
mov rcx, rbx
cmovne r8d, eax
xor r15d, r15d
xor edx, edx
mov dword [rsp + 0x20], r15d
lea r9d, [r14 + 3]
call fcn.14018cd60
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140177747
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140177947
mov qword [rsp + 0xb0], rsi
call fcn.140191600
mov qword [rdi + 0x18], rax
lea rax, vtable.CArray_struct__DISKLOG_INDEX_RECORD__struct__DISKLOG_INDEX_RECORD_const____ptr64_.0
mov qword [rdi + 0x88], rax
mov qword [rdi + 0x90], r15
mov qword [rdi + 0xa8], r15
mov qword [rdi + 0xa0], r15
mov qword [rdi + 0x98], r15
test bpl, 4
je 0x1401777a4
mov ecx, 0x10000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x1401777a4
mov qword [rdi + 0x78], 0x10000
mov rcx, qword [rdi + 0x10]
lea rdx, [rdi + 0x20]
mov ebx, reloc.WS2_32.dll_getservbyport
mov r8d, ebx
call fcn.14018ce80
cmp dword [rdi + 0x20], 0xcf9bf378
jne 0x1401778ab
mov eax, dword [rdi + 0x24]
cmp eax, ebx
jae 0x1401777e1
sub rbx, rax
lea rcx, [rdi + 0x20]
add rcx, rax
mov r8, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [0x140256a90]
lea rsi, [rdi + 8]
mov rcx, qword [rdi + 0x10]
test al, al
je 0x140177837
mov r9d, 0x28
mov dword [rsp + 0x20], 4
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call qword [0x1401ea098]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
js 0x140177845
test rsi, rsi
je 0x140177845
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
jmp 0x140177845
mov r9, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test bpl, 2
je 0x140177898
mov eax, dword [rdi + 0x24]
mov qword [rdi + 0x58], rax
mov eax, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x90]
shr rax, 4
mov qword [rdi + 0xa8], rax
test rcx, rcx
je 0x140177878
call fcn.140007ea0
mov qword [rdi + 0x90], r15
mov dl, 1
mov qword [rdi + 0xa0], r15
mov rcx, rdi
mov qword [rdi + 0x98], r15
call fcn.140177c00
test al, al
je 0x140177935
mov eax, dword [rdi + 0x24]
mov qword [rdi + 0x60], rax
mov rax, rdi
mov dword [rdi + 0x68], r15d
jmp 0x14017793f
test r14d, r14d
je 0x140177935
mov qword [rdi + 0x24], rbx
lea rcx, [rsp + 0x30]
mov qword [rdi + 0x34], r15
mov qword [rdi + 0x3c], r15
mov qword [rdi + 0x44], r15
mov qword [rdi + 0x4c], r15
mov dword [rdi + 0x54], r15d
mov dword [rdi + 0x20], 0xcf9bf378
mov qword [rdi + 0x2c], rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
xor edx, edx
mov qword [rdi + 0x34], rax
mov qword [rdi + 0x44], rax
mov qword [rdi + 0x3c], rax
call fcn.14018d0b0
mov rcx, qword [rdi + 0x10]
lea rdx, [rdi + 0x20]
mov r8, rbx
call fcn.14018cf60
cmp rax, rbx
jne 0x140177935
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
call fcn.14018d010
cmp eax, 0xffffffff
je 0x140177935
mov rcx, qword [rdi + 0x10]
call fcn.14018d390
mov rax, rdi
jmp 0x14017793f
mov rcx, rdi
call fcn.140177610
xor eax, eax
mov rsi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret