Function at 0x40ec99
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x58]
xor ecx, ecx
inc ecx
xor eax, eax
test byte [ebp + 0xe], 0x10
push edi
mov dword [esp + 0x14], ecx
je 0x40ecb4
mov eax, ecx
push eax
push 0x2a
push 0x118
push dword [0x421588]
push 0
push 0
push 0x31
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, eax
mov ecx, esi
call fcn.00405a45
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x55
push esi
call ebx
push dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x55
push esi
mov dword [esp + 0x24], eax
call edi
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebp
push 8
pop edx
mov ecx, esi
call fcn.0040fcc2
mov eax, dword [ebp + 0x20]
push 0
push 0x54
push esi
mov dword [esp + 0x1c], eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebp
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
and eax, 0xf
je 0x40ed66
cmp eax, 1
je 0x40ed5c
jbe 0x40ed6e
push 3
pop ecx
cmp eax, ecx
jbe 0x40ed56
cmp eax, 5
jbe 0x40ed5c
cmp eax, 0xa
jne 0x40ed6e
mov dword [esp + 0xc], 4
jmp 0x40ed6e
mov dword [esp + 0xc], ecx
jmp 0x40ed6e
mov dword [esp + 0xc], 2
jmp 0x40ed6e
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
dec eax
je 0x40ee13
dec eax
je 0x40ede1
dec eax
je 0x40edb4
dec eax
jne 0x40ee4c
push 0
push 0x5c
push esi
call ebx
push eax
call ebp
push 0x58
pop ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x59
mov dword [esp + 0x30], 0x5a
mov dword [esp + 0x34], 0x5b
jmp 0x40ee50
push 0
push 0x5b
push esi
call ebx
push eax
call ebp
push 0
push 0x5c
push esi
call ebx
push eax
call ebp
push 0x58
pop ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x59
mov dword [esp + 0x30], 0x5a
jmp 0x40ee50
push 0
push 0x5a
push esi
call ebx
push eax
call ebp
push 0
push 0x5b
push esi
call ebx
push eax
call ebp
push 0
push 0x5c
push esi
call ebx
push eax
call ebp
push 0x58
pop ebp
push 0x59
pop eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
jmp 0x40ee50
push 0
push 0x59
push esi
call ebx
push eax
call ebp
push 0
push 0x5a
push esi
call ebx
push eax
call ebp
push 0
push 0x5b
push esi
call ebx
push eax
call ebp
push 0
push 0x5c
push esi
call ebx
push eax
call ebp
push 0x58
pop ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
jmp 0x40ee50
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
and eax, 0xf
sub eax, 0
je 0x40f0a7
dec eax
je 0x40f062
dec eax
je 0x40effb
dec eax
je 0x40ef91
dec eax
je 0x40ef49
dec eax
je 0x40ef1b
sub eax, 5
jne 0x40f0cb
push str.Yes
push ebp
push esi
call edi
push str.Yes_to_all
push dword [esp + 0x30]
push esi
call edi
push 0x41fedc
push dword [esp + 0x34]
push esi
call edi
push str.Cancel
push dword [esp + 0x38]
push esi
call edi
push 6
push 0xfffffffffffffff4
push ebp
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call edi
push 6
pop ebp
push 0xb
push 0xfffffffffffffff4
push dword [esp + 0x34]
mov dword [esp + 0x34], ebp
push esi
call ebx
push eax
call edi
push 7
push 0xfffffffffffffff4
push dword [esp + 0x38]
mov dword [esp + 0x38], 0xb
push esi
call ebx
push eax
call edi
push 2
push 0xfffffffffffffff4
push dword [esp + 0x3c]
mov dword [esp + 0x3c], 7
push esi
call ebx
push eax
call edi
mov dword [esp + 0x34], 2
jmp 0x40f0cb
push str.Retry
push ebp
push esi
call edi
push str.Cancel
push dword [esp + 0x30]
push esi
call edi
push 4
push 0xfffffffffffffff4
push ebp
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call edi
push 4
pop ebp
jmp 0x40f08b
push str.Yes
push ebp
push esi
call edi
push 0x41fedc
push dword [esp + 0x30]
push esi
call edi
push 6
push 0xfffffffffffffff4
push ebp
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call edi
push 6
pop ebp
push 7
push 0xfffffffffffffff4
push dword [esp + 0x34]
mov dword [esp + 0x34], ebp
push esi
call ebx
push eax
call edi
mov dword [esp + 0x2c], 7
jmp 0x40f0c6
push str.Yes
push ebp
push esi
call edi
push 0x41fedc
push dword [esp + 0x30]
push esi
call edi
push str.Cancel
push dword [esp + 0x34]
push esi
call edi
push 6
push 0xfffffffffffffff4
push ebp
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call edi
push 6
pop ebp
push 7
push 0xfffffffffffffff4
push dword [esp + 0x34]
mov dword [esp + 0x34], ebp
push esi
call ebx
push eax
call edi
push 2
push 0xfffffffffffffff4
push dword [esp + 0x38]
mov dword [esp + 0x38], 7
push esi
call ebx
push eax
call edi
mov dword [esp + 0x30], 2
jmp 0x40f0cb
push str.Abort
push ebp
push esi
call edi
push str.Retry
push dword [esp + 0x30]
push esi
call edi
push str.Ignore
push dword [esp + 0x34]
push esi
call edi
push 3
push 0xfffffffffffffff4
push ebp
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call edi
push 3
pop ebp
push 4
push 0xfffffffffffffff4
push dword [esp + 0x34]
mov dword [esp + 0x34], ebp
push esi
call ebx
push eax
call edi
push 5
push 0xfffffffffffffff4
push dword [esp + 0x38]
mov dword [esp + 0x38], 4
push esi
call ebx
push eax
call edi
mov dword [esp + 0x30], 5
jmp 0x40f0c6
push 0x41fe1c
push ebp
push esi
call edi
push str.Cancel
push dword [esp + 0x30]
push esi
call edi
push 1
push 0xfffffffffffffff4
push ebp
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call edi
xor ebp, ebp
inc ebp
push 2
push 0xfffffffffffffff4
push dword [esp + 0x34]
mov dword [esp + 0x34], ebp
push esi
call ebx
push eax
call edi
mov dword [esp + 0x2c], 2
jmp 0x40f0cb
push 0x41fe1c
push ebp
push esi
call edi
push 1
push 0xfffffffffffffff4
push ebp
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
xor ebp, ebp
inc ebp
mov dword [esp + 0x28], ebp
and dword [esp + 0x14], 0
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
and eax, 0xf00
cmp eax, 0x300
mov dword [esp + 0x1c], eax
mov edi, 0xf4
jne 0x40f11c
cmp dword [esp + 0xc], 4
jl 0x40f1d8
push 0
push dword [esp + 0x38]
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push edi
mov edi, dword [esp + 0x40]
jmp 0x40f15b
cmp eax, 0x200
jne 0x40f17a
cmp dword [esp + 0xc], 3
jl 0x40f1d8
push 0
push dword [esp + 0x34]
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
mov edi, 0xf4
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push edi
mov edi, dword [esp + 0x3c]
push edi
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x5c]
mov dword [eax + 0x10], edi
jmp 0x40f213
cmp eax, 0x100
jne 0x40f1d4
cmp dword [esp + 0xc], 2
jl 0x40f1d8
push 0
push dword [esp + 0x30]
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push edi
push dword [esp + 0x38]
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push dword [esp + 0x2c]
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40f213
push 0
push ebp
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebp
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x5c]
mov dword [eax + 0x10], ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f24c
mov ecx, dword [eax + 0x1c]
test cl, 0x10
je 0x40f228
mov edi, dword [eax + 0x10]
jmp 0x40f295
test cl, 0x20
je 0x40f24c
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40f24c
mov edi, dword [eax + 0x10]
mov edx, edi
shr edx, 0x10
test dh, dh
jne 0x40f243
movzx edi, di
mov edx, dword [esp + 0x5c]
mov dword [edx + 0x18], ecx
jmp 0x40f295
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
and eax, 0xf0
cmp eax, 0x10
je 0x40f285
cmp eax, 0x20
je 0x40f27e
cmp eax, 0x30
je 0x40f277
cmp eax, 0x40
je 0x40f270
xor edi, edi
jmp 0x40f28a
mov edi, 0x7f04
jmp 0x40f28a
mov edi, 0x7f03
jmp 0x40f28a
mov edi, 0x7f02
jmp 0x40f28a
mov edi, 0x7f01
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0x1c], edi
test edi, edi
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
je 0x40f306
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x1c]
call edi
push 2
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x24]
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 [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
inc eax
push eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
inc eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push 0
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x10]
push eax
push dword [esp + 0x60]
push dword [esp + 0x20]
push esi
call fcn.0040e4b9
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push eax
push ebp
push esi
call ebx
push eax
call edi
mov edi, dword [esp + 0x40]
sub edi, dword [esp + 0x38]
push 1
lea eax, [esp + 0x3c]
push eax
push esi
push ebp
push esi
mov dword [esp + 0x34], edi
call ebx
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x50]
sub ebp, dword [esp + 0x48]
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea edi, [edi + eax*2]
add edi, eax
imul edi, dword [esp + 0xc]
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, edi
cmp ebp, eax
jge 0x40f3b7
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
push 6
inc eax
push eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, edi
push eax
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x50]
sub ebp, dword [esp + 0x48]
mov eax, ebp
sub eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
idiv dword [esp + 0xc]
xor ebp, ebp
sar ecx, 1
cmp dword [esp + 0xc], ebp
mov dword [esp + 0x24], eax
jle 0x40f415
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
sub eax, dword [esp + 0x20]
add edx, edi
mov dword [esp + 0x1c], edx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, ecx
push 5
xor eax, eax
push eax
push eax
push dword [esp + 0x28]
push edi
push eax
push dword [esp + ebp*4 + 0x40]
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
add edi, dword [esp + 0x24]
inc ebp
cmp ebp, dword [esp + 0xc]
jl 0x40f3f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f440
cmp dword [eax], 0x20
jne 0x40f440
mov edi, dword [esp + 0x5c]
push esi
call fcn.0040ec16
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x40f444
mov dword [esp + 0x14], 1
jmp 0x40f444
mov edi, dword [esp + 0x5c]
cmp dword [esp + 0x14], 0
jne 0x40f462
push 1
push 0xf060
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
test byte [edi + 0xd], 0x10
je 0x40f479
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [edi + 0xe], 1
pop edi
pop ebp
pop ebx
je 0x40f489
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0x4c
ret 4