Function at 0x405340
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]
test byte [0x413020], 8
mov esi, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xfc], eax
mov edi, dword [ecx + 0xc]
jne 0x405430
cmp esi, 0x20
ja 0x405390
cmp esi, 0xe
jbe case.0x405387.17
lea eax, [esi - 0xf]
cmp eax, 0x11
ja case.0x405387.17
jmp dword [eax*4 + 0x4144a8]
cmp esi, 0x203
je 0x405808
lea esi, [esi]
jbe 0x4053d0
cmp esi, 0x210
jne case.0x405387.17
mov dword [esp + 4], edx
xor ebx, ebx
mov dword [esp], edi
call sym._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
cmp esi, 0x84
mov ebx, 1
je 0x4053b8
cmp esi, 0x112
jne case.0x405387.17
mov eax, edx
and eax, 0xfff0
cmp eax, 0xf060
je 0x4059a0
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0xfc]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [0x41d208]
sub esp, 0x10
mov ebx, eax
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 + 0x14], edx
mov eax, str.got_msg__04x_wp__Ix_lp__Ix_n
mov dword [ebp - 0x100], edx
mov edx, 0x413020
mov dword [esp + 0xc], eax
mov eax, str.desktop_wnd_proc
mov dword [esp + 4], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x100]
jmp 0x405375
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 [0x41d294]
sub esp, 8
test ecx, ecx
jne 0x4057d5
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xb4]
test edx, edx
mov dword [ebp - 0x108], eax
jne 0x4059c0
mov eax, dword [ebp - 0xac]
lea ebx, [ebp - 0x74]
mov esi, 0xffffff
mov dword [esp + 4], esi
mov edi, dword [ebp - 0x108]
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 - 0xec], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xe8], eax
call sym._SetTextColor_8
mov dword [ebp - 0x10c], eax
sub esp, 8
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetBkMode_8
mov dword [ebp - 0x110], eax
sub esp, 8
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 0x5c
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
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 - 0x114], eax
mov eax, dword [0x41d25c]
sub esp, 8
test eax, eax
je 0x405790
lea eax, [ebp - 0xe4]
xor esi, esi
mov dword [ebp - 0x100], eax
jmp 0x4055c2
lea eax, [ebp - 0xf4]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x100]
mov dword [esp], eax
call sym._IntersectRect_12
sub esp, 0xc
test eax, eax
jne 0x4059e0
inc esi
cmp esi, dword [0x41d25c]
jae 0x405790
xor edx, edx
mov eax, esi
mov ecx, dword [0x41d268]
div dword [0x41d264]
mov ebx, dword [0x41d280]
mov edi, dword [0x41d288]
imul edx, ecx
imul eax, ecx
mov ecx, dword [0x41d27c]
add ebx, edx
mov dword [ebp - 0xd4], ebx
add edi, ebx
mov ebx, dword [0x41d26c]
mov dword [ebp - 0x104], edi
mov edi, dword [0x41d284]
add ecx, eax
mov dword [ebp - 0xd0], ecx
add eax, ebx
mov ebx, dword [0x41d274]
mov dword [ebp - 0xc0], eax
add edi, ecx
mov ecx, dword [0x41d270]
mov dword [ebp - 0xc8], edi
mov edi, dword [ebp - 0x104]
add ebx, eax
mov dword [ebp - 0xb8], ebx
lea eax, [ebp - 0xf4]
add edx, ecx
mov dword [esp + 8], eax
lea eax, [ebp - 0xd4]
mov ecx, dword [0x41d278]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc4], edx
add ecx, edx
mov dword [esp], eax
mov dword [ebp - 0xbc], ecx
call sym._IntersectRect_12
sub esp, 0xc
test eax, eax
je 0x405588
mov eax, dword [0x41d284]
mov ecx, 0xb
xor ebx, ebx
mov dword [esp + 0x20], ecx
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov eax, dword [0x41d288]
mov dword [esp + 0x10], eax
mov eax, dword [0x41d260]
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 - 0x108]
mov dword [esp], eax
call sym._DrawIconEx_36
sub esp, 0x24
jmp 0x405588
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 eax, dword [0x41d294]
mov ebx, 1
test eax, eax
jne 0x4053b8
mov dword [esp], edx
call sym._PaintDesktop_4
sub esp, 4
jmp 0x4053b8
xor ebx, ebx
cmp edx, 0x14
jne 0x4053b8
xor ecx, ecx
xor esi, esi
mov dword [esp + 0xc], ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0x14
call sym._SystemParametersInfoW_16
sub esp, 0x10
jmp 0x4053b8
mov dword [esp], 0
mov eax, 0x7f00
mov dword [esp + 4], eax
call sym._LoadCursorA_8
sub esp, 8
mov dword [esp], eax
call sym._SetCursor_4
sub esp, 4
mov ebx, eax
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edi, dword [ebp - 0x108]
mov eax, dword [ebp - 0x114]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._SelectObject_8
mov eax, dword [ebp - 0x10c]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetTextColor_8
mov eax, dword [ebp - 0x110]
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 ebx, dword [0x41d294]
test ebx, ebx
jne 0x405990
mov edx, edi
movsx eax, di
mov edi, dword [0x41d25c]
mov dword [ebp - 0xfc], eax
sar edx, 0x10
test edi, edi
je 0x4053b8
mov dword [ebp - 0x100], edx
mov ecx, dword [0x41d268]
mov eax, edx
cdq
mov esi, dword [0x41d264]
idiv ecx
mov edx, eax
mov eax, dword [ebp - 0xfc]
imul edx, esi
mov dword [ebp - 0x104], edx
cdq
idiv ecx
mov edx, dword [ebp - 0x104]
add edx, eax
mov dword [ebp - 0x108], edx
cmp edi, edx
jbe 0x4053b8
mov eax, edx
xor edx, edx
mov edi, dword [0x41d27c]
div esi
mov esi, dword [0x41d280]
imul edx, ecx
imul ecx, eax
add esi, edx
add edi, ecx
mov eax, edi
mov edi, dword [0x41d270]
mov dword [ebp - 0x110], eax
add edi, edx
mov edx, dword [0x41d278]
add edx, edi
mov dword [ebp - 0x104], edx
mov edx, dword [0x41d26c]
add ecx, edx
mov edx, dword [0x41d274]
add edx, ecx
cmp dword [ebp - 0x100], eax
mov dword [ebp - 0x10c], edx
setl dl
cmp dword [ebp - 0xfc], esi
setl al
or al, dl
mov edx, dword [0x41d288]
add esi, edx
cmp dword [ebp - 0xfc], esi
setg dl
or al, dl
jne 0x405902
mov eax, dword [ebp - 0x110]
mov esi, dword [0x41d284]
add eax, esi
cmp dword [ebp - 0x100], eax
jle 0x40593b
mov esi, dword [ebp - 0xfc]
cmp dword [ebp - 0x100], ecx
setl al
cmp esi, edi
setl dl
or al, dl
cmp esi, dword [ebp - 0x104]
setg dl
or al, dl
jne 0x4053b8
mov edi, dword [ebp - 0x10c]
cmp dword [ebp - 0x100], edi
jg 0x4053b8
mov eax, dword [0x41d260]
mov edi, dword [ebp - 0x108]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4053b8
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], esi
xor edi, edi
mov ecx, str.open
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], 0
mov dword [esp + 8], eax
call sym._ShellExecuteW_24
sub esp, 0x18
jmp 0x4053b8
xor ebx, ebx
jmp 0x4053b8
mov dword [esp], 0
mov eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 4], eax
call sym._ExitWindowsEx_8
sub esp, 8
jmp 0x4053b8
mov dword [esp], eax
call sym._PaintDesktop_4
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x108], eax
sub esp, 4
jmp 0x4054b7
mov eax, 0xa011
mov edx, 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc4]
mov dword [esp + 0xc], eax
mov eax, dword [0x41d260]
mov dword [esp + 8], edx
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x108]
mov dword [esp], eax
call sym._DrawTextW_20
sub esp, 0x14
jmp 0x4055b5