Function at 0x40b8d0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov dword [ebp - 0xa4], 0x2f2
mov dword [ebp - 0x5c], 0x8e
mov dword [ebp - 0x30], 0x130
mov dword [ebp - 0xa8], 0xff
mov dword [ebp - 0x80], 0x371
mov dword [ebp - 0x84], 0xee
mov dword [ebp - 0x9c], 0x1c6
mov dword [ebp - 0x68], 0x192
mov dword [ebp - 0x8c], 0x154
mov dword [ebp - 0x18], 0x8f
mov dword [ebp - 4], 0xa0
mov dword [ebp - 0xac], 0x96
mov dword [ebp - 0x60], 0x1db
mov dword [ebp - 0xb0], 0x1f5
mov dword [ebp - 8], 0xcc
mov dword [ebp - 0x1c], 0x369
mov dword [ebp - 0xa0], 0xfe
mov dword [ebp - 0x14], 0x3c7
mov dword [ebp - 0x50], 0x2d6
mov dword [ebp - 0x64], 0x1a
mov dword [ebp - 0x54], 0x160
mov dword [ebp - 0xc], 0x30a
mov dword [ebp - 0x98], 0xb0
mov dword [ebp - 0x58], 0x28e
mov dword [ebp - 0x10], 0x33
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x54]
jge 0x40b9b4
mov dword [ebp - 0x34], 1
jmp 0x40b9bb
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [ebp - 0x7c]
jge 0x40b9e1
mov dword [ebp - 0x38], 1
jmp 0x40b9e8
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x64]
jge 0x40b9f9
mov dword [ebp - 0x3c], 1
jmp 0x40ba00
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
and eax, dword [ebp + 8]
and eax, dword [ebp - 0x38]
and eax, dword [ebp - 0x3c]
je 0x40baeb
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 8]
jge 0x40baeb
mov edx, dword [ebp + 8]
and edx, dword [ebp - 0x80]
cmp edx, dword [ebp - 0x84]
jge 0x40ba35
mov dword [ebp - 0x40], 1
jmp 0x40ba3c
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
imul ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0x40]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x88], 0
je 0x40baeb
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0xc]
jge 0x40ba7f
mov dword [ebp - 0x44], 1
jmp 0x40ba86
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [ebp - 0x94]
jge 0x40bab8
mov dword [ebp - 0x48], 1
jmp 0x40babf
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x30]
jge 0x40bad0
mov dword [ebp - 0x4c], 1
jmp 0x40bad7
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x44]
or eax, dword [ebp - 0x48]
or eax, dword [ebp - 0x4c]
je 0x40baeb
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
jmp 0x40bafd
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x30]
sub eax, 0x12f
cmp dword [ebp - 0x20], eax
jge 0x40bb15
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
jmp 0x40baf4
mov dword [ebp - 0x24], 0
jmp 0x40bb27
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x189aa
cmp dword [ebp - 0x24], eax
jge 0x40bb45
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x40bb1e
mov dword [ebp - 0x28], 0
jmp 0x40bb57
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x54]
sub eax, 0x18800
cmp dword [ebp - 0x28], eax
jge 0x40bb85
mov ecx, dword [ebp - 0x58]
xor ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
and ecx, edx
je 0x40bb83
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
jmp 0x40bb4e
mov dword [ebp - 0x2c], 0
jmp 0x40bb97
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x98]
sub edx, 0x18750
cmp dword [ebp - 0x2c], edx
jge 0x40bc24
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x68]
jge 0x40bc1f
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jge 0x40bbcd
mov dword [ebp - 0x6c], 1
jmp 0x40bbd4
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x14]
jge 0x40bbe5
mov dword [ebp - 0x70], 1
jmp 0x40bbec
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x30]
jge 0x40bc04
mov dword [ebp - 0x74], 1
jmp 0x40bc0b
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x6c]
and ecx, dword [ebp - 0x70]
and ecx, dword [ebp - 0x74]
je 0x40bc1f
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40bb8e
mov esp, ebp
pop ebp
ret