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

Disassembly:
sub esp, 0x78
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], edi
mov dword [esp + 0x58], eax
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x4c1307
mov ebx, dword [edi + 0x84]
mov eax, ebx
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x15
push 0xfffffffffffffff0
and eax, 0xffffff01
push ecx
mov dword [esp + 0x34], eax
call esi
shr ebx, 0x14
mov dword [edi + 0x84], eax
test bl, 1
je 0x4c12db
test eax, 0x100000
jne 0x4c12db
or eax, 0x100000
mov dword [edi + 0x84], eax
cmp byte [esp + 0x2c], 0
je 0x4c12fa
mov eax, dword [edi + 0x84]
test eax, 0x200000
jne 0x4c12fa
or eax, 0x200000
mov dword [edi + 0x84], eax
push 0xffffffffffffffec
push dword [edi + 0x38]
call esi
mov dword [edi + 0x88], eax
mov edx, dword [sym.imp.USER32.dll_SetWindowPos]
movzx eax, word [ebp]
mov esi, dword [edi + 0x84]
mov ecx, dword [edi + 0x88]
mov dword [esp + 0x2c], edx
mov edx, dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], edx
test ax, ax
je 0x4c1de6
mov ecx, eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.USER32.dll_IsWindow]
mov dword [esp + 0x60], eax
mov eax, dword [sym.imp.USER32.dll_SetParent]
mov dword [esp + 0x48], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov dword [esp + 0x4c], eax
mov eax, dword [sym.imp.USER32.dll_ScrollWindow]
mov dword [esp + 0x30], eax
mov eax, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x50], eax
mov eax, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [esp + 0x18], eax
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x28], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x44], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_islower]
mov dword [esp + 0x5c], eax
cmp cx, 0x2d
jne 0x4c13a2
xor bh, bh
jmp 0x4c13ad
movzx eax, cx
mov bh, 1
cmp cx, 0x2b
jne 0x4c13b4
movzx eax, word [ebp + 2]
add ebp, 2
test ax, ax
je 0x4c1dde
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x4c140c
movzx esi, ax
nop dword [eax + eax]
mov ecx, 0x4f94c4
mov edx, 0x20
nop word [eax + eax]
cmp si, dx
je 0x4c14ab
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4c13e0
mov eax, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x1c], eax
movzx eax, word [eax]
mov esi, eax
test ax, ax
jne 0x4c13d0
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c1411
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2]
add eax, ebp
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x4c1dbd
movzx ecx, word [eax]
mov esi, dword [esp + 0x34]
push 5
mov dword [esp + 0x14], ecx
xor ecx, ecx
push str.Owner
push ebp
mov word [eax], cx
call esi
add esp, 0xc
test eax, eax
sete bl
test eax, eax
je 0x4c1c25
push 6
push str.Parent
push ebp
call esi
add esp, 0xc
test eax, eax
je 0x4c1c25
mov esi, dword [esp + 0x4c]
push str.AlwaysOnTop
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c14d7
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x4c14b9
push 0x13
push eax
push eax
push eax
push eax
movzx eax, bh
sub eax, 2
push eax
push ecx
call dword [esp + 0x48]
test bh, bh
je 0x4c14b4
or dword [esp + 0x20], 8
jmp 0x4c14b9
mov eax, dword [esp + 0x1c]
jmp 0x4c142d
and dword [esp + 0x20], 0xfffffff7
mov ecx, dword [edi + 0x88]
mov eax, ecx
and eax, 0xfffffff7
or ecx, 8
test bh, bh
cmove ecx, eax
mov dword [edi + 0x88], ecx
jmp 0x4c1db2
push str.Border
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1509
mov ecx, dword [edi + 0x84]
mov eax, ecx
and eax, 0xff7fffff
or ecx, 0x800000
test bh, bh
cmove ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
push str.Scroll
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1571
test bh, bh
je 0x4c1532
mov eax, dword [edi + 0x84]
or eax, 0x300000
mov dword [edi + 0x84], eax
jmp 0x4c1db2
mov edx, dword [edi + 0xf4]
test edx, edx
je 0x4c155b
mov ecx, dword [edi + 0xf0]
push 0
push 0
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 8]
push eax
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 8]
push eax
push dword [edi + 0x38]
call dword [esp + 0x44]
mov eax, dword [edi + 0x84]
and eax, 0xffcfffff
mov dword [edi + 0x84], eax
jmp 0x4c1db2
push str.HScroll
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c15cc
mov eax, dword [edi + 0x84]
test bh, bh
je 0x4c159a
or eax, 0x100000
mov dword [edi + 0x84], eax
jmp 0x4c1db2
mov ecx, dword [edi + 0xf4]
and eax, 0xffefffff
mov dword [edi + 0x84], eax
test ecx, ecx
je 0x4c1db2
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 8]
push 0
push 0
push 0
push eax
push dword [edi + 0x38]
call dword [esp + 0x44]
jmp 0x4c1db2
push str.VScroll
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c162c
mov eax, dword [edi + 0x84]
test bh, bh
je 0x4c15f5
or eax, 0x200000
mov dword [edi + 0x84], eax
jmp 0x4c1db2
and eax, 0xffdfffff
cmp dword [edi + 0xf4], 0
mov dword [edi + 0x84], eax
je 0x4c1db2
mov ecx, dword [edi + 0xf0]
push 0
push 0
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 8]
push eax
push 0
push dword [edi + 0x38]
call dword [esp + 0x44]
jmp 0x4c1db2
push str.Caption
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c165e
mov ecx, dword [edi + 0x84]
mov eax, ecx
and eax, 0xff3fffff
or ecx, 0xc00000
test bh, bh
cmove ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
push str.Disabled
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c16b9
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x4c1696
movzx eax, bh
xor eax, 1
push eax
push ecx
call dword [esp + 0x58]
test bh, bh
je 0x4c168e
or dword [esp + 0x24], 0x8000000
jmp 0x4c1696
and dword [esp + 0x24], 0xf7ffffff
mov ecx, dword [edi + 0x84]
mov eax, ecx
and eax, 0xf7ffffff
or ecx, 0x8000000
test bh, bh
cmove ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
push str.LastFound
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c16d4
mov eax, dword [esp + 0x54]
mov byte [eax], 1
jmp 0x4c1db2
push str.MaximizeBox
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1706
mov ecx, dword [edi + 0x84]
mov eax, ecx
and eax, 0xfffeffff
or ecx, 0x90000
test bh, bh
cmove ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
push str.MinimizeBox
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1738
mov ecx, dword [edi + 0x84]
mov eax, ecx
and eax, 0xfffdffff
or ecx, 0xa0000
test bh, bh
cmove ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
push 7
push str.MinSize
push ebp
call dword [esp + 0x40]
add esp, 0xc
test eax, eax
jne 0x4c18bd
add ebp, 0xe
test bh, bh
je 0x4c18a4
cmp word [ebp], ax
je 0x4c1855
lea eax, [esp + 0x38]
mov ecx, edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004bea40
movzx eax, word [ebp]
mov edi, ebp
test ax, ax
je 0x4c17b1
mov esi, eax
mov ecx, 0x505990
mov edx, 0x58
nop dword [eax]
cmp si, dx
je 0x4c1803
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4c1790
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4c1782
xor edi, edi
mov esi, dword [esp + 0x18]
cmp edi, ebp
je 0x4c1dae
push ebp
call esi
mov edi, dword [esp + 0x18]
add esp, 4
mov edx, eax
cmp byte [edi + 0xea], 0
je 0x4c17f2
mov ecx, dword fs:[0x2c]
mov eax, dword [0x62271c]
push 0x60
mov ecx, dword [ecx + eax*4]
push dword [ecx + 0x680]
push edx
call dword [esp + 0x34]
mov edx, eax
mov eax, dword [esp + 0x3c]
add eax, edx
mov dword [edi + 0xd0], eax
jmp 0x4c1db2
cmp word [edi + 2], 0
lea eax, [edi + 2]
je 0x4c17b3
mov esi, dword [esp + 0x18]
push eax
call esi
mov ebx, dword [esp + 0x18]
add esp, 4
mov edx, eax
cmp byte [ebx + 0xea], 0
je 0x4c1844
mov ecx, dword fs:[0x2c]
mov eax, dword [0x62271c]
push 0x60
mov ecx, dword [ecx + eax*4]
push dword [ecx + 0x680]
push edx
call dword [esp + 0x34]
mov edx, eax
mov eax, dword [esp + 0x38]
add eax, edx
mov dword [ebx + 0xd4], eax
jmp 0x4c17b7
cmp byte [edi + 0xe5], 0
je 0x4c1877
mov dword [edi + 0xd0], connect
mov dword [edi + 0xd4], connect
jmp 0x4c1db2
lea eax, [esp + 0x64]
push eax
push dword [edi + 0x38]
call dword [esp + 0x4c]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov dword [edi + 0xd0], eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x68]
mov dword [edi + 0xd4], eax
jmp 0x4c1db2
mov dword [edi + 0xd0], connect
mov dword [edi + 0xd4], connect
jmp 0x4c1db2
push 7
push str.MaxSize
push ebp
call dword [esp + 0x40]
add esp, 0xc
test eax, eax
jne 0x4c1a50
add ebp, 0xe
test bh, bh
je 0x4c1a37
cmp word [ebp], ax
je 0x4c19e5
lea eax, [esp + 0x38]
mov ecx, edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004bea40
movzx eax, word [ebp]
mov edi, ebp
test ax, ax
je 0x4c1941
mov esi, eax
nop word [eax + eax]
mov ecx, 0x505990
mov edx, 0x58
nop word [eax + eax]
cmp si, dx
je 0x4c1993
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4c1920
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4c1910
xor edi, edi
mov esi, dword [esp + 0x18]
cmp edi, ebp
je 0x4c1dae
push ebp
call esi
mov edi, dword [esp + 0x18]
add esp, 4
mov edx, eax
cmp byte [edi + 0xea], 0
je 0x4c1982
mov ecx, dword fs:[0x2c]
mov eax, dword [0x62271c]
push 0x60
mov ecx, dword [ecx + eax*4]
push dword [ecx + 0x680]
push edx
call dword [esp + 0x34]
mov edx, eax
mov eax, dword [esp + 0x3c]
add eax, edx
mov dword [edi + 0xd8], eax
jmp 0x4c1db2
cmp word [edi + 2], 0
lea eax, [edi + 2]
je 0x4c1943
mov esi, dword [esp + 0x18]
push eax
call esi
mov ebx, dword [esp + 0x18]
add esp, 4
mov edx, eax
cmp byte [ebx + 0xea], 0
je 0x4c19d4
mov ecx, dword fs:[0x2c]
mov eax, dword [0x62271c]
push 0x60
mov ecx, dword [ecx + eax*4]
push dword [ecx + 0x680]
push edx
call dword [esp + 0x34]
mov edx, eax
mov eax, dword [esp + 0x38]
add eax, edx
mov dword [ebx + 0xdc], eax
jmp 0x4c1947
cmp byte [edi + 0xe5], 0
je 0x4c1a07
mov dword [edi + 0xd8], connect
mov dword [edi + 0xdc], connect
jmp 0x4c1db2
lea eax, [esp + 0x74]
push eax
push dword [edi + 0x38]
call dword [esp + 0x4c]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
mov dword [edi + 0xd8], eax
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
mov dword [edi + 0xdc], eax
jmp 0x4c1db2
mov dword [edi + 0xd8], connect
mov dword [edi + 0xdc], connect
jmp 0x4c1db2
push str.OwnDialogs
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1a71
mov ecx, dword [esp + 0x58]
movzx eax, bh
xor eax, 1
inc eax
mov dword [ecx], eax
jmp 0x4c1db2
push str.Resize
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1aa3
mov ecx, dword [edi + 0x84]
mov eax, ecx
and eax, 0xfffaffff
or ecx, 0x50000
test bh, bh
cmove ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
push str.SysMenu
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1ad5
mov ecx, dword [edi + 0x84]
mov eax, ecx
and eax, 0xfff7ffff
or ecx, 0x80000
test bh, bh
cmove ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
push str.Theme
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1aef
mov byte [edi + 0xe4], bh
jmp 0x4c1db2
push str.ToolWindow
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1b21
mov ecx, dword [edi + 0x88]
mov eax, ecx
and eax, 0xffffff7f
or ecx, 0x80
test bh, bh
cmove ecx, eax
mov dword [edi + 0x88], ecx
jmp 0x4c1db2
push str.DPIScale
push ebp
call esi
add esp, 8
test eax, eax
jne 0x4c1b3b
mov byte [edi + 0xea], bh
jmp 0x4c1db2
movzx esi, word [ebp]
test esi, 0xffffff80
jne 0x4c1b56
push esi
call dword [esp + 0x60]
add esp, 4
test eax, eax
je 0x4c1b56
and esi, 0xffffffdf
push 0
push 0
cmp si, 0x45
jne 0x4c1bab
push 0
add ebp, 2
push 0
push ebp
call fcn.004e47f0
add esp, 0x14
test eax, eax
je 0x4c1db2
push ebp
call fcn.004e6170
mov ecx, dword [edi + 0x88]
add esp, 4
mov esi, dword [esp + 0x10]
test bh, bh
je 0x4c1b9c
or ecx, eax
mov dword [edi + 0x88], ecx
jmp 0x4c1db6
not eax
and eax, ecx
mov dword [edi + 0x88], eax
jmp 0x4c1db6
push 1
push 0
push ebp
call fcn.004e47f0
add esp, 0x14
test eax, eax
je 0x4c1beb
push ebp
call fcn.004e6170
mov ecx, dword [edi + 0x84]
add esp, 4
test bh, bh
je 0x4c1bdc
or ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
not eax
and ecx, eax
mov dword [edi + 0x84], ecx
jmp 0x4c1db2
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
push 9
push ebp
push str.Invalid_option.
mov word [ecx], si
call fcn.0046fa80
add esp, 0xc
test eax, eax
jne 0x4c1db6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004ebadf
add esp, 0x78
ret 0xc
test bh, bh
jne 0x4c1c89
xor edi, edi
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [ebp + 0x44], edi
test bl, bl
je 0x4c1d73
mov edi, ebp
mov eax, dword [edi + 0x84]
test eax, 0x40000000
je 0x4c1c6f
and eax, 0x3fffffff
or eax, 0x80000000
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4c1db6
push 0
push eax
call dword [esp + 0x50]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4c1db6
push dword [edi + 0x44]
push 0xfffffffffffffff8
push eax
call dword [esp + 0x4c]
jmp 0x4c1db6
movzx eax, bl
xor eax, 1
lea esi, [eax*2 + 0xa]
add esi, ebp
cmp word [esi], 0
jne 0x4c1cdc
test bl, bl
je 0x4c1cdc
mov ecx, dword fs:[0x2c]
mov ebx, dword [0x62271c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x4c1cc7
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
mov esi, dword [esp + 0x10]
mov eax, dword [eax + 0x214]
mov dword [edi + 0x44], eax
jmp 0x4c1c40
xor edi, edi
push edi
push edi
push edi
push 1
push esi
call fcn.004e47f0
add esp, 0x14
cmp eax, 1
jne 0x4c1d18
push esi
call fcn.004e6170
add esp, 4
mov esi, eax
push esi
call dword [esp + 0x64]
test eax, eax
je 0x4c1d18
mov edi, esi
test esi, esi
je 0x4c1d18
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 0x38]
jne 0x4c1c2b
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov eax, dword [0x62271c]
mov word [ecx], si
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x2198], 0
jne 0x4c1d47
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [0x62271c]
push 0
push 0
push 9
mov eax, dword [ecx + eax*4]
push ebp
push str.Invalid_or_nonexistent_owner_or_parent_window.
mov ecx, dword [eax + 0x298]
call fcn.0046ce10
test eax, eax
je 0x4c1c0e
jmp 0x4c1c2f
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4c1d83
push edi
push eax
call dword [esp + 0x50]
mov edi, dword [ebp + 0x44]
mov eax, dword [ebp + 0x84]
and eax, 0x3fffffff
test edi, edi
mov edi, ebp
je 0x4c1da1
or eax, 0x40000000
mov dword [edi + 0x84], eax
jmp 0x4c1db6
or eax, 0x80000000
mov dword [edi + 0x84], eax
jmp 0x4c1db6
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov word [eax], si
mov ebp, eax
nop
movzx eax, word [ebp]
cmp eax, 0x20
je 0x4c1dce
cmp eax, 9
jne 0x4c1dd3
add ebp, 2
jmp 0x4c1dc0
mov ecx, eax
test ax, ax
jne 0x4c1398
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4c1e6d
cmp dword [edi + 0x84], esi
jne 0x4c1e01
cmp dword [edi + 0x88], ecx
je 0x4c1e6d
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c1e1d
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4c1e1d
mov bl, 1
jmp 0x4c1e1f
xor bl, bl
mov eax, dword [edi + 0x84]
mov ebp, dword [esp + 0x40]
cmp eax, esi
je 0x4c1e35
push eax
push 0xfffffffffffffff0
push dword [edi + 0x38]
call ebp
mov eax, dword [edi + 0x88]
cmp eax, dword [esp + 0x20]
je 0x4c1e49
push eax
push 0xffffffffffffffec
push dword [edi + 0x38]
call ebp
test bl, bl
je 0x4c1e6d
push 0x37
push 0
push 0
push 0
push 0
push 0
push dword [edi + 0x38]
call dword [esp + 0x48]
push 1
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x84]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x78
ret 0xc