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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x463cdc
mov ecx, dword [ebp + 0xc]
mov byte [edi + 0xbd], 1
cmp word [ecx], 0
je 0x463296
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], SysStringLen
mov dword [esp + 0x24], SysStringLen
mov dword [esp + 0x14], SysStringLen
mov dword [esp + 0x18], SysStringLen
mov byte [esp + 0x22], 0
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [edi + 4]
mov esi, eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_IsIconic]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4632e4
mov esi, 9
mov dword [esp + 0x24], esi
jmp 0x4632f6
xor edx, edx
test esi, esi
setne dl
lea edx, [edx*4 + 1]
mov dword [esp + 0x24], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
movzx eax, word [ecx]
test ax, ax
je 0x463372
mov edx, eax
nop word [eax + eax]
movzx esi, dx
test esi, 0xffffff80
je 0x46331f
xor edx, edx
jmp 0x46332f
push 2
push esi
call fcn.00491ac4
mov ecx, dword [ebp + 8]
add esp, 8
mov edx, eax
mov eax, esi
and eax, 0xffffffdf
test edx, edx
cmove eax, esi
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x463348.10
movzx eax, byte [eax + 0x463d10]
jmp dword [eax*4 + 0x463cec]
add dword [esp + 0xc], 2
mov esi, dword [ebp + 8]
cmp dword [esp + 0xc], esi
je 0x4636f7
mov ecx, dword [esp + 0xc]
mov dword [ebp + 8], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x463310
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1f], 0
test eax, eax
je 0x4633a7
cmp eax, 9
je 0x463399
cmp eax, 4
jne 0x4633b6
cmp dword [esp + 0x28], 0
jne 0x4633a7
cmp dword [esp + 0x3c], 0
je 0x4633b6
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x1f], 1
cmp byte [edi + 0xbb], 0
je 0x4633f4
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x10], ecx
jbe 0x4633f4
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x4633e7
push eax
mov ecx, edi
call fcn.00467a90
mov ecx, dword [esp + 0xc]
inc ecx
add esi, 0x14
mov dword [esp + 0xc], ecx
cmp ecx, dword [edi + 0x10]
jb 0x4633d0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
sete byte [esp + 0x2f]
test eax, eax
jne 0x463846
cmp byte [esp + 0x1e], 0
je 0x463788
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
cmp dword [edi + 0x10], ecx
jbe 0x46374e
xor eax, eax
mov dword [esp + 0xc], eax
nop dword [eax]
mov esi, dword [edi + 0x18]
add esi, eax
cmp byte [esi + 4], 0x19
je 0x463717
cmp byte [esi + 6], 0xff
je 0x463466
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x46370f
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46370f
lea eax, [esp + 0x50]
push eax
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
call esi
push 2
lea eax, [esp + 0x54]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x58], edx
mov ecx, dword [esp + 0x14]
cmovg edx, dword [esp + 0x58]
cmp dword [esp + 0x5c], ecx
mov dword [esp + 0x10], edx
cmovg ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], ecx
jmp 0x46371d
push 8
push str.AutoSize
push ecx
call fcn.00491336
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne case.0x4636a0.73
add dword [esp + 0xc], 0x10
mov byte [esp + 0x1e], 1
jmp case.0x4636a0.73
push 6
push str.Center
push ecx
call fcn.00491336
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne case.0x4636a0.73
add dword [esp + 0xc], 0xc
mov dword [esp + 0x18], SysStringLen
mov dword [esp + 0x20], SysStringLen
jmp case.0x4636a0.73
push 8
push str.Minimize
push ecx
call fcn.00491336
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x46354b
add dword [esp + 0xc], 0x10
mov dword [esp + 0x24], 6
jmp case.0x4636a0.73
push 8
push str.Maximize
push esi
call fcn.00491336
add esp, 0xc
test eax, eax
jne case.0x4636a0.73
add dword [esp + 0xc], 0x10
mov dword [esp + 0x24], 3
jmp case.0x4636a0.73
push 2
push 0x4c86f4
push ecx
call fcn.00491336
add esp, 0xc
test eax, eax
jne 0x46359c
add dword [esp + 0xc], 4
mov esi, 8
mov dword [esp + 0x24], esi
jmp case.0x463348.10
mov esi, dword [ebp + 8]
push 0xa
push str.NoActivate
push esi
call fcn.00491336
add esp, 0xc
test eax, eax
jne case.0x4636a0.73
add dword [esp + 0xc], 0x14
mov dword [esp + 0x24], 4
jmp case.0x4636a0.73
push 7
push str.Restore
push ecx
call fcn.00491336
add esp, 0xc
test eax, eax
jne case.0x463348.10
add dword [esp + 0xc], 0xe
mov dword [esp + 0x24], 9
jmp case.0x463348.10
push 6
lea eax, [ecx + 2]
push str.Center
push eax
call fcn.00491336
add esp, 0xc
test eax, eax
jne case.0x463348.72
mov esi, dword [ebp + 8]
mov cx, word [esi]
call fcn.0040ab40
cmp ax, 0x58
jne 0x46362d
add dword [esp + 0xc], 0xe
mov dword [esp + 0x18], SysStringLen
jmp 0x463361
add dword [esp + 0xc], 0xe
mov dword [esp + 0x20], SysStringLen
jmp 0x463361
mov esi, dword [ebp + 8]
push 4
push str.Hide
push esi
call fcn.00491336
add esp, 0xc
test eax, eax
jne 0x463664
add dword [esp + 0xc], 8
mov dword [esp + 0x24], eax
jmp 0x463361
lea eax, [esp + 0xc]
add esi, 2
push eax
push esi
call fcn.00497d48
add esp, 8
cmp dword [esp + 0xc], esi
mov esi, dword [ebp + 8]
fstp qword [esp + 0x30]
je 0x4636f3
mov cx, word [esi]
call fcn.0040ab40
movzx eax, ax
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x4636a0.73
movzx eax, byte [eax + 0x463d78]
jmp dword [eax*4 + 0x463d64]
cvttsd2si eax, qword [esp + 0x30]
mov dword [esp + 0x18], eax
jmp case.0x4636a0.73
cvttsd2si eax, qword [esp + 0x30]
mov dword [esp + 0x20], eax
jmp case.0x4636a0.73
cvttsd2si eax, qword [esp + 0x30]
mov ecx, edi
push eax
call fcn.0042f560
mov dword [esp + 0x10], eax
jmp case.0x4636a0.73
cvttsd2si eax, qword [esp + 0x30]
mov ecx, edi
push eax
call fcn.0042f560
mov dword [esp + 0x14], eax
jmp case.0x4636a0.73
mov dword [esp + 0xc], esi
push esi
push str.Invalid_option.
mov ecx, 0x4d3ee0
call fcn.0042d580
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
add dword [esp + 0xc], 0x14
inc eax
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc]
jb 0x463440
test edx, edx
jle 0x463743
add edx, dword [edi + 0x78]
mov dword [esp + 0x10], edx
test ecx, ecx
jle 0x46374e
add ecx, dword [edi + 0x7c]
mov dword [esp + 0x14], ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x463846
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x463846
lea eax, [esp + 0x50]
push eax
push dword [edi + 8]
call esi
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
add dword [esp + 0x14], eax
jmp 0x463846
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp edx, 0x80000000
je 0x4637a4
cmp ecx, 0x80000000
jne 0x463846
cmp byte [edi + 0xbb], 0
je 0x46380c
cmp edx, 0x80000000
jne 0x4637c2
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x10], eax
cmp ecx, 0x80000000
jne 0x463846
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x14], esi
test eax, eax
je 0x463846
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x463846
lea eax, [esp + 0x50]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
add esi, eax
mov dword [esp + 0x14], esi
jmp 0x463846
lea eax, [esp + 0x50]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x10], 0x80000000
jne 0x463830
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], 0x80000000
jne 0x463846
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
cmp byte [edi + 0xbb], 0
je 0x4638b0
cmp byte [edi + 0xb8], 0
je 0x46388b
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [edi + 0x10], ecx
jbe 0x46388b
xor esi, esi
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x46387e
push 0
push eax
mov ecx, edi
call fcn.00467330
mov ecx, dword [esp + 0x28]
inc ecx
add esi, 0x14
mov dword [esp + 0x28], ecx
cmp ecx, dword [edi + 0x10]
jb 0x463865
mov eax, dword [esp + 0x18]
mov ecx, SysReAllocString
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x20], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x2f], 0
mov dword [esp + 0x3c], eax
je 0x463bc5
mov eax, dword [esp + 0x10]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi + 4]
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
push 0xffffffffffffffec
push dword [edi + 4]
sbb esi, esi
neg esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0x10]
mov ecx, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, 0x100000
je 0x463945
push 3
call ecx
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, 0x200000
je 0x463954
push 2
call ecx
add dword [esp + 0x48], eax
test esi, esi
je 0x463987
movaps xmm0, xmmword [esp + 0x40]
lea eax, [esp + 0x60]
push eax
push 0
push 0x83
push dword [edi + 4]
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x7c], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x64]
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
sub esi, dword [esp + 0x44]
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x84]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
sub edx, dword [esp + 0x80]
sub ecx, dword [esp + 0x84]
cmp byte [edi + 0xbb], 0
je 0x4639fa
cmp dword [esp + 0x7c], 0x80000000
jne 0x4639eb
mov eax, dword [esp + 0x10]
cmp eax, edx
cmovg eax, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x30], 0x80000000
jne 0x4639fa
cmp esi, ecx
cmovg esi, ecx
cmp dword [esp + 0x18], 0x80000001
jne 0x463a1a
sub edx, dword [esp + 0x10]
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], 0x80000001
jne 0x463a38
sub ecx, esi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x84]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x90]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x90]
sub eax, edx
cmp dword [esp + 0x10], eax
jne 0x463a91
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
sub eax, ecx
cmp esi, eax
jne 0x463a91
mov eax, dword [esp + 0x18]
cmp eax, 0x80000000
je 0x463a82
cmp eax, edx
jne 0x463a91
mov eax, dword [esp + 0x20]
cmp eax, 0x80000000
je 0x463adf
cmp eax, ecx
je 0x463adf
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x463aa9
push 9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
cmp eax, 0x80000000
push esi
push dword [esp + 0x18]
cmove eax, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
cmove eax, dword [esp + 0xa0]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xbb], 0
je 0x463bc5
lea eax, [esp + 0x60]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0xa0]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, edx
sub ecx, dword [esp + 0x60]
sub eax, dword [esp + 0xac]
mov esi, ecx
sub esi, dword [esp + 0xa8]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xa8]
cmp eax, 0x80000001
jne 0x463b46
mov dword [edi + 0xa8], ecx
jmp 0x463b55
cmp eax, 0x80000000
je 0x463b55
add eax, esi
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0xac]
cmp eax, 0x80000001
jne 0x463b6a
mov dword [edi + 0xac], edx
jmp 0x463b7b
cmp eax, 0x80000000
je 0x463b7b
add eax, dword [esp + 0x28]
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0xb0]
cmp eax, 0x80000001
jne 0x463b90
mov dword [edi + 0xb0], ecx
jmp 0x463b9f
cmp eax, 0x80000000
je 0x463b9f
add eax, esi
mov dword [edi + 0xb0], eax
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x463bb4
mov dword [edi + 0xb4], edx
jmp 0x463bc5
cmp eax, 0x80000000
je 0x463bc5
add eax, dword [esp + 0x28]
mov dword [edi + 0xb4], eax
cmp byte [esp + 0x1f], 0
mov esi, dword [esp + 0x24]
jne 0x463bda
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi - 1]
cmp eax, 8
ja case.0x463bed.2
movzx eax, byte [eax + 0x463d94]
jmp dword [eax*4 + 0x463d8c]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x463bed.2
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x463c1c
mov ecx, esi
call fcn.00476860
cmp byte [edi + 0xbc], 0
je case.0x463bed.2
mov byte [edi + 0xbc], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x18], eax
test eax, eax
je 0x463cb8
cmp byte [edi + 0xb8], 0
je case.0x463bed.2
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x463c74
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x463c78
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov edx, dword [esp + 0x18]
cmp esi, dword [edi + 0x10]
jae case.0x463bed.2
mov eax, dword [edi + 0x18]
lea ecx, [esi + esi*4]
lea eax, [eax + ecx*4]
mov dword [esp + 0x30], eax
cmp dword [eax], edx
jne case.0x463bed.2
cmp esi, 0x2af8
je case.0x463bed.2
test eax, eax
je case.0x463bed.2
cmp byte [eax + 4], 0x13
jne case.0x463bed.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [esp + 0x34]
mov ecx, edi
call fcn.00467330
jmp case.0x463bed.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.00401e60
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8