Function at 0x180046e80
Capabilities:
Shutdown system

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x3b8
mov qword [rsp + 0x390], 0xfffffffffffffffe
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x3d0]
add rax, 0x5d8
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.1800127d0
nop
mov rax, qword [rsp + 0x3d0]
add rax, 0x5b0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1800127d0
nop
mov rax, qword [rsp + 0x3d0]
add rax, 0x138
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x240]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x230], rax
mov rax, qword [rsp + 0x230]
mov rax, qword [rax]
mov qword [rsp + 0x238], rax
mov r8, qword [rsp + 0x240]
mov rdx, qword [rsp + 0x238]
lea rcx, [rsp + 0x160]
call fcn.18004c720
lea rdi, [rsp + 0x380]
lea rsi, [rsp + 0x160]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x28]
lea rsi, [rsp + 0x380]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
jmp 0x180046fc8
lea rdi, [rsp + 0x370]
lea rsi, [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x248]
lea rsi, [rsp + 0x370]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x28]
call fcn.18004c790
lea rdi, [rsp + 0x170]
lea rsi, [rsp + 0x248]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x3d0]
add rax, 0x138
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x258], rax
mov r8, qword [rsp + 0x260]
mov rdx, qword [rsp + 0x258]
lea rcx, [rsp + 0x180]
call fcn.18004c720
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x28]
call fcn.18004bfd0
movzx eax, al
test eax, eax
jne 0x180047035
mov dword [rsp + 0x398], 1
jmp 0x180047040
mov dword [rsp + 0x398], 0
movzx eax, byte [rsp + 0x398]
test eax, eax
je 0x1800470f4
lea rcx, [rsp + 0x28]
call fcn.18004c080
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
movsx ecx, word [rax]
movsx eax, word [rsp + 0x3d8]
cmp ecx, eax
jne 0x1800470ef
lea rdi, [rsp + 0x190]
lea rsi, [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x210]
lea rsi, [rsp + 0x190]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x3d0]
add rcx, 0x138
lea r8, [rsp + 0x210]
lea rdx, [rsp + 0x1a0]
call fcn.18004bc00
movsx rcx, word [rsp + 0x3d8]
mov rax, qword [rsp + 0x3d0]
mov qword [rax + rcx*8 + 0x1a8], 0
mov dword [rsp + 0x38], 1
jmp 0x1800470f4
jmp 0x180046f7c
cmp dword [rsp + 0x38], 0
jne 0x18004732d
mov rax, qword [rsp + 0x3d0]
add rax, 0x170
mov qword [rsp + 0x2d0], rax
mov rax, qword [rsp + 0x2d0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x2c0], rax
mov rax, qword [rsp + 0x2c0]
mov rax, qword [rax]
mov qword [rsp + 0x2c8], rax
mov r8, qword [rsp + 0x2d0]
mov rdx, qword [rsp + 0x2c8]
lea rcx, [rsp + 0x1b0]
call fcn.18004c720
lea rdi, [rsp + 0x360]
lea rsi, [rsp + 0x1b0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x28]
lea rsi, [rsp + 0x360]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
jmp 0x1800471d2
lea rdi, [rsp + 0x350]
lea rsi, [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x2d8]
lea rsi, [rsp + 0x350]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x28]
call fcn.18004c790
lea rdi, [rsp + 0x1c0]
lea rsi, [rsp + 0x2d8]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x3d0]
add rax, 0x170
mov qword [rsp + 0x2f0], rax
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x2e8], rax
mov qword [rsp + 0x1d0], 0
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x1d8], rax
xor eax, eax
cmp eax, 1
je 0x180047235
cmp qword [rsp + 0x2f0], 0
jne 0x18004722f
call fcn.180051214
xor eax, eax
test eax, eax
jne 0x18004722f
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax]
mov qword [rsp + 0x1d0], rax
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x28]
call fcn.18004bfd0
movzx eax, al
test eax, eax
jne 0x18004726e
mov dword [rsp + 0x39c], 1
jmp 0x180047279
mov dword [rsp + 0x39c], 0
movzx eax, byte [rsp + 0x39c]
test eax, eax
je 0x18004732d
lea rcx, [rsp + 0x28]
call fcn.18004c080
mov qword [rsp + 0x2f8], rax
mov rax, qword [rsp + 0x2f8]
movsx ecx, word [rax]
movsx eax, word [rsp + 0x3d8]
cmp ecx, eax
jne 0x180047328
lea rdi, [rsp + 0x1e0]
lea rsi, [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x220]
lea rsi, [rsp + 0x1e0]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x3d0]
add rcx, 0x170
lea r8, [rsp + 0x220]
lea rdx, [rsp + 0x1f0]
call fcn.18004bc00
movsx rcx, word [rsp + 0x3d8]
mov rax, qword [rsp + 0x3d0]
mov qword [rax + rcx*8 + 0x1a8], 0
mov dword [rsp + 0x38], 1
jmp 0x18004732d
jmp 0x180047186
mov rcx, qword [rsp + 0x3d0]
mov rcx, qword [rcx + 0x600]
call fcn.180012c30
nop
mov rcx, qword [rsp + 0x40]
call fcn.1800127f0
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x3d0]
call qword [rax + 0x290]
test eax, eax
je 0x180047371
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
mov rax, qword [rsp + 0x3d0]
cmp qword [rax + 0x1a0], 0
jne 0x180047390
mov dword [rsp + 0x3a0], 1
jmp 0x18004739b
mov dword [rsp + 0x3a0], 0
movzx eax, byte [rsp + 0x3a0]
test eax, eax
je 0x1800474b2
mov rax, qword [rsp + 0x3d0]
cmp qword [rax + 0x18], 0
je 0x1800474b2
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x3d0]
call qword [rax + 0x338]
cmp eax, 1
jne 0x1800473e3
call fcn.18004d230
jmp 0x18004742f
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x3d0]
call qword [rax + 0x338]
cmp eax, 1
jle 0x18004742f
mov edx, 0x101
lea rcx, [rsp + 0x50]
call fcn.18004cf20
lea rdx, [0x180065818]
lea rcx, [rsp + 0x50]
call fcn.180050c80
test eax, eax
je 0x18004742f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rax, qword [rsp + 0x3d0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x180047496
mov rcx, qword [rsp + 0x200]
call fcn.1800393c0
mov eax, 1
and eax, 1
test eax, eax
je 0x180047484
mov rcx, qword [rsp + 0x200]
call fcn.18004f1f4
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0x3a8], rax
jmp 0x1800474a2
mov qword [rsp + 0x3a8], 0
mov rax, qword [rsp + 0x3d0]
mov qword [rax + 0x18], 0
mov rcx, qword [rsp + 0x20]
call fcn.1800127f0
add rsp, 0x3b8
pop rdi
pop rsi
ret