Function at 0x46b370
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 0x46beb2
mov ecx, dword [ebp + 0xc]
mov byte [edi + 0xbd], 1
cmp word [ecx], 0
je 0x46b3a6
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], VariantInit
mov dword [esp + 0x28], VariantInit
mov dword [esp + 0x18], VariantInit
mov dword [esp + 0x14], VariantInit
mov byte [esp + 0x13], 0
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [edi + 4]
mov esi, eax
mov dword [esp + 0x80], esi
call dword [sym.imp.USER32.dll_IsIconic]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x46b3f7
mov esi, 9
mov dword [esp + 0x28], esi
jmp 0x46b409
xor edx, edx
test esi, esi
setne dl
lea edx, [edx*4 + 1]
mov dword [esp + 0x28], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], ecx
movzx eax, word [ecx]
test ax, ax
je 0x46b482
mov edx, eax
nop word [eax + eax]
movzx esi, dx
test esi, 0xffffff80
je 0x46b42f
xor edx, edx
jmp 0x46b43f
push 2
push esi
call fcn.0049bd84
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.0x46b458.10
movzx eax, byte [eax + 0x46bee4]
jmp dword [eax*4 + 0x46bec0]
add dword [esp + 8], 2
mov esi, dword [ebp + 8]
cmp dword [esp + 8], esi
je 0x46b888
mov ecx, dword [esp + 8]
mov dword [ebp + 8], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x46b420
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x23], 0
test eax, eax
je 0x46b4b7
cmp eax, 9
je 0x46b4a9
cmp eax, 4
jne 0x46b4c6
cmp dword [esp + 0x7c], 0
jne 0x46b4b7
cmp dword [esp + 0x3c], 0
je 0x46b4c6
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x23], 1
cmp byte [edi + 0xbb], 0
je 0x46b504
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0x10], ecx
jbe 0x46b504
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x46b4f7
push eax
mov ecx, edi
call fcn.00470100
mov ecx, dword [esp + 0x1c]
inc ecx
add esi, 0x14
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edi + 0x10]
jb 0x46b4e0
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 0x46b9db
cmp byte [esp + 0xf], 0
je 0x46b919
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0x10], ecx
jbe 0x46b8df
xor eax, eax
mov dword [esp + 8], eax
nop dword [eax]
mov esi, dword [edi + 0x18]
add esi, eax
cmp byte [esi + 4], 0x19
je 0x46b8a8
cmp byte [esi + 6], 0xff
je 0x46b576
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x46b8a0
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46b8a0
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 + 0x14]
cmp dword [esp + 0x58], edx
mov ecx, dword [esp + 0x10]
cmovg edx, dword [esp + 0x58]
cmp dword [esp + 0x5c], ecx
mov dword [esp + 0x14], edx
cmovg ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
jmp 0x46b8ae
push 8
push str.AutoSize
push ecx
call fcn.0049b726
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne case.0x46b817.73
add dword [esp + 8], 0x10
mov byte [esp + 0xf], 1
jmp case.0x46b817.73
push 6
push str.Center
push ecx
call fcn.0049b726
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne case.0x46b817.73
add dword [esp + 8], 0xc
mov dword [esp + 0x18], VariantInit
mov dword [esp + 0x24], VariantInit
jmp case.0x46b817.73
push 8
push str.Minimize
push ecx
call fcn.0049b726
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x46b65b
add dword [esp + 8], 0x10
mov dword [esp + 0x28], 6
jmp case.0x46b817.73
push 8
push str.Maximize
push esi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne case.0x46b817.73
add dword [esp + 8], 0x10
mov dword [esp + 0x28], 3
jmp case.0x46b817.73
push 2
push 0x4d36ac
push ecx
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x46b6ac
add dword [esp + 8], 4
mov esi, 8
mov dword [esp + 0x28], esi
jmp case.0x46b458.10
mov esi, dword [ebp + 8]
push 0xa
push str.NoActivate
push esi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne case.0x46b817.73
add dword [esp + 8], 0x14
mov dword [esp + 0x28], 4
jmp case.0x46b817.73
push 7
push str.Restore
push ecx
call fcn.0049b726
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne case.0x46b817.73
add dword [esp + 8], 0xe
mov dword [esp + 0x28], 9
jmp case.0x46b817.73
push 6
lea eax, [ecx + 2]
push str.Center
push eax
call fcn.0049b726
add esp, 0xc
test eax, eax
jne case.0x46b458.72
mov esi, dword [ebp + 8]
movzx eax, word [esi]
mov esi, eax
test eax, 0xffffff80
je 0x46b730
xor edx, edx
jmp 0x46b73d
push 2
push eax
call fcn.0049bd84
add esp, 8
mov edx, eax
mov eax, esi
and eax, 0xffdf
test edx, edx
movzx ecx, ax
mov eax, esi
cmove ecx, eax
cmp cx, 0x58
jne 0x46b766
add dword [esp + 8], 0xe
mov dword [esp + 0x18], VariantInit
jmp 0x46b471
add dword [esp + 8], 0xe
mov dword [esp + 0x24], VariantInit
jmp 0x46b471
mov esi, dword [ebp + 8]
push 4
push str.Hide
push esi
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x46b79d
add dword [esp + 8], 8
mov dword [esp + 0x28], eax
jmp 0x46b471
lea eax, [esp + 8]
add esi, 2
push eax
push esi
call fcn.004a1d6d
fstp qword [esp + 0x38]
cvttsd2si ecx, qword [esp + 0x38]
add esp, 8
cmp dword [esp + 8], esi
mov esi, dword [ebp + 8]
je 0x46b884
movzx edx, word [esi]
mov dword [esp + 0x38], edx
test edx, 0xffffff80
je 0x46b7de
mov dword [esp + 0x1c], 0
jmp 0x46b7f7
push 2
push edx
call fcn.0049bd84
cvttsd2si ecx, qword [esp + 0x38]
mov edx, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, edx
and eax, 0xffffffdf
cmp dword [esp + 0x1c], 0
cmove eax, edx
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x46b817.73
movzx eax, byte [eax + 0x46bf4c]
jmp dword [eax*4 + 0x46bf38]
mov dword [esp + 0x18], ecx
jmp case.0x46b817.73
mov dword [esp + 0x24], ecx
jmp case.0x46b817.73
cmp byte [edi + 0xc0], 0
je 0x46b851
push 0x60
push dword [0x4ddc8c]
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x14], eax
jmp case.0x46b817.73
mov dword [esp + 0x14], ecx
jmp case.0x46b817.73
cmp byte [edi + 0xc0], 0
je 0x46b87b
push 0x60
push dword [0x4ddc8c]
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x10], eax
jmp case.0x46b817.73
mov dword [esp + 0x10], ecx
jmp case.0x46b817.73
mov dword [esp + 8], esi
push esi
push str.Invalid_option.
mov ecx, 0x4ddca0
call fcn.004302e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
add dword [esp + 8], 0x14
inc eax
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 8]
jb 0x46b550
test edx, edx
jle 0x46b8d4
add edx, dword [edi + 0x78]
mov dword [esp + 0x14], edx
test ecx, ecx
jle 0x46b8df
add ecx, dword [edi + 0x7c]
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x46b9db
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46b9db
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 + 0x10], eax
jmp 0x46b9db
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp edx, 0x80000000
je 0x46b935
cmp ecx, 0x80000000
jne 0x46b9db
cmp byte [edi + 0xbb], 0
je 0x46b9a1
cmp edx, 0x80000000
jne 0x46b953
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x14], eax
cmp ecx, 0x80000000
jne 0x46b9db
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x10], esi
test eax, eax
je 0x46b9db
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46b9db
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 + 0x10], esi
jmp 0x46b9db
lea eax, [esp + 0x50]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x14], 0x80000000
jne 0x46b9c5
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0x80000000
jne 0x46b9db
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
cmp byte [edi + 0xbb], 0
je 0x46ba4b
cmp byte [edi + 0xb8], 0
je 0x46ba26
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0x10], ecx
jbe 0x46ba26
xor esi, esi
nop word [eax + eax]
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x46ba19
push 0
push eax
mov ecx, edi
call fcn.0046f990
mov ecx, dword [esp + 0x1c]
inc ecx
add esi, 0x14
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edi + 0x10]
jb 0x46ba00
mov eax, dword [esp + 0x18]
mov ecx, SysReAllocString
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x24], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x2f], 0
mov dword [esp + 0x3c], eax
je 0x46bd93
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
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 0x46bae0
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 0x46baef
push 2
call ecx
add dword [esp + 0x48], eax
test esi, esi
je 0x46bb22
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]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x46bb5d
test dword [esp + 0x10], 0x40000000
je 0x46bb5d
lea ecx, [esp + 0x80]
mov byte [esp + 0xf], 1
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x46bb76
push 0
lea eax, [esp + 0x84]
mov byte [esp + 0x13], 0
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 0x46bbc8
cmp byte [esp + 0xf], 0
jne 0x46bbc8
cmp dword [esp + 0x38], 0x80000000
jne 0x46bbb9
mov eax, dword [esp + 0x14]
cmp eax, edx
cmovg eax, edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x30], 0x80000000
jne 0x46bbc8
cmp esi, ecx
cmovg esi, ecx
cmp dword [esp + 0x18], 0x80000001
jne 0x46bbe8
sub edx, dword [esp + 0x14]
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], 0x80000001
jne 0x46bc06
sub ecx, esi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x84]
mov dword [esp + 0x24], 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 + 0x14], eax
jne 0x46bc5f
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
sub eax, ecx
cmp esi, eax
jne 0x46bc5f
mov eax, dword [esp + 0x18]
cmp eax, 0x80000000
je 0x46bc50
cmp eax, edx
jne 0x46bc5f
mov eax, dword [esp + 0x24]
cmp eax, 0x80000000
je 0x46bcad
cmp eax, ecx
je 0x46bcad
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x46bc77
push 9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
push esi
push dword [esp + 0x1c]
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 0x46bd93
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 + 0x1c], eax
mov eax, dword [edi + 0xa8]
cmp eax, 0x80000001
jne 0x46bd14
mov dword [edi + 0xa8], ecx
jmp 0x46bd23
cmp eax, 0x80000000
je 0x46bd23
add eax, esi
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0xac]
cmp eax, 0x80000001
jne 0x46bd38
mov dword [edi + 0xac], edx
jmp 0x46bd49
cmp eax, 0x80000000
je 0x46bd49
add eax, dword [esp + 0x1c]
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0xb0]
cmp eax, 0x80000001
jne 0x46bd5e
mov dword [edi + 0xb0], ecx
jmp 0x46bd6d
cmp eax, 0x80000000
je 0x46bd6d
add eax, esi
mov dword [edi + 0xb0], eax
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x46bd82
mov dword [edi + 0xb4], edx
jmp 0x46bd93
cmp eax, 0x80000000
je 0x46bd93
add eax, dword [esp + 0x1c]
mov dword [edi + 0xb4], eax
cmp byte [esp + 0x23], 0
mov esi, dword [esp + 0x28]
jne 0x46bda8
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi - 1]
cmp eax, 8
ja case.0x46bdbb.2
movzx eax, byte [eax + 0x46bf68]
jmp dword [eax*4 + 0x46bf60]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x46bdbb.2
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x46bdea
mov ecx, esi
call fcn.004809d0
cmp byte [edi + 0xbc], 0
je case.0x46bdbb.2
mov byte [edi + 0xbc], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46be8e
cmp byte [edi + 0xb8], 0
je case.0x46bdbb.2
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x46be4a
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x46be4e
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.0x46bdbb.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.0x46bdbb.2
cmp esi, 0x2af8
je case.0x46bdbb.2
test eax, eax
je case.0x46bdbb.2
cmp byte [eax + 4], 0x13
jne case.0x46bdbb.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [esp + 0x34]
mov ecx, edi
call fcn.0046f990
jmp case.0x46bdbb.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.004015d0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8