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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov r13, rdx
xor edx, edx
lea rcx, [rax - 0x224]
lea r8d, [rdx + 0x6c]
mov dword [rax - 0x228], 0x70
call fcn.006aba40
mov rcx, qword [r13 + 8]
mov dword [rsp + 0xb4], reloc.WS2_32.dll_recv
mov r8d, dword [rcx + 0x18]
mov rcx, qword [rcx]
lea r9, [rsp + 0xb0]
mov edx, 0x41c
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [rsp + 0xd8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x418
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
xor r15d, r15d
cmp eax, r15d
mov rbp, rax
mov qword [rsp + 0x2e8], rax
jg 0x43c671
xor al, al
jmp 0x43c926
xor r9d, r9d
xor r8d, r8d
mov edx, 0x52e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, r15
mov rsi, rax
setne al
mov byte [r13 + 0x10], al
call qword [sym.imp.USER32.dll_CreatePopupMenu]
lea rdx, [rsp + 0x20]
mov rbx, rax
xor eax, eax
mov rcx, rdi
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_GetClientRect]
cmp ebp, r15d
mov r14d, r15d
jle 0x43c8f6
mov rbp, r15
xor edx, edx
lea rcx, [rsp + 0x44]
mov dword [rsp + 0x40], r15d
lea r8d, [rdx + 0x1c]
call fcn.006aba40
lea r9, [rsp + 0x40]
mov r8, rbp
mov edx, 0x417
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
test byte [rsp + 0x48], 8
jne 0x43c8e2
xor eax, eax
lea r9, [rsp + 0x30]
mov r8, rbp
mov edx, 0x41d
mov rcx, rdi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r12b, byte [rsp + 0x48]
mov eax, dword [rsp + 0x28]
shr r12b, 2
and r12b, 1
cmp dword [rsp + 0x38], eax
jle 0x43c8e2
test byte [rsp + 0x49], 1
je 0x43c76e
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, r15d
jle 0x43c8e2
xor r9d, r9d
mov edx, 0x800
xor r8d, r8d
jmp 0x43c7ef
lea rcx, [rsp + 0x122]
xor edx, edx
mov r8d, 0x18e
mov word [rsp + 0x120], r15w
call fcn.006aba40
cmp byte [r13 + 0x10], r15b
je 0x43c7fd
lea rcx, [rsp + 0x60]
call fcn.004454c8
lea rax, [rsp + 0x120]
lea r9, [rsp + 0x60]
mov r8d, 1
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x64], reloc.WS2_32.dll_sendto
mov dword [rsp + 0xa0], 0xc8
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x78]
cmp r12b, r15b
mov edx, r15d
sete dl
or edx, 0x10
mov rcx, rbx
call qword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x43c8e2
xor edx, edx
lea rcx, [rsp + 0x64]
lea r15, [rsp + 0x120]
lea r8d, [rdx + 0x2c]
call fcn.006aba40
movsxd r8, dword [rsp + 0x44]
lea rax, [rsp + 0x120]
lea r9, [rsp + 0x60]
mov edx, 0x43f
mov rcx, rdi
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x60], gethostbyname
mov dword [rsp + 0x64], 2
mov dword [rsp + 0x88], 0xc8
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
je 0x43c870
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x43c8c6
mov edx, dword [rsp + 0x44]
mov rcx, qword [0x00861be0]
lea r8, [rsp + 0x120]
mov r9d, 0xc8
lea r15, [0x0078dc30]
call qword [sym.imp.USER32.dll_LoadStringW]
xor edx, edx
xor ecx, ecx
movsxd r8, eax
test eax, eax
jle 0x43c8c6
cmp word [rsp + rcx*2 + 0x120], 0xa
je 0x43c8b8
inc rcx
inc edx
cmp rcx, r8
jl 0x43c8a1
jmp 0x43c8c6
lea eax, [rdx + 1]
movsxd rcx, eax
lea r15, [rsp + rcx*2 + 0x120]
movsxd r8, dword [rsp + 0x44]
xor edx, edx
test r12b, r12b
mov r9, r15
mov rcx, rbx
sete dl
call qword [sym.imp.USER32.dll_AppendMenuW]
xor r15d, r15d
inc r14d
inc rbp
cmp r14d, dword [rsp + 0x2e8]
jl 0x43c6cb
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, r15d
jne 0x43c920
cmp rbx, r15
je 0x43c912
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x43c66a
mov qword [r13], rbx
mov al, 1
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret