Function at 0x1400b4940
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov rbx, rcx
je 0x1400b4a1c
mov eax, dword [0x14013f8e4]
dec eax
movsxd rdi, eax
js 0x1400b498f
nop
mov rax, qword [0x14013f8e8]
mov rcx, qword [rax + rdi*8]
mov rax, qword [rbx + 8]
cmp qword [rcx + 0x18], rax
jne 0x1400b498a
call fcn.1400b4940
dec rdi
jns 0x1400b4970
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b49dc
xor r9d, r9d
xor r8d, r8d
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x1400b49dc
xor edi, edi
mov esi, eax
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
mov r8, rdi
mov edx, 0x414
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400b49d4
mov rcx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
inc rdi
dec rsi
jne 0x1400b49b1
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400b4a1c
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.USER32.dll_SetMenu]
cmp byte [rbx + 0x10e], 0
jne 0x1400b4a1c
mov rcx, qword [rbx + 8]
mov byte [rbx + 0x10e], 1
call qword [sym.imp.USER32.dll_DestroyWindow]
mov r8d, dword [0x14013f8e4]
lea r9d, [r8 - 1]
movsxd rcx, r9d
mov rdx, rcx
test r9d, r9d
js 0x1400b4a74
mov rax, qword [0x14013f8e8]
cmp qword [rax + rdx*8], rbx
je 0x1400b4a48
dec ecx
dec rdx
jns 0x1400b4a32
jmp 0x1400b4a74
inc ecx
movsxd rdx, ecx
cmp ecx, r8d
jge 0x1400b4a6a
mov rax, qword [0x14013f8e8]
sub r8d, ecx
lea rsi, [rax + rdx*8]
mov ecx, r8d
lea rdi, [rsi - 8]
rep movsq qword [rdi], qword [rsi]
mov r8d, r9d
mov dword [0x14013f8e4], r9d
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x1400b4a8d
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r8d, dword [0x14013f8e4]
mov rcx, qword [rbx + 0x98]
test rcx, rcx
je 0x1400b4aa6
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r8d, dword [0x14013f8e4]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1400b4abf
call qword [sym.imp.SHELL32.dll_DragFinish]
mov r8d, dword [0x14013f8e4]
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x1400b4ad8
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r8d, dword [0x14013f8e4]
xor ebp, ebp
cmp dword [rbx + 0x20], ebp
jbe 0x1400b4b59
xor edi, edi
mov rsi, qword [rbx + 0x28]
movzx eax, byte [rdi + rsi + 8]
cmp al, 2
jne 0x1400b4b0f
mov rcx, qword [rdi + rsi + 0x20]
test rcx, rcx
je 0x1400b4b0f
test byte [rdi + rsi + 9], 0x80
je 0x1400b4b07
call qword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x1400b4b1e
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1400b4b1e
cmp al, 0xa
jne 0x1400b4b1e
mov rcx, qword [rdi + rsi + 0x20]
call qword [sym.imp.MSVCR100.dll_free]
mov rcx, qword [rdi + rsi + 0x18]
test rcx, rcx
je 0x1400b4b2e
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov qword [rdi + rsi + 0x18], 0
mov rcx, qword [rdi + rsi + 0x50]
test rcx, rcx
je 0x1400b4b47
call qword [sym.imp.MSVCR100.dll_free]
inc ebp
add rdi, 0x58
cmp ebp, dword [rbx + 0x20]
jb 0x1400b4ae1
mov r8d, dword [0x14013f8e4]
mov rdi, qword [rbx + 0xa8]
mov rsi, qword [rbx + 0xb0]
test rdi, rdi
je 0x1400b4bb1
cmp rdi, qword [0x140143d98]
je 0x1400b4bb1
xor ecx, ecx
test r8d, r8d
jle 0x1400b4b9a
mov rdx, qword [0x14013f8e8]
mov rax, qword [rdx]
cmp qword [rax + 0xa8], rdi
je 0x1400b4bb1
inc ecx
add rdx, 8
cmp ecx, r8d
jl 0x1400b4b83
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyIcon]
cmp rsi, rdi
je 0x1400b4bb1
mov rcx, rsi
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x1400b4bce
call qword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov qword [rbx + 0xb8], 0
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 8], 0
mov dword [rbx + 0x20], 0
call qword [sym.imp.MSVCR100.dll_free]
dec dword [rbx + 0x34]
jne 0x1400b4bfe
mov rcx, qword [rbx]
call qword [sym.imp.MSVCR100.dll_free]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rdi
ret