Function at 0x461770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x462152
mov ecx, dword [esp + 0xa4]
mov byte [edi + 0xbd], 1
cmp byte [ecx], 0
je 0x4617a2
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [edi + 4]
mov esi, SysReAllocString
mov dword [esp + 0x24], CreateStatusWindowA
mov dword [esp + 0x2c], CreateStatusWindowA
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x1e], 0
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [edi + 4]
mov ebx, eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov dword [esp + 0x44], eax
test eax, eax
je 0x4617eb
mov ecx, 9
jmp 0x4617f9
xor ecx, ecx
test ebx, ebx
setne cl
lea ecx, [ecx*4 + 1]
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ecx
cmp byte [ebp], 0
je 0x461ae3
movzx ebx, byte [ebp]
test ebx, 0xffffff80
jne 0x461830
push 2
push ebx
call fcn.00485bac
add esp, 8
test eax, eax
je 0x461830
and ebx, 0xffffffdf
movsx eax, bl
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x461846.10
movzx eax, byte [eax + 0x462188]
jmp dword [eax*4 + 0x462164]
inc dword [esp + 0x14]
jmp case.0x461846.10
push 8
push str.AutoSize
push ebp
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne case.0x461846.10
add dword [esp + 0x14], 8
mov byte [esp + 0x1a], 1
jmp case.0x461846.10
push 6
push str.Center
push ebp
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne case.0x461846.10
add dword [esp + 0x14], 6
mov dword [esp + 0x20], CreateStatusWindowA
mov dword [esp + 0x28], CreateStatusWindowA
jmp case.0x461846.10
push 8
push str.Minimize
push ebp
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x4618d6
add dword [esp + 0x14], 8
mov esi, 6
mov dword [esp + 0x1c], esi
jmp case.0x461846.10
push 8
push str.Maximize
push ebp
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne case.0x461846.10
add dword [esp + 0x14], 8
mov esi, 3
mov dword [esp + 0x1c], esi
jmp case.0x461846.10
push 2
push 0x4a37ec
push ebp
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x461928
add dword [esp + 0x14], 2
mov esi, 8
mov dword [esp + 0x1c], esi
jmp case.0x461846.10
push 0xa
push str.NoActivate
push ebp
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne case.0x461846.10
add dword [esp + 0x14], 0xa
mov esi, 4
mov dword [esp + 0x1c], esi
jmp case.0x461846.10
push 7
push str.Restore
push ebp
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne case.0x461846.10
add dword [esp + 0x14], 7
mov esi, 9
mov dword [esp + 0x1c], esi
jmp case.0x461846.10
push 6
lea eax, [ebp + 1]
push str.Center
push eax
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne case.0x461846.72
mov cl, byte [ebp]
call fcn.00409810
cmp al, 0x58
jne 0x4619b7
add dword [esp + 0x14], 7
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], CreateStatusWindowA
jmp 0x461ac9
add dword [esp + 0x14], 7
mov esi, dword [esp + 0x10]
mov dword [esp + 0x28], CreateStatusWindowA
jmp 0x461ac9
push 4
push str.Hide
push ebp
call fcn.00484c8d
add esp, 0xc
test eax, eax
jne 0x4619f5
add dword [esp + 0x14], 4
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
jmp 0x461acd
lea eax, [esp + 0x14]
push eax
lea esi, [ebp + 1]
push esi
call fcn.00487902
add esp, 8
fstp qword [esp + 0x30]
cmp dword [esp + 0x14], esi
je 0x461c0a
movzx ebx, byte [ebp]
test ebx, 0xffffff80
jne 0x461a32
push 2
push ebx
call fcn.00485bac
add esp, 8
test eax, eax
je 0x461a32
and ebx, 0xffffffdf
movsx eax, bl
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x461846.10
movzx eax, byte [eax + 0x4621f0]
jmp dword [eax*4 + 0x4621dc]
cvttsd2si eax, qword [esp + 0x30]
mov dword [esp + 0x20], eax
jmp case.0x461846.10
cvttsd2si eax, qword [esp + 0x30]
mov dword [esp + 0x28], eax
jmp case.0x461846.10
cmp byte [edi + 0xc0], 0
je 0x461a8d
cvttsd2si eax, qword [esp + 0x30]
push 0x60
push dword [0x4ae95c]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x461abf
cvttsd2si esi, qword [esp + 0x30]
mov dword [esp + 0x10], esi
jmp 0x461abf
cmp byte [edi + 0xc0], 0
cvttsd2si eax, qword [esp + 0x30]
je 0x461ab7
push 0x60
push dword [0x4ae95c]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x14], ebp
je 0x461c0e
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
cmp byte [ebp], 0
jne 0x461812
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebp
mov byte [esp + 0x1b], 0
test ecx, ecx
je 0x461b0a
cmp ecx, 9
je 0x461b02
cmp ecx, 4
jne 0x461b19
test ebx, ebx
jne 0x461b0a
test eax, eax
je 0x461b19
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x1b], 1
cmp byte [edi + 0xbb], 0
je 0x461b4c
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jbe 0x461b4c
xor esi, esi
jmp 0x461b30
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x461b43
push eax
mov ecx, edi
call fcn.00465c80
inc ebx
add esi, 0x14
cmp ebx, dword [edi + 0x10]
jb 0x461b30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
mov edx, dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
sete al
mov byte [esp + 0x2f], al
test al, al
je 0x461d05
cmp byte [esp + 0x1a], 0
je 0x461c61
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x10], ecx
jbe 0x461ca8
xor ebx, ebx
mov esi, dword [edi + 0x18]
add esi, ebx
cmp byte [esi + 4], 0x19
je 0x461c35
cmp byte [esi + 6], 0xff
je 0x461bbc
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, dword [edi + 4]
jne 0x461c31
push 0xfffffffffffffff0
push dword [esi]
call edx
test eax, 0x10000000
je 0x461c2b
lea eax, [esp + 0x48]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x4c]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x50], ecx
mov edx, dword [sym.imp.USER32.dll_GetWindowLongA]
cmovg ecx, dword [esp + 0x50]
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x10], ecx
cmovg ebp, dword [esp + 0x54]
jmp 0x461c35
mov dword [esp + 0x14], ebp
push ebp
push str.Invalid_option.
mov ecx, 0x4ae9b0
call fcn.0042ce80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov edx, dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
add ebx, 0x14
inc esi
mov dword [esp + 0x24], esi
cmp esi, dword [edi + 0x10]
jb 0x461b94
test ecx, ecx
jle 0x461c55
add ecx, dword [edi + 0x78]
mov dword [esp + 0x10], ecx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
test ebp, ebp
jle 0x461ca8
jmp 0x461ca5
mov ecx, dword [esp + 0x10]
cmp ecx, 0x80000000
je 0x461c79
cmp ebp, 0x80000000
jne 0x461d05
cmp byte [edi + 0xbb], 0
je 0x461cd1
cmp ecx, 0x80000000
jne 0x461c97
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x10], eax
cmp ebp, 0x80000000
jne 0x461d05
mov ebp, dword [edi + 0x94]
add ebp, dword [edi + 0x7c]
mov eax, dword [edi + 8]
test eax, eax
je 0x461d05
push 0xfffffffffffffff0
push eax
call edx
test eax, 0x10000000
je 0x461d05
lea eax, [esp + 0x48]
push eax
push dword [edi + 8]
call ebx
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
add ebp, eax
jmp 0x461d05
lea eax, [esp + 0x48]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x10], 0x80000000
jne 0x461cf5
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
cmp ebp, 0x80000000
jne 0x461d05
mov ebp, dword [esp + 0x54]
sub ebp, dword [esp + 0x4c]
cmp byte [edi + 0xbb], 0
je 0x461d63
cmp byte [edi + 0xb8], 0
je 0x461d3e
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jbe 0x461d3e
xor esi, esi
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x461d35
push 0
push eax
mov ecx, edi
call fcn.00465530
inc ebx
add esi, 0x14
cmp ebx, dword [edi + 0x10]
jb 0x461d20
mov eax, dword [esp + 0x20]
mov ecx, SysReAllocString
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x28], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x2f], 0
mov dword [esp + 0x24], eax
je 0x462050
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebp
call ebx
push dword [edi + 4]
mov ebp, eax
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
push 0xffffffffffffffec
push dword [edi + 4]
sbb esi, esi
neg esi
call ebx
push eax
push esi
push ebp
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
test ebp, 0x100000
je 0x461de0
push 3
call ebx
add dword [esp + 0x3c], eax
test ebp, 0x200000
je 0x461df0
push 2
call ebx
add dword [esp + 0x38], eax
test esi, esi
je 0x461e25
movdqu xmm0, xmmword [esp + 0x30]
lea eax, [esp + 0x58]
push eax
push 0
push 0x83
push dword [edi + 4]
movdqu xmmword [esp + 0x68], xmm0
mov dword [esp + 0x74], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x5c]
add dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
sub ebx, dword [esp + 0x30]
sub esi, dword [esp + 0x34]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x461e57
test ebp, 0x40000000
je 0x461e57
lea ecx, [esp + 0x68]
mov byte [esp + 0x1a], 1
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x461e6d
push 0
lea eax, [esp + 0x6c]
mov byte [esp + 0x1e], 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x68]
sub eax, ebp
sub ecx, dword [esp + 0x6c]
cmp byte [edi + 0xbb], 0
je 0x461ead
cmp byte [esp + 0x1a], 0
jne 0x461ead
cmp dword [esp + 0x44], 0x80000000
jne 0x461e9e
cmp ebx, eax
cmovg ebx, eax
cmp dword [esp + 0x40], 0x80000000
jne 0x461ead
cmp esi, ecx
cmovg esi, ecx
cmp dword [esp + 0x20], 0x80000001
jne 0x461ec4
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebp
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x28]
cmp ebp, 0x80000001
jne 0x461edf
sub ecx, esi
mov eax, ecx
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
add ebp, dword [esp + 0x6c]
lea eax, [esp + 0x78]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
sub eax, edx
cmp ebx, eax
jne 0x461f2a
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
sub eax, ecx
cmp esi, eax
jne 0x461f2a
mov eax, dword [esp + 0x20]
cmp eax, 0x80000000
je 0x461f1e
cmp eax, edx
jne 0x461f2a
cmp ebp, 0x80000000
je 0x461f72
cmp ebp, ecx
je 0x461f72
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x461f42
push 9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp ebp, 0x80000000
push esi
cmove ebp, dword [esp + 0x84]
cmp eax, 0x80000000
push ebx
cmove eax, dword [esp + 0x84]
push ebp
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xbb], 0
je 0x462050
lea eax, [esp + 0x58]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x88]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub ecx, dword [esp + 0x58]
sub edx, dword [esp + 0x5c]
mov esi, ecx
sub esi, dword [esp + 0x90]
mov ebx, edx
sub ebx, dword [esp + 0x94]
mov eax, dword [edi + 0xa8]
cmp eax, 0x80000001
jne 0x461fd5
mov dword [edi + 0xa8], ecx
jmp 0x461fe4
cmp eax, 0x80000000
je 0x461fe4
add eax, esi
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0xac]
cmp eax, 0x80000001
jne 0x461ff9
mov dword [edi + 0xac], edx
jmp 0x462008
cmp eax, 0x80000000
je 0x462008
add eax, ebx
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0xb0]
cmp eax, 0x80000001
jne 0x46201d
mov dword [edi + 0xb0], ecx
jmp 0x46202c
cmp eax, 0x80000000
je 0x46202c
add eax, esi
mov dword [edi + 0xb0], eax
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x462041
mov dword [edi + 0xb4], edx
jmp 0x462050
cmp eax, 0x80000000
je 0x462050
add eax, ebx
mov dword [edi + 0xb4], eax
cmp byte [esp + 0x1b], 0
mov esi, dword [esp + 0x1c]
jne 0x462065
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi - 1]
cmp eax, 8
ja case.0x462078.2
movzx eax, byte [eax + 0x46220c]
jmp dword [eax*4 + 0x462204]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x462078.2
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x4620a7
mov ecx, esi
call fcn.00475350
cmp byte [edi + 0xbc], 0
je case.0x462078.2
mov byte [edi + 0xbc], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
test ebx, ebx
je 0x46212e
cmp byte [edi + 0xb8], 0
je case.0x462078.2
mov ebp, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push ebx
call ebp
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x4620f9
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x4620f4
push ebx
call ebp
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jae case.0x462078.2
mov eax, dword [edi + 0x18]
lea ecx, [esi + esi*4]
cmp dword [eax + ecx*4], ebx
lea ebp, [eax + ecx*4]
jne case.0x462078.2
cmp esi, 0x2af8
je case.0x462078.2
test ebp, ebp
je case.0x462078.2
cmp byte [ebp + 4], 0x13
jne case.0x462078.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push ebp
mov ecx, edi
call fcn.00465530
jmp case.0x462078.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, 1
mov byte [edi + 0xbb], 0
or ecx, 0xffffffff
mov byte [edi + 0xbd], 0
call fcn.00401790
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8c
ret 8