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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
mov ebx, dword [esp + 0x94]
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4c2e07
mov esi, connect
mov byte [edi + 0xe7], 1
push eax
mov dword [esp + 0x30], connect
mov dword [esp + 0x2c], connect
mov dword [esp + 0x20], connect
mov dword [esp + 0x18], esi
mov byte [esp + 0x1f], 0
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [edi + 0x38]
mov ebp, eax
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x4c2093
mov dword [esp + 0x20], 9
jmp 0x4c20a5
xor edx, edx
test ebp, ebp
setne dl
lea edx, [edx*4 + 1]
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ebx
movzx eax, word [ebx]
test ax, ax
je 0x4c240f
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov ecx, eax
nop dword [eax]
movzx esi, cx
test esi, 0xffffff80
je 0x4c20cf
xor ecx, ecx
jmp 0x4c20db
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_islower]
add esp, 4
mov ecx, eax
mov eax, esi
and eax, 0xffffffdf
test ecx, ecx
cmove eax, esi
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x4c20f8.10
movzx eax, byte [eax + 0x4c2e48]
jmp dword [eax*4 + 0x4c2e24]
add dword [esp + 0x10], 2
jmp case.0x4c20f8.10
push 8
push str.AutoSize
push ebx
call ebp
add esp, 0xc
test eax, eax
jne case.0x4c20f8.10
add dword [esp + 0x10], 0x10
mov byte [esp + 0x1b], 1
jmp case.0x4c20f8.10
push 6
push str.Center
push ebx
call ebp
add esp, 0xc
test eax, eax
jne case.0x4c20f8.10
add dword [esp + 0x10], 0xc
mov dword [esp + 0x2c], connect
mov dword [esp + 0x28], connect
jmp case.0x4c20f8.10
push 8
push str.Minimize
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x4c217f
add dword [esp + 0x10], 0x10
mov dword [esp + 0x20], 6
jmp case.0x4c20f8.10
push 8
push str.Maximize
push ebx
call ebp
add esp, 0xc
test eax, eax
jne case.0x4c20f8.10
add dword [esp + 0x10], 0x10
mov dword [esp + 0x20], 3
jmp case.0x4c20f8.10
push 2
push 0x505ce0
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x4c21c9
add dword [esp + 0x10], 4
mov dword [esp + 0x20], 8
jmp case.0x4c20f8.10
push 0xa
push str.NoActivate
push ebx
call ebp
add esp, 0xc
test eax, eax
jne case.0x4c20f8.10
add dword [esp + 0x10], 0x14
mov dword [esp + 0x20], 4
jmp case.0x4c20f8.10
push 7
push str.Restore
push ebx
call ebp
add esp, 0xc
test eax, eax
jne case.0x4c20f8.10
add dword [esp + 0x10], 0xe
mov dword [esp + 0x20], 9
jmp case.0x4c20f8.10
push 6
lea eax, [ebx + 2]
push str.Center
push eax
call ebp
add esp, 0xc
test eax, eax
jne case.0x4c20f8.72
movzx eax, word [ebx]
mov esi, eax
test eax, 0xffffff80
je 0x4c223b
xor edx, edx
jmp 0x4c2248
push eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_islower]
call eax
add esp, 4
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 0x4c2271
add dword [esp + 0x10], 0xe
mov dword [esp + 0x2c], connect
jmp 0x4c23eb
add dword [esp + 0x10], 0xe
mov dword [esp + 0x28], connect
jmp 0x4c23eb
push 4
push str.Hide
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x4c22a2
add dword [esp + 0x10], 8
mov dword [esp + 0x20], eax
jmp 0x4c23eb
lea eax, [esp + 0x10]
push eax
lea esi, [ebx + 2]
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstod]
add esp, 8
fstp qword [esp + 0x48]
cvttsd2si ebp, qword [esp + 0x48]
cmp dword [esp + 0x10], esi
jne 0x4c22cd
mov dword [esp + 0x10], ebx
jmp 0x4c237f
movzx esi, word [ebx]
test esi, 0xffffff80
je 0x4c22dc
xor ecx, ecx
jmp 0x4c22e9
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_islower]
push esi
call eax
add esp, 4
mov ecx, eax
mov eax, esi
and eax, 0xffffffdf
test ecx, ecx
cmove eax, esi
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x4c20f8.10
movzx eax, byte [eax + 0x4c2eb0]
jmp dword [eax*4 + 0x4c2e9c]
mov dword [esp + 0x2c], ebp
jmp case.0x4c20f8.10
mov dword [esp + 0x28], ebp
jmp case.0x4c20f8.10
cmp byte [edi + 0xea], 0
je 0x4c2342
mov eax, dword fs:[0x2c]
mov ecx, dword [0x62271c]
push 0x60
mov eax, dword [eax + ecx*4]
push dword [eax + 0x680]
push ebp
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x1c], eax
jmp case.0x4c20f8.10
mov dword [esp + 0x1c], ebp
jmp case.0x4c20f8.10
cmp byte [edi + 0xea], 0
je 0x4c2375
mov eax, dword fs:[0x2c]
mov ecx, dword [0x62271c]
push 0x60
mov eax, dword [eax + ecx*4]
push dword [eax + 0x680]
push ebp
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x14], eax
jmp case.0x4c20f8.10
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x10], ebx
jne 0x4c23eb
push 9
push ebx
push str.Invalid_option.
call fcn.0046fa80
add esp, 0xc
test eax, eax
je 0x4c2e07
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4c2403
movzx eax, word [ebx]
test ax, ax
je 0x4c2403
mov esi, eax
nop dword [eax]
mov ecx, str.ACMNRXYWH
mov edx, 0x41
nop word [eax + eax]
cmp si, dx
je 0x4c23e3
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4c23c0
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x4c23b0
jmp 0x4c2403
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4c2403
mov ebx, dword [esp + 0x10]
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
jne 0x4c20c0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], esi
mov byte [esp + 0x27], 0
test eax, eax
je 0x4c243a
cmp eax, 9
je 0x4c2432
cmp eax, 4
jne 0x4c2449
test ebp, ebp
jne 0x4c243a
test ecx, ecx
je 0x4c2449
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x27], 1
cmp byte [edi + 0xe5], 0
je 0x4c247a
xor esi, esi
cmp dword [edi + 0x78], esi
jbe 0x4c247a
nop dword [eax]
mov eax, dword [edi + 0x48]
mov eax, dword [eax + esi*4]
cmp byte [eax + 0x4c], 0x13
jne 0x4c2474
push eax
mov ecx, edi
call fcn.004b7100
inc esi
cmp esi, dword [edi + 0x78]
jb 0x4c2460
cmp dword [edi + 0xf0], 0
jne 0x4c24ff
push 0x1c
call fcn.004ebb43
push 0x1c
mov dword [edi + 0xf4], eax
call fcn.004ebb43
mov dword [edi + 0xf0], eax
xorps xmm0, xmm0
mov eax, dword [edi + 0xf4]
add esp, 8
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov eax, dword [edi + 0xf0]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov eax, dword [edi + 0xf0]
mov dword [eax], 0x1c
mov eax, dword [edi + 0xf4]
mov dword [eax], 0x1c
mov eax, dword [edi + 0xf0]
mov dword [eax + 4], 3
mov eax, dword [edi + 0xf4]
mov dword [eax + 4], 3
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
sete byte [esp + 0x37]
test eax, eax
jne 0x4c2746
cmp byte [esp + 0x1b], 0
je 0x4c263f
xor edx, edx
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x14], edx
cmp dword [edi + 0x78], edx
jbe 0x4c2607
mov ebp, dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [edi + 0x48]
mov esi, dword [eax + ebx*4]
cmp byte [esi + 0x4c], 0x19
je 0x4c25d7
cmp byte [esi + 0x4e], 0xff
je 0x4c2579
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, dword [edi + 0x38]
jne 0x4c25d3
push 0xfffffffffffffff0
push dword [esi + 0x34]
call ecx
test eax, 0x10000000
je 0x4c25cd
lea eax, [esp + 0x58]
push eax
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x5c]
push eax
push dword [edi + 0x38]
push 0
call ebp
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x60], esi
mov edx, dword [esp + 0x14]
cmovg esi, dword [esp + 0x60]
cmp dword [esp + 0x64], edx
mov ecx, dword [sym.imp.USER32.dll_GetWindowLongW]
cmovg edx, dword [esp + 0x64]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edx
jmp 0x4c25db
mov ecx, dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
inc ebx
cmp ebx, dword [edi + 0x78]
jb 0x4c2553
test esi, esi
jle 0x4c25f3
add esi, dword [edi + 0x98]
mov dword [esp + 0x1c], esi
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
test edx, edx
jle 0x4c2607
add edx, dword [edi + 0x9c]
mov dword [esp + 0x14], edx
mov eax, dword [edi + 0x40]
test eax, eax
je 0x4c2746
push 0xfffffffffffffff0
push eax
call ecx
test eax, 0x10000000
je 0x4c2746
lea eax, [esp + 0x58]
push eax
push dword [edi + 0x40]
call ebp
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
add ebx, eax
jmp 0x4c274a
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp esi, 0x80000000
je 0x4c265b
cmp edx, 0x80000000
jne 0x4c2746
cmp byte [edi + 0xe5], 0
je 0x4c26c8
cmp esi, 0x80000000
jne 0x4c267c
mov esi, dword [edi + 0xb0]
add esi, dword [edi + 0x98]
mov dword [esp + 0x1c], esi
cmp edx, 0x80000000
jne 0x4c2746
mov ebx, dword [edi + 0xb4]
add ebx, dword [edi + 0x9c]
mov eax, dword [edi + 0x40]
test eax, eax
je 0x4c274a
push 0xfffffffffffffff0
push eax
call ecx
test eax, 0x10000000
je 0x4c274a
lea eax, [esp + 0x58]
push eax
push dword [edi + 0x40]
call ebp
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
add ebx, eax
jmp 0x4c274a
lea eax, [esp + 0x58]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp esi, 0x80000000
jne 0x4c270c
test dword [edi + 0x84], 0x200000
je 0x4c26fe
mov ecx, dword [edi + 0xf0]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
jg 0x4c26fe
push 0x14
call ebx
jmp 0x4c2700
xor eax, eax
sub eax, dword [esp + 0x58]
add eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x14], 0x80000000
jne 0x4c2746
test dword [edi + 0x84], 0x100000
je 0x4c2738
mov ecx, dword [edi + 0xf4]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
jg 0x4c2738
push 3
call ebx
mov edx, eax
jmp 0x4c273a
xor edx, edx
sub edx, dword [esp + 0x5c]
add edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x14]
cmp byte [edi + 0xe5], 0
je 0x4c27a4
cmp byte [edi + 0xe0], 0
je 0x4c277f
xor esi, esi
cmp dword [edi + 0x78], esi
jbe 0x4c277f
mov eax, dword [edi + 0x48]
mov eax, dword [eax + esi*4]
cmp byte [eax + 0x4c], 0x13
jne 0x4c2779
push 0
push eax
mov ecx, edi
call fcn.004bcbb0
inc esi
cmp esi, dword [edi + 0x78]
jb 0x4c2763
mov eax, dword [esp + 0x2c]
mov ecx, connect
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x28], eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x37], 0
mov ebp, dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [esp + 0x14], eax
je 0x4c2ca4
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [edi + 0x38]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
call ebp
push dword [edi + 0x38]
mov esi, eax
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
push 0xffffffffffffffec
push dword [edi + 0x38]
sbb ebx, ebx
neg ebx
call ebp
push eax
push ebx
push esi
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [sym.imp.USER32.dll_SetScrollInfo]
mov ebp, esi
and ebp, 0x100000
je 0x4c2867
mov eax, dword [edi + 0xf4]
mov ecx, dword [edi + 0xb0]
add ecx, dword [edi + 0x98]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0xf4]
cmp eax, 0x80000000
jne 0x4c284e
mov eax, dword [ecx + 0xc]
push 0
inc eax
mov dword [ecx + 0x10], eax
push dword [edi + 0xf4]
push 0
push dword [edi + 0x38]
call edx
mov edx, dword [sym.imp.USER32.dll_SetScrollInfo]
and esi, 0x200000
je 0x4c28ab
mov eax, dword [edi + 0xf0]
mov ecx, dword [edi + 0xb4]
add ecx, dword [edi + 0x9c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0xf0]
cmp eax, 0x80000000
jne 0x4c2898
mov eax, dword [ecx + 0xc]
push 0
inc eax
mov dword [ecx + 0x10], eax
push dword [edi + 0xf0]
push 1
push dword [edi + 0x38]
call edx
test ebp, ebp
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x4c28d9
mov ecx, dword [esp + 0x30]
cmp ecx, 0x80000000
je 0x4c28d9
mov eax, dword [edi + 0xb4]
add eax, dword [edi + 0x9c]
cmp ecx, eax
jge 0x4c28d9
push 3
call ebp
add dword [esp + 0x54], eax
test esi, esi
je 0x4c2901
mov ecx, dword [esp + 0x38]
cmp ecx, 0x80000000
je 0x4c2901
mov eax, dword [edi + 0xb0]
add eax, dword [edi + 0x98]
cmp ecx, eax
jge 0x4c2901
push 2
call ebp
add dword [esp + 0x50], eax
test ebx, ebx
je 0x4c2937
movups xmm0, xmmword [esp + 0x48]
lea eax, [esp + 0x68]
push eax
push 0
push 0x83
push dword [edi + 0x38]
movups xmmword [esp + 0x78], xmm0
mov dword [esp + 0x84], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x6c]
add dword [esp + 0x54], eax
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
sub ebx, dword [esp + 0x48]
sub ebp, dword [esp + 0x4c]
mov eax, dword [edi + 0x44]
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x4c2972
test dword [esp + 0x10], 0x40000000
je 0x4c2972
lea ecx, [esp + 0x88]
mov byte [esp + 0x1b], 1
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x4c298b
push 0
lea eax, [esp + 0x8c]
mov byte [esp + 0x1f], 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x88]
sub eax, esi
sub ecx, dword [esp + 0x8c]
cmp byte [edi + 0xe5], 0
je 0x4c29db
cmp byte [esp + 0x1b], 0
jne 0x4c29db
cmp dword [esp + 0x38], 0x80000000
jne 0x4c29cc
cmp ebx, eax
cmovg ebx, eax
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x30], 0x80000000
jne 0x4c29db
cmp ebp, ecx
cmovg ebp, ecx
cmp dword [esp + 0x2c], 0x80000001
jne 0x4c29f2
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, esi
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x28], 0x80000001
jne 0x4c2a10
sub ecx, ebp
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x78]
push eax
push dword [edi + 0x38]
call esi
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
sub eax, edx
cmp ebx, eax
jne 0x4c2a68
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
sub eax, ecx
cmp ebp, eax
jne 0x4c2a68
mov eax, dword [esp + 0x2c]
cmp eax, 0x80000000
je 0x4c2a51
cmp eax, edx
jne 0x4c2a68
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
je 0x4c2ba9
cmp eax, ecx
je 0x4c2ba9
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4c2a80
push 9
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push 0xffffffffffffffe0
push esi
call dword [sym.imp.USER32.dll_GetClassLongW]
mov ecx, dword fs:[0x2c]
movzx edx, ax
mov eax, dword [0x62271c]
mov ecx, dword [ecx + eax*4]
cmp dx, word [ecx + 0x1f54]
jne 0x4c2b70
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x38], eax
test eax, eax
je 0x4c2b70
mov ebx, dword [edi + 0x38]
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x38]
lea esi, [eax - 3]
cmp esi, dword [ecx + 0x78]
jb 0x4c2afe
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x4c2af5
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov ecx, dword [esp + 0x38]
cmp esi, dword [ecx + 0x78]
jae 0x4c2b6c
mov eax, dword [ecx + 0x48]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x34], ebx
jne 0x4c2b6c
cmp esi, 0x2af8
je 0x4c2b6c
test eax, eax
je 0x4c2b6c
cmp byte [edi + 0xe5], 0
jne 0x4c2b6c
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
push dword [ecx + 0x38]
movlpd qword [esp + 0x40], xmm0
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x80000000
push dword [esp + 0x14]
mov edx, dword [esp + 0x30]
cmove ecx, eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x3c]
cmp edx, 0x80000000
push ebp
push dword [esp + 0x24]
cmove edx, eax
push ecx
push edx
jmp 0x4c2b9a
mov ebx, dword [esp + 0x1c]
push dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
cmp eax, 0x80000000
push ebp
cmove eax, dword [esp + 0x84]
push ebx
push eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x80000000
cmove eax, dword [esp + 0x88]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [edi + 0xe5], 0
je 0x4c2c9e
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x38]
call esi
lea eax, [esp + 0x68]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, edx
sub ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x74]
mov ebp, ecx
mov esi, dword [esp + 0x70]
sub eax, ebx
mov dword [esp + 0x38], eax
sub ebp, esi
mov eax, dword [edi + 0xd0]
cmp eax, 0x80000001
jne 0x4c2c07
mov dword [edi + 0xd0], ecx
jmp 0x4c2c16
cmp eax, 0x80000000
je 0x4c2c16
add eax, ebp
mov dword [edi + 0xd0], eax
mov eax, dword [edi + 0xd4]
cmp eax, 0x80000001
jne 0x4c2c2b
mov dword [edi + 0xd4], edx
jmp 0x4c2c40
cmp eax, 0x80000000
je 0x4c2c40
add eax, dword [esp + 0x38]
mov esi, dword [esp + 0x70]
mov dword [edi + 0xd4], eax
mov eax, dword [edi + 0xd8]
cmp eax, 0x80000001
jne 0x4c2c55
mov dword [edi + 0xd8], ecx
jmp 0x4c2c64
cmp eax, 0x80000000
je 0x4c2c64
add eax, ebp
mov dword [edi + 0xd8], eax
mov eax, dword [edi + 0xdc]
cmp eax, 0x80000001
jne 0x4c2c79
mov dword [edi + 0xdc], edx
jmp 0x4c2c8a
cmp eax, 0x80000000
je 0x4c2c8a
add eax, dword [esp + 0x38]
mov dword [edi + 0xdc], eax
sub esi, dword [esp + 0x68]
sub ebx, dword [esp + 0x6c]
mov dword [edi + 0xc8], esi
mov dword [edi + 0xcc], ebx
mov ebp, dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp byte [esp + 0x27], 0
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
jne 0x4c2cde
mov eax, dword [esp + 0x20]
cmp eax, 6
jne 0x4c2cd4
mov esi, dword [edi + 0x38]
call ebx
cmp eax, esi
jne 0x4c2cd0
push 0
push 0
push 6
push esi
call dword [sym.imp.USER32.dll_DefDlgProcW]
mov eax, dword [esp + 0x20]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
setne al
cmp al, byte [edi + 0xed]
je 0x4c2d09
mov ecx, dword [edi]
mov byte [edi + 0xed], al
push edi
test al, al
je 0x4c2d06
call dword [ecx + 4]
jmp 0x4c2d09
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 8
ja case.0x4c2d1e.2
movzx eax, byte [eax + 0x4c2ecc]
jmp dword [eax*4 + 0x4c2ec4]
push 2
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 0x38]
jne case.0x4c2d1e.2
mov esi, dword [edi + 0x38]
call ebx
cmp esi, eax
je 0x4c2d4b
push esi
call fcn.004e9bf0
add esp, 4
cmp byte [edi + 0xe6], 0
je case.0x4c2d1e.2
mov byte [edi + 0xe6], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
test ebx, ebx
je 0x4c2ddd
push ebx
call ebp
lea esi, [eax - 3]
cmp esi, dword [edi + 0x78]
jb 0x4c2d89
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x4c2d89
push ebx
call ebp
lea esi, [eax - 3]
mov ecx, dword [edi + 0x78]
cmp esi, ecx
jae case.0x4c2d1e.2
mov edx, dword [edi + 0x48]
mov ebp, dword [edx + esi*4]
cmp dword [ebp + 0x34], ebx
jne case.0x4c2d1e.2
cmp esi, 0x2af8
je case.0x4c2d1e.2
test ebp, ebp
je case.0x4c2d1e.2
mov al, byte [ebp + 0x4c]
cmp al, 0x13
jne 0x4c2dc3
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push ebp
mov ecx, edi
call fcn.004bcbb0
jmp case.0x4c2d1e.2
cmp al, 4
jne case.0x4c2d1e.2
mov eax, dword [edi + 0x80]
cmp eax, ecx
jae case.0x4c2d1e.2
mov eax, dword [edx + eax*4]
cmp eax, ebp
je case.0x4c2d1e.2
push dword [eax + 0x34]
jmp 0x4c2de0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_SetFocus]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xe5], 0
mov byte [edi + 0xe7], 0
call fcn.00415b90
add esp, 8
mov eax, 1
jmp 0x4c2e09
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x8c
ret 4