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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa4]
mov eax, dword [edi + 4]
mov esi, edx
test eax, eax
je 0x46f9d2
mov byte [edi + 0xbd], 1
cmp word [ecx], 0
je 0x46efc3
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, connect
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
push eax
mov byte [esp + 0x22], 0
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, dword [edi + 4]
mov ebx, eax
push ecx
mov dword [esp + 0x68], ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov dword [esp + 0x40], eax
test eax, eax
je 0x46f00a
mov ebx, 9
mov dword [esp + 0x20], ebx
jmp 0x46f01e
xor edx, edx
test ebx, ebx
setne dl
lea edx, [edx*4 + 1]
mov ebx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], esi
cmp word [esi], 0
mov ebp, esi
je 0x46f2b8
mov edi, edi
movzx esi, word [ebp]
test esi, 0xffffff80
jne 0x46f04e
push 2
push esi
call fcn.0049accc
add esp, 8
test eax, eax
je 0x46f04e
and esi, 0xffffffdf
movzx eax, si
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x46f064.10
movzx eax, byte [eax + 0x46fa08]
jmp dword [eax*4 + 0x46f9e4]
add dword [esp + 0x10], 2
jmp case.0x46f064.10
push 8
push str.AutoSize
push ebp
call fcn.004994ba
add esp, 0xc
test eax, eax
jne case.0x46f064.10
add dword [esp + 0x10], 0x10
mov byte [esp + 0x1e], 1
jmp case.0x46f064.10
push 6
push str.Center
push ebp
call fcn.004994ba
add esp, 0xc
test eax, eax
jne case.0x46f064.10
add dword [esp + 0x10], 0xc
mov eax, connect
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
jmp case.0x46f064.10
push 8
push str.Minimize
push ebp
call fcn.004994ba
add esp, 0xc
test eax, eax
jne 0x46f0f1
add dword [esp + 0x10], 0x10
mov dword [esp + 0x20], 6
jmp case.0x46f064.10
push 8
push str.Maximize
push ebp
call fcn.004994ba
add esp, 0xc
test eax, eax
jne case.0x46f064.10
add dword [esp + 0x10], 0x10
mov dword [esp + 0x20], 3
jmp case.0x46f064.10
push 2
push 0x4cddc4
push ebp
call fcn.004994ba
add esp, 0xc
test eax, eax
jne 0x46f141
add dword [esp + 0x10], 4
mov dword [esp + 0x20], 8
jmp case.0x46f064.10
push 0xa
push str.NoActivate
push ebp
call fcn.004994ba
add esp, 0xc
test eax, eax
jne case.0x46f064.10
add dword [esp + 0x10], 0x14
mov dword [esp + 0x20], 4
jmp case.0x46f064.10
push 7
push str.Restore
push ebp
call fcn.004994ba
add esp, 0xc
test eax, eax
jne case.0x46f064.10
add dword [esp + 0x10], 0xe
mov dword [esp + 0x20], 9
jmp case.0x46f064.10
push 6
lea ecx, [ebp + 2]
push str.Center
push ecx
call fcn.004994ba
add esp, 0xc
test eax, eax
jne case.0x46f064.72
mov ax, word [ebp]
call fcn.0040eba0
cmp ax, 0x58
jne 0x46f1cd
add dword [esp + 0x10], 0xe
mov dword [esp + 0x2c], connect
jmp 0x46f2a9
add dword [esp + 0x10], 0xe
mov dword [esp + 0x28], connect
jmp 0x46f2a9
push 4
push str.Hide
push ebp
call fcn.004994ba
add esp, 0xc
test eax, eax
jne 0x46f203
add dword [esp + 0x10], 8
xor ebx, ebx
mov dword [esp + 0x20], ebx
jmp 0x46f2a9
lea edx, [esp + 0x10]
push edx
lea ebx, [ebp + 2]
push ebx
call fcn.0049c2d9
add esp, 8
call fcn.004a9cd0
mov esi, eax
cmp dword [esp + 0x10], ebx
je 0x46f43a
mov ax, word [ebp]
call fcn.0040eba0
movzx eax, ax
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x46f064.10
movzx eax, byte [eax + 0x46fa70]
jmp dword [eax*4 + 0x46fa5c]
mov dword [esp + 0x2c], esi
jmp case.0x46f064.10
mov dword [esp + 0x28], esi
jmp case.0x46f064.10
cmp byte [edi + 0xc0], 0
je 0x46f272
mov ecx, dword [0x4d96a0]
push 0x60
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x18], eax
jmp case.0x46f064.10
mov dword [esp + 0x18], esi
jmp case.0x46f064.10
cmp byte [edi + 0xc0], 0
je 0x46f297
mov edx, dword [0x4d96a0]
push 0x60
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x14], eax
jmp case.0x46f064.10
mov dword [esp + 0x14], esi
cmp dword [esp + 0x10], ebp
je 0x46f43e
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
cmp word [ebp], 0
jne 0x46f030
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ecx
mov byte [esp + 0x1f], 0
test ebx, ebx
je 0x46f2e9
cmp ebx, 9
je 0x46f2db
cmp ebx, 4
jne 0x46f2f9
cmp dword [esp + 0x64], 0
jne 0x46f2e9
cmp dword [esp + 0x40], 0
je 0x46f2f9
mov edx, dword [edi + 4]
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x1f], 1
cmp byte [edi + 0xbb], 0
je 0x46f32b
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x46f32b
xor esi, esi
jmp 0x46f310
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x46f322
push eax
push edi
call fcn.004735b0
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x46f310
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
sete al
mov byte [esp + 0x27], al
test al, al
je 0x46f517
cmp byte [esp + 0x1e], 0
je 0x46f45b
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
cmp dword [edi + 0x10], ebp
jbe 0x46f3fb
xor ebx, ebx
mov esi, dword [edi + 0x18]
add esi, ebx
cmp byte [esi + 4], 0x19
je 0x46f3d4
cmp byte [esi + 6], 0xff
je 0x46f385
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x46f3d4
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46f3d4
mov edx, dword [esi]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 4]
push 2
lea eax, [esp + 0x48]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x18]
jle 0x46f3c6
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x14]
jle 0x46f3d4
mov dword [esp + 0x14], eax
inc ebp
add ebx, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x46f366
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x46f3ec
add eax, dword [edi + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x46f3fb
add eax, dword [edi + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x46f517
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46f517
mov eax, dword [edi + 8]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
add dword [esp + 0x14], ecx
jmp 0x46f517
mov dword [esp + 0x10], ebp
push ebp
push str.Invalid_option.
mov ecx, 0x4d96d0
call fcn.0043a0d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
cmp esi, 0x80000000
je 0x46f477
cmp ebx, 0x80000000
jne 0x46f517
cmp byte [edi + 0xbb], 0
je 0x46f4e0
cmp esi, 0x80000000
jne 0x46f495
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x18], eax
cmp ebx, 0x80000000
jne 0x46f517
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x14], esi
test eax, eax
je 0x46f517
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46f517
mov eax, dword [edi + 8]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
add esi, ecx
mov dword [esp + 0x14], esi
jmp 0x46f517
mov eax, dword [edi + 4]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp esi, 0x80000000
jne 0x46f503
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
cmp ebx, 0x80000000
jne 0x46f517
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
cmp byte [edi + 0xbb], 0
je 0x46f571
cmp byte [edi + 0xb8], 0
je 0x46f550
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x46f550
xor esi, esi
mov ecx, dword [edi + 0x18]
cmp byte [esi + ecx + 4], 0x13
lea eax, [esi + ecx]
jne 0x46f547
push 0
push eax
call fcn.00472e30
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x46f532
mov eax, connect
cmp dword [esp + 0x2c], eax
jne 0x46f563
mov dword [esp + 0x2c], connect
cmp dword [esp + 0x28], eax
jne 0x46f571
mov dword [esp + 0x28], connect
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x27], 0
mov dword [esp + 0x40], eax
je 0x46f8b3
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
push 0xfffffffffffffff0
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call ebx
mov ebp, eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [edi + 4]
neg eax
push 0xffffffffffffffec
sbb esi, esi
push ecx
neg esi
call ebx
push eax
push esi
push ebp
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
test ebp, 0x100000
je 0x46f5f8
push 3
call ebx
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x3c], ecx
jmp 0x46f5fc
mov ecx, dword [esp + 0x3c]
test ebp, 0x200000
je 0x46f618
push 2
call ebx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add edx, eax
mov dword [esp + 0x38], edx
jmp 0x46f61c
mov edx, dword [esp + 0x38]
test esi, esi
je 0x46f666
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x54]
push ecx
push 0
mov dword [esp + 0x64], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
push 0x83
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x3c]
add ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
sub edx, dword [esp + 0x30]
sub ecx, dword [esp + 0x34]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x46f695
test ebp, 0x40000000
je 0x46f695
lea ecx, [esp + 0x70]
push ecx
push eax
mov bl, 1
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x46f6a8
push 0
lea edx, [esp + 0x74]
push edx
push 0
push 0x30
xor bl, bl
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x74]
sub eax, esi
cmp byte [edi + 0xbb], 0
je 0x46f6ec
test bl, bl
jne 0x46f6ec
mov edx, connect
cmp dword [esp + 0x6c], edx
jne 0x46f6dc
cmp dword [esp + 0x18], eax
jle 0x46f6dc
mov dword [esp + 0x18], eax
cmp dword [esp + 0x68], edx
jne 0x46f6ec
cmp dword [esp + 0x14], ecx
jle 0x46f6ec
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x2c]
cmp ebp, 0x80000001
jne 0x46f705
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
add ebp, esi
mov esi, dword [esp + 0x28]
cmp esi, 0x80000001
jne 0x46f722
mov eax, ecx
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [esp + 0x74]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x80]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x18]
sub edx, eax
cmp ebx, edx
jne 0x46f77a
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
sub edx, ecx
cmp dword [esp + 0x14], edx
jne 0x46f77a
cmp ebp, 0x80000000
je 0x46f76e
cmp ebp, eax
jne 0x46f77a
cmp esi, 0x80000000
je 0x46f7cd
cmp esi, ecx
je 0x46f7cd
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x46f794
mov ecx, dword [edi + 4]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x84]
cmp esi, 0x80000000
je 0x46f7a5
mov ecx, esi
mov eax, dword [esp + 0x80]
cmp ebp, 0x80000000
je 0x46f7b6
mov eax, ebp
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x18]
push edx
push ebx
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xbb], 0
je 0x46f8b3
mov edx, dword [edi + 4]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x90]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
sub eax, dword [esp + 0x54]
sub ecx, dword [esp + 0x58]
mov esi, dword [edi + 0xa8]
mov edx, eax
sub edx, dword [esp + 0x98]
mov ebp, ecx
sub ebp, dword [esp + 0x9c]
cmp esi, 0x80000001
jne 0x46f833
mov dword [edi + 0xa8], eax
jmp 0x46f843
cmp esi, 0x80000000
je 0x46f843
add esi, edx
mov dword [edi + 0xa8], esi
mov esi, dword [edi + 0xac]
cmp esi, 0x80000001
jne 0x46f859
mov dword [edi + 0xac], ecx
jmp 0x46f869
cmp esi, 0x80000000
je 0x46f869
add esi, ebp
mov dword [edi + 0xac], esi
mov esi, dword [edi + 0xb0]
cmp esi, 0x80000001
jne 0x46f87f
mov dword [edi + 0xb0], eax
jmp 0x46f88f
cmp esi, 0x80000000
je 0x46f88f
add edx, esi
mov dword [edi + 0xb0], edx
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x46f8a4
mov dword [edi + 0xb4], ecx
jmp 0x46f8b3
cmp eax, 0x80000000
je 0x46f8b3
add ebp, eax
mov dword [edi + 0xb4], ebp
cmp byte [esp + 0x1f], 0
mov ebp, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x20]
jne 0x46f8e9
cmp ebx, 6
jne 0x46f8de
mov esi, dword [edi + 4]
call ebp
cmp eax, esi
jne 0x46f8de
push 0
push 0
push ebx
push esi
call dword [sym.imp.USER32.dll_DefDlgProcW]
mov edx, dword [edi + 4]
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx - 1]
cmp eax, 8
ja case.0x46f8fc.2
movzx eax, byte [eax + 0x46fa8c]
jmp dword [eax*4 + 0x46fa84]
mov ecx, dword [edi + 4]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x46f8fc.2
mov esi, dword [edi + 4]
call ebp
cmp esi, eax
je 0x46f928
mov eax, esi
call fcn.004832f0
cmp byte [edi + 0xbc], 0
je case.0x46f8fc.2
mov byte [edi + 0xbc], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, eax
test ebp, ebp
je 0x46f9ae
cmp byte [edi + 0xb8], 0
je case.0x46f8fc.2
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push ebp
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x46f97a
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
test ebp, ebp
je 0x46f975
push ebp
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jae case.0x46f8fc.2
mov eax, dword [edi + 0x18]
lea edx, [esi + esi*4]
cmp dword [eax + edx*4], ebp
lea ebx, [eax + edx*4]
jne case.0x46f8fc.2
cmp esi, 0x2af8
je case.0x46f8fc.2
test ebx, ebx
je case.0x46f8fc.2
cmp byte [ebx + 4], 0x13
jne case.0x46f8fc.2
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push ebx
call fcn.00472e30
jmp case.0x46f8fc.2
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xbb], 0
mov byte [edi + 0xbd], 0
call fcn.00401460
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x90
ret 4