Function at 0x40e927
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 1
pop ecx
xor eax, eax
test byte [ebx + 0xe], 0x10
mov dword [ebp - 4], ecx
je 0x40e942
mov eax, ecx
push esi
push eax
mov edi, dword [ebp + 8]
push 0x2a
push 0x118
push dword [0x4210ec]
push 0
push 0
push 0x31
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, eax
mov ecx, edi
call fcn.00405c0f
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x55
push edi
call esi
push dword [ebx + 4]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [ebp - 8], eax
push 0x55
push edi
call ebx
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [ebp + 0xc]
mov ecx, edi
push 8
pop edx
call fcn.0040fe9a
mov eax, dword [ebp + 0xc]
push 0
push 0x54
push edi
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xc], eax
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
and eax, 0xf
je 0x40e9f8
cmp eax, 1
je 0x40e9ef
jbe 0x40e9ff
push 3
pop ecx
cmp eax, ecx
jbe 0x40e9ea
cmp eax, 5
jbe 0x40e9ef
cmp eax, 0xa
jne 0x40e9ff
mov dword [ebp + 8], 4
jmp 0x40e9ff
mov dword [ebp + 8], ecx
jmp 0x40e9ff
mov dword [ebp + 8], 2
jmp 0x40e9ff
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
dec eax
je 0x40eab7
dec eax
je 0x40ea7b
dec eax
je 0x40ea45
dec eax
jne 0x40eafb
push 0
push 0x5c
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x2c], 0x58
mov dword [ebp - 0x28], 0x59
mov dword [ebp - 0x24], 0x5a
mov dword [ebp - 0x20], 0x5b
jmp 0x40eafb
push 0
push 0x5b
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x5c
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x2c], 0x58
mov dword [ebp - 0x28], 0x59
mov dword [ebp - 0x24], 0x5a
jmp 0x40eafb
push 0
push 0x5a
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x5b
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x5c
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x59
mov dword [ebp - 0x2c], 0x58
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
jmp 0x40eafb
push 0
push 0x59
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x5a
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x5b
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x5c
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x58
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
and eax, 0xf
sub eax, 0
je 0x40ed51
dec eax
je 0x40ed0b
dec eax
je 0x40eca6
dec eax
je 0x40ec3e
dec eax
je 0x40ebf5
dec eax
je 0x40ebc0
sub eax, 5
jne 0x40ed76
push str.Yes
push dword [ebp - 0x2c]
push edi
call ebx
push str.Yes_to_all
push dword [ebp - 0x28]
push edi
call ebx
push 0x41cfbc
push dword [ebp - 0x24]
push edi
call ebx
push 0x41cf5c
push dword [ebp - 0x20]
push edi
call ebx
push 6
push 0xfffffffffffffff4
push dword [ebp - 0x2c]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 0xb
push 0xfffffffffffffff4
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 6
push edi
call esi
push eax
call ebx
push 7
push 0xfffffffffffffff4
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0xb
push edi
call esi
push eax
call ebx
push 2
push 0xfffffffffffffff4
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 7
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x20], 2
jmp 0x40ed76
push str.Retry
push dword [ebp - 0x2c]
push edi
call ebx
push 0x41cf5c
push dword [ebp - 0x28]
push edi
call ebx
push 4
push 0xfffffffffffffff4
push dword [ebp - 0x2c]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
mov dword [ebp - 0x2c], 4
jmp 0x40ed3b
push str.Yes
push dword [ebp - 0x2c]
push edi
call ebx
push 0x41cfbc
push dword [ebp - 0x28]
push edi
call ebx
push 6
push 0xfffffffffffffff4
push dword [ebp - 0x2c]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 7
push 0xfffffffffffffff4
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 6
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x28], 7
jmp 0x40ed72
push str.Yes
push dword [ebp - 0x2c]
push edi
call ebx
push 0x41cfbc
push dword [ebp - 0x28]
push edi
call ebx
push 0x41cf5c
push dword [ebp - 0x24]
push edi
call ebx
push 6
push 0xfffffffffffffff4
push dword [ebp - 0x2c]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 7
push 0xfffffffffffffff4
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 6
push edi
call esi
push eax
call ebx
push 2
push 0xfffffffffffffff4
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 7
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x24], 2
jmp 0x40ed76
push str.Abort
push dword [ebp - 0x2c]
push edi
call ebx
push str.Retry
push dword [ebp - 0x28]
push edi
call ebx
push str.Ignore
push dword [ebp - 0x24]
push edi
call ebx
push 3
push 0xfffffffffffffff4
push dword [ebp - 0x2c]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 4
push 0xfffffffffffffff4
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 3
push edi
call esi
push eax
call ebx
push 5
push 0xfffffffffffffff4
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 4
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x24], 5
jmp 0x40ed72
push 0x41cefc
push dword [ebp - 0x2c]
push edi
call ebx
push 0x41cf5c
push dword [ebp - 0x28]
push edi
call ebx
push 1
push 0xfffffffffffffff4
push dword [ebp - 0x2c]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
mov dword [ebp - 0x2c], 1
push 2
push 0xfffffffffffffff4
push dword [ebp - 0x28]
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x28], 2
jmp 0x40ed76
push 0x41cefc
push dword [ebp - 0x2c]
push edi
call ebx
push 1
pop ebx
push ebx
push 0xfffffffffffffff4
push dword [ebp - 0x2c]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [ebp - 0x2c], ebx
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ebx, 0xf4
mov eax, dword [eax + 0xc]
and eax, 0xf00
cmp eax, 0x300
mov dword [ebp - 0x10], eax
jne 0x40edc7
cmp dword [ebp + 8], 4
jl 0x40ee63
push 0
push dword [ebp - 0x20]
push 0x401
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push ebx
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push ebx
mov ebx, dword [ebp - 0x20]
jmp 0x40ee8b
cmp eax, 0x200
jne 0x40ee0a
cmp dword [ebp + 8], 3
jl 0x40ee63
push 0
push dword [ebp - 0x24]
push 0x401
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ebx, 0xf4
push 0
push ebx
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push ebx
mov ebx, dword [ebp - 0x24]
jmp 0x40ee8b
cmp eax, 0x100
jne 0x40ee5f
cmp dword [ebp + 8], 2
jl 0x40ee63
push 0
push dword [ebp - 0x28]
push 0x401
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push ebx
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push ebx
push dword [ebp - 0x28]
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push dword [ebp - 0x28]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40eea4
push 0
push dword [ebp - 0x2c]
push 0x401
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push ebx
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push ebx
mov ebx, dword [ebp - 0x2c]
push ebx
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebx
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40eee3
mov ecx, dword [eax + 0x1c]
test cl, 0x10
je 0x40eeb8
mov ebx, dword [eax + 0x10]
jmp 0x40ef30
test cl, 0x20
je 0x40eee3
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40eee3
mov edx, dword [eax + 0x10]
xor ebx, ebx
shr edx, 0x10
mov bl, dh
test bl, bl
je 0x40eed7
mov ebx, dword [eax + 0x10]
jmp 0x40eedb
movzx ebx, word [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
jmp 0x40ef30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
and eax, 0xf0
cmp eax, 0x10
je 0x40ef21
cmp eax, 0x20
je 0x40ef1a
cmp eax, 0x30
je 0x40ef13
xor ebx, ebx
cmp eax, 0x40
sete bl
dec ebx
and bx, 0x80fc
add ebx, 0x7f04
jmp 0x40ef26
mov ebx, 0x7f03
jmp 0x40ef26
mov ebx, 0x7f02
jmp 0x40ef26
mov ebx, 0x7f01
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
test ebx, ebx
mov dword [ecx + 0x1c], ebx
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
je 0x40ef93
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 8]
call ebx
lea eax, [ebp - 0x3c]
push 2
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
imul eax, eax, 0xd
push 0xa
cdq
pop ecx
idiv ecx
push 4
add dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
inc eax
push eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
inc eax
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push eax
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0040f113
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
push edi
call esi
push eax
call ebx
mov eax, dword [ebp - 0x34]
push 1
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
push edi
push dword [ebp - 0x2c]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp - 0x44]
push 7
sub ebx, dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x10]
push 0xb
lea ecx, [ecx + eax*2]
add eax, ecx
imul eax, dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, dword [ebp - 8]
cmp ebx, eax
jge 0x40f03e
mov eax, dword [ebp - 0x40]
push 6
sub eax, dword [ebp - 0x48]
inc eax
push eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, dword [ebp - 8]
push eax
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp - 0x44]
sub ebx, dword [ebp - 0x4c]
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp + 8]
sar ecx, 1
cmp dword [ebp + 8], 0
mov dword [ebp - 0x1c], eax
jle 0x40f0a3
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
add edx, ebx
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x2c]
mov dword [ebp - 8], edx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 8]
sar ebx, 1
add ebx, ecx
mov dword [ebp + 8], eax
xor eax, eax
push 5
push eax
push eax
push dword [ebp - 0x18]
push ebx
push eax
mov eax, dword [ebp - 8]
push dword [eax]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
add ebx, dword [ebp - 0x1c]
add dword [ebp - 8], 4
dec dword [ebp + 8]
jne 0x40f07d
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x40f0c8
cmp dword [esi], 0x20
jne 0x40f0c8
mov ebx, dword [ebp + 0xc]
push edi
push ebx
call fcn.0040f5cb
cmp dword [esi + 8], 0
je 0x40f0cb
mov dword [ebp - 4], 1
jmp 0x40f0cb
mov ebx, dword [ebp + 0xc]
cmp dword [ebp - 4], 0
pop esi
jne 0x40f0e9
push 1
push 0xf060
push 0
push edi
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
test byte [ebx + 0xd], 0x10
je 0x40f100
xor eax, eax
push 3
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [ebx + 0xe], 1
je 0x40f10d
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop ebx
leave
ret 8