Function at 0x405260
Capabilities:
Shutdown system

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x138
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0xfc], eax
test byte [0x411020], 8
jne 0x405340
cmp esi, 0x20
ja 0x4052b0
cmp esi, 0xe
jbe case.0x4052a7.17
lea eax, [esi - 0xf]
cmp eax, 0x11
ja case.0x4052a7.17
jmp dword [eax*4 + 0x412484]
cmp esi, 0x203
je 0x405750
jbe 0x4052e8
cmp esi, 0x210
jne case.0x4052a7.17
mov dword [esp + 4], edx
xor ebx, ebx
mov dword [esp], edi
call dbg.handle_parent_notify
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov ebx, 1
cmp esi, 0x84
je 0x4052d4
cmp esi, 0x112
jne case.0x4052a7.17
mov eax, edx
and eax, 0xfff0
cmp eax, 0xf060
je 0x4058f0
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [0x41b208]
sub esp, 0x10
lea esp, [ebp - 0x10]
mov ebx, eax
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.got_msg__04x_wp__lx_lp__lx_n
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 4], global___dbch
mov dword [esp], 3
mov dword [ebp - 0x100], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x100]
jmp 0x405295
lea eax, [ebp - 0xb4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp], eax
call sym._BeginPaint_8
mov ecx, dword [0x41b294]
sub esp, 8
test ecx, ecx
jne 0x4054cd
mov edx, dword [ebp - 0xb0]
test edx, edx
jne 0x405940
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0xb4]
lea ebx, [ebp - 0x74]
xor esi, esi
mov dword [esp + 4], 0xffffff
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xa8]
mov dword [esp], edi
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x104], edi
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xe8], eax
call sym._SetTextColor_8
sub esp, 8
mov dword [ebp - 0x108], eax
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._SetBkMode_8
sub esp, 8
mov dword [ebp - 0x10c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x5c
mov dword [esp], 0x1f
call sym._SystemParametersInfoW_16
sub esp, 0x10
mov dword [esp], ebx
call sym._CreateFontIndirectW_4
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SelectObject_8
mov dword [ebp - 0x110], eax
mov eax, dword [0x41b25c]
sub esp, 8
test eax, eax
jne 0x405642
lea esi, [esi]
mov edi, dword [ebp - 0x104]
mov eax, dword [ebp - 0x110]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._SelectObject_8
mov eax, dword [ebp - 0x108]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetTextColor_8
mov eax, dword [ebp - 0x10c]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetBkMode_8
sub esp, 8
lea eax, [ebp - 0xb4]
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp], eax
call sym._EndPaint_8
mov eax, ebx
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0
xor ebx, ebx
call sym._PostQuitMessage_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov esi, dword [0x41b294]
mov ebx, 1
test esi, esi
jne 0x4052d4
mov dword [esp], edx
call sym._PaintDesktop_4
sub esp, 4
jmp 0x4052d4
cmp edx, 0x14
je 0x405910
xor ebx, ebx
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call sym._LoadCursorA_8
sub esp, 8
mov dword [esp], eax
call sym._SetCursor_4
sub esp, 4
lea esp, [ebp - 0x10]
mov ebx, eax
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [0x41b284]
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov eax, dword [0x41b288]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov eax, dword [0x41b260]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xd4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x104]
mov dword [esp], eax
call sym._DrawIconEx_36
sub esp, 0x24
lea eax, [ebp - 0xf4]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc4]
mov dword [esp + 4], eax
lea eax, [ebp - 0xe4]
mov dword [esp], eax
call sym._IntersectRect_12
sub esp, 0xc
test eax, eax
jne 0x405708
add esi, 1
cmp esi, dword [0x41b25c]
jae 0x405488
mov eax, esi
xor edx, edx
mov ebx, dword [0x41b268]
mov ecx, dword [0x41b280]
div dword [0x41b264]
mov edi, dword [0x41b288]
imul edx, ebx
imul eax, ebx
mov ebx, dword [0x41b27c]
add ecx, edx
add edx, dword [0x41b270]
add edi, ecx
add ebx, eax
add eax, dword [0x41b26c]
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x100], edi
mov edi, dword [0x41b284]
mov dword [ebp - 0xd0], ebx
mov ecx, dword [0x41b278]
add edi, ebx
mov ebx, dword [0x41b274]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc8], edi
mov edi, dword [ebp - 0x100]
add ecx, edx
add ebx, eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xc4], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0xd4]
mov dword [esp + 4], eax
lea eax, [ebp - 0xe4]
mov dword [esp], eax
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], ebx
call sym._IntersectRect_12
sub esp, 0xc
test eax, eax
je 0x405606
jmp 0x4055a8
lea eax, [ebp - 0xc4]
mov dword [esp + 0x10], 0xa011
mov dword [esp + 0xc], eax
mov eax, dword [0x41b260]
mov dword [esp + 8], 0xffffffff
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x104]
mov dword [esp], eax
call sym._DrawTextW_20
sub esp, 0x14
jmp 0x405633
mov ebx, dword [0x41b294]
test ebx, ebx
jne 0x405559
mov edx, edi
movsx eax, di
mov edi, dword [0x41b25c]
mov dword [ebp - 0xfc], eax
sar edx, 0x10
test edi, edi
je 0x4052d4
mov ecx, dword [0x41b268]
mov eax, edx
mov dword [ebp - 0x104], edx
cdq
mov esi, dword [0x41b264]
idiv ecx
mov dword [ebp - 0x100], esi
mov esi, dword [ebp - 0x100]
imul esi, eax
mov eax, dword [ebp - 0xfc]
cdq
idiv ecx
add esi, eax
cmp edi, esi
jbe 0x4052d4
xor edx, edx
mov eax, esi
mov edi, dword [0x41b280]
div dword [ebp - 0x100]
imul edx, ecx
imul ecx, eax
mov eax, dword [0x41b27c]
add edi, edx
add edx, dword [0x41b270]
mov dword [ebp - 0x10c], edx
add edx, dword [0x41b278]
add eax, ecx
mov dword [ebp - 0x110], edx
mov edx, dword [0x41b26c]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x114], edx
mov edx, dword [0x41b274]
mov dword [ebp - 0x118], edx
mov edx, dword [0x41b288]
add edx, edi
mov eax, edx
mov edx, dword [ebp - 0xfc]
cmp edx, eax
setg byte [ebp - 0x108]
cmp edx, edi
mov edi, dword [ebp - 0x100]
setl al
cmp dword [ebp - 0x104], edi
setl dl
mov edi, edx
movzx edx, byte [ebp - 0x108]
or eax, edi
or dl, al
jne 0x405858
mov edi, dword [ebp - 0x100]
add edi, dword [0x41b284]
cmp dword [ebp - 0x104], edi
jle 0x40589e
mov eax, dword [ebp - 0xfc]
mov edi, dword [ebp - 0x10c]
cmp eax, edi
jl 0x4052d4
mov edi, dword [ebp - 0x110]
cmp eax, edi
jg 0x4052d4
mov eax, dword [ebp - 0x114]
mov edi, dword [ebp - 0x104]
add eax, ecx
cmp edi, eax
jl 0x4052d4
add eax, dword [ebp - 0x118]
cmp edi, eax
jg 0x4052d4
mov eax, dword [0x41b260]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x405559
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [eax]
mov dword [esp + 4], str.open
mov dword [esp + 8], eax
mov dword [esp], 0
call sym._ShellExecuteW_24
sub esp, 0x18
jmp 0x4052d4
mov dword [esp + 4], 0xffffffff
xor ebx, ebx
mov dword [esp], 0
call sym._ExitWindowsEx_8
sub esp, 8
jmp 0x4052d4
mov dword [esp + 0xc], 0
xor ebx, ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x14
call sym._SystemParametersInfoW_16
sub esp, 0x10
jmp 0x40555b
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call sym._PaintDesktop_4
sub esp, 4
jmp 0x4053bf