Function at 0x40b119
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
push 1
pop ecx
xor eax, eax
test byte [ebp + 0xe], 0x10
mov dword [esp + 0x14], ecx
je 0x40b135
mov eax, ecx
push eax
mov esi, dword [esp + 0x5c]
push 0x29
push 0x118
push dword [0x41d914]
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.00404c08
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x55
push esi
call edi
push dword [ebp + 4]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [esp + 0x14], eax
push 0x55
push esi
call ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebp
push 8
pop edx
mov ecx, esi
call fcn.0040c239
mov eax, dword [ebp + 0x20]
push 0
push 0x54
push esi
mov dword [esp + 0x24], eax
call edi
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 0x40b1eb
cmp eax, 1
je 0x40b1e1
jbe 0x40b1f3
push 3
pop ecx
cmp eax, ecx
jbe 0x40b1db
cmp eax, 5
jbe 0x40b1e1
cmp eax, 0xa
jne 0x40b1f3
mov dword [esp + 0x58], 4
jmp 0x40b1f3
mov dword [esp + 0x58], ecx
jmp 0x40b1f3
mov dword [esp + 0x58], 2
jmp 0x40b1f3
mov dword [esp + 0x58], 1
mov eax, dword [esp + 0x58]
dec eax
je 0x40b298
dec eax
je 0x40b266
dec eax
je 0x40b239
dec eax
jne 0x40b2d1
push 0
push 0x5c
push esi
call edi
push eax
call ebp
push 0x58
pop ebp
mov dword [esp + 0x28], 0x59
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 0x5a
mov dword [esp + 0x30], 0x5b
jmp 0x40b2d5
push 0
push 0x5b
push esi
call edi
push eax
call ebp
push 0
push 0x5c
push esi
call edi
push eax
call ebp
push 0x58
pop ebp
mov dword [esp + 0x28], 0x59
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 0x5a
jmp 0x40b2d5
push 0
push 0x5a
push esi
call edi
push eax
call ebp
push 0
push 0x5b
push esi
call edi
push eax
call ebp
push 0
push 0x5c
push esi
call edi
push eax
call ebp
push 0x58
pop ebp
push 0x59
mov dword [esp + 0x28], ebp
pop eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
jmp 0x40b2d5
push 0
push 0x59
push esi
call edi
push eax
call ebp
push 0
push 0x5a
push esi
call edi
push eax
call ebp
push 0
push 0x5b
push esi
call edi
push eax
call ebp
push 0
push 0x5c
push esi
call edi
push eax
call ebp
push 0x58
pop ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
jmp 0x40b2d5
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
and eax, 0xf
sub eax, 0
je 0x40b52b
dec eax
je 0x40b4e6
dec eax
je 0x40b47f
dec eax
je 0x40b415
dec eax
je 0x40b3cd
dec eax
je 0x40b3a0
sub eax, 5
jne 0x40b54f
push str.Yes
push ebp
push esi
call ebx
push str.Yes_to_all
push dword [esp + 0x2c]
push esi
call ebx
push 0x419514
push dword [esp + 0x30]
push esi
call ebx
push 0x4194b4
push dword [esp + 0x34]
push esi
call ebx
push 6
push 0xfffffffffffffff4
push ebp
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 6
pop ebp
push 0xb
push 0xfffffffffffffff4
push dword [esp + 0x30]
mov dword [esp + 0x30], ebp
push esi
call edi
push eax
call ebx
push 7
push 0xfffffffffffffff4
push dword [esp + 0x34]
mov dword [esp + 0x34], 0xb
push esi
call edi
push eax
call ebx
push 2
push 0xfffffffffffffff4
push dword [esp + 0x38]
mov dword [esp + 0x38], 7
push esi
call edi
push eax
call ebx
mov dword [esp + 0x30], 2
jmp 0x40b54f
push str.Retry
push ebp
push esi
call ebx
push 0x4194b4
push dword [esp + 0x2c]
push esi
call ebx
push 4
push 0xfffffffffffffff4
push ebp
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 4
jmp 0x40b50e
push str.Yes
push ebp
push esi
call ebx
push 0x419514
push dword [esp + 0x2c]
push esi
call ebx
push 6
push 0xfffffffffffffff4
push ebp
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 6
pop ebp
push 7
push 0xfffffffffffffff4
push dword [esp + 0x30]
mov dword [esp + 0x30], ebp
push esi
call edi
push eax
call ebx
mov dword [esp + 0x28], 7
jmp 0x40b54a
push str.Yes
push ebp
push esi
call ebx
push 0x419514
push dword [esp + 0x2c]
push esi
call ebx
push 0x4194b4
push dword [esp + 0x30]
push esi
call ebx
push 6
push 0xfffffffffffffff4
push ebp
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 6
pop ebp
push 7
push 0xfffffffffffffff4
push dword [esp + 0x30]
mov dword [esp + 0x30], ebp
push esi
call edi
push eax
call ebx
push 2
push 0xfffffffffffffff4
push dword [esp + 0x34]
mov dword [esp + 0x34], 7
push esi
call edi
push eax
call ebx
mov dword [esp + 0x2c], 2
jmp 0x40b54f
push str.Abort
push ebp
push esi
call ebx
push str.Retry
push dword [esp + 0x2c]
push esi
call ebx
push str.Ignore
push dword [esp + 0x30]
push esi
call ebx
push 3
push 0xfffffffffffffff4
push ebp
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 3
pop ebp
push 4
push 0xfffffffffffffff4
push dword [esp + 0x30]
mov dword [esp + 0x30], ebp
push esi
call edi
push eax
call ebx
push 5
push 0xfffffffffffffff4
push dword [esp + 0x34]
mov dword [esp + 0x34], 4
push esi
call edi
push eax
call ebx
mov dword [esp + 0x2c], 5
jmp 0x40b54a
push 0x419454
push ebp
push esi
call ebx
push 0x4194b4
push dword [esp + 0x2c]
push esi
call ebx
push 1
push 0xfffffffffffffff4
push ebp
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call ebx
push 1
pop ebp
push 2
push 0xfffffffffffffff4
push dword [esp + 0x30]
mov dword [esp + 0x30], ebp
push esi
call edi
push eax
call ebx
mov dword [esp + 0x28], 2
jmp 0x40b54f
push 0x419454
push ebp
push esi
call ebx
push 1
push 0xfffffffffffffff4
push ebp
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
pop ebp
mov dword [esp + 0x24], ebp
and dword [esp + 0x14], 0
mov eax, dword [esp + 0x5c]
mov ebx, 0xf4
mov eax, dword [eax + 0xc]
and eax, 0xf00
cmp eax, 0x300
mov dword [esp + 0x1c], eax
jne 0x40b5a0
cmp dword [esp + 0x58], 4
jl 0x40b65c
push 0
push dword [esp + 0x34]
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push ebx
mov ebx, dword [esp + 0x3c]
jmp 0x40b5df
cmp eax, 0x200
jne 0x40b5fe
cmp dword [esp + 0x58], 3
jl 0x40b65c
push 0
push dword [esp + 0x30]
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov ebx, 0xf4
push 0
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push ebx
mov ebx, dword [esp + 0x38]
push ebx
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebx
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x5c]
mov dword [eax + 0x10], ebx
jmp 0x40b697
cmp eax, 0x100
jne 0x40b658
cmp dword [esp + 0x58], 2
jl 0x40b65c
push 0
push dword [esp + 0x2c]
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push ebx
push dword [esp + 0x34]
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push dword [esp + 0x28]
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40b697
push 0
push ebp
push 0x401
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 1
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebp
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x5c]
mov dword [eax + 0x10], ebp
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40b6d6
mov eax, dword [ecx + 0x1c]
test al, 0x10
je 0x40b6ab
mov eax, dword [ecx + 0x10]
jmp 0x40b71c
test al, 0x20
je 0x40b6d6
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x40b6d6
mov eax, dword [ecx + 0x10]
xor ebx, ebx
shr eax, 0x10
mov bl, ah
test bl, bl
je 0x40b6c9
mov eax, dword [ecx + 0x10]
jmp 0x40b6cd
movzx eax, word [ecx + 0x10]
mov ebx, dword [esp + 0x5c]
mov dword [ebx + 0x18], edx
jmp 0x40b71c
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
and eax, 0xf0
cmp eax, 0x10
je 0x40b717
cmp eax, 0x20
je 0x40b710
cmp eax, 0x30
je 0x40b709
xor edx, edx
cmp eax, 0x40
sete dl
dec edx
and dx, 0x80fc
add edx, 0x7f04
mov eax, edx
jmp 0x40b71c
mov eax, 0x7f03
jmp 0x40b71c
mov eax, 0x7f02
jmp 0x40b71c
mov eax, 0x7f01
mov edx, dword [esp + 0x5c]
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
mov dword [edx + 0x1c], eax
je 0x40b78d
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x34]
push 2
push eax
push esi
push dword [esp + 0x1c]
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 + 0x38], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
inc eax
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
inc eax
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push 0
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push dword [esp + 0x60]
mov ecx, esi
call fcn.0040b913
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push ebp
push esi
call edi
push eax
call ebx
lea eax, [esp + 0x34]
push 1
mov ebx, dword [esp + 0x40]
push eax
sub ebx, dword [esp + 0x3c]
push esi
push ebp
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x4c]
push 7
sub ebp, dword [esp + 0x48]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [ebx + eax*2]
push 0xb
add eax, ecx
imul eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, dword [esp + 0x10]
cmp ebp, eax
jge 0x40b843
mov eax, dword [esp + 0x50]
push 6
sub eax, dword [esp + 0x4c]
inc eax
push eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, dword [esp + 0x18]
push eax
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x4c]
sub ebp, dword [esp + 0x44]
mov eax, ebp
sub eax, dword [esp + 0x10]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x10]
cdq
idiv dword [esp + 0x58]
sar ecx, 1
cmp dword [esp + 0x58], 0
mov dword [esp + 0x10], eax
jle 0x40b8af
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
add edx, ebp
sub eax, ebx
mov dword [esp + 0x20], edx
lea ebp, [esp + 0x24]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x58]
sar ebx, 1
add ebx, ecx
mov dword [esp + 0x58], eax
xor eax, eax
push 5
push eax
push eax
push dword [esp + 0x2c]
push ebx
push eax
push dword [ebp]
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
add ebp, 4
add ebx, dword [esp + 0x10]
dec dword [esp + 0x58]
jne 0x40b889
cmp dword [esp + 0x14], 0
jne 0x40b8cd
push 1
push 0xf060
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [esp + 0x5c]
test byte [edi + 0xd], 0x10
je 0x40b8e8
xor eax, eax
push 3
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [edi + 0xe], 1
je 0x40b8f5
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b909
cmp dword [eax], 0x20
jne 0x40b909
push esi
push edi
call fcn.0040bd5b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8