Function at 0x4c9040
Capabilities:
Check if file exists
Hide graphical window
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x90
push 0xffffffffffffffff
push 0x58a76b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xa0]
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x4c99b7
cmp eax, 0x4f5
je 0x4c90bf
cmp eax, 0x1f4
jne 0x4c90bf
mov edi, dword [esi + 4]
call fcn.004a1350
push str.uiview_set_extend_panel_state
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c90bb
push 2
push 0x4f5
push edi
call eax
xor eax, eax
jmp 0x4c90ce
cmp eax, 2
jg 0x4c9408
je 0x4c9413
sub eax, 0
je 0x4c936a
sub eax, 1
jne 0x4c99b7
call fcn.004225b0
add eax, 4
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4c910d
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004225b0
mov ecx, eax
call fcn.004c8380
mov edx, dword [esi + 0x34]
mov eax, dword [edx]
push eax
lea ecx, [ebp]
push ecx
mov ecx, 0x5ce6d8
call fcn.0046c7a0
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], 0
je 0x4c935d
mov edx, dword [esi + 4]
push 0x4f5
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004c7870
add esp, 0xc
test eax, eax
jne 0x4c919a
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov dword [ebp - 0x2c], 1
call edi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
push edx
push eax
mov dword [ebp - 0x20], ecx
call edi
call fcn.004225b0
mov ecx, dword [eax + 4]
push 1
push 0
push 0x2ba
push 0x143
add eax, 4
push 1
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x34]
add edx, 0x1c8
push edx
lea ecx, [ebp + 0x54]
call fcn.0040c140
cmp dword [ebp + 0x6c], 0x10
mov byte [ebp - 4], 1
jb 0x4c91c1
mov ebx, dword [ebp + 0x58]
test ebx, ebx
jne 0x4c91c4
xor eax, eax
jmp 0x4c91f3
lea ebx, [ebp + 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jle 0x4c91dc
xor eax, eax
jmp 0x4c91f3
lea eax, [edi + edi]
call fcn.00553150
mov eax, esp
push 0x3a8
push edi
push ebx
push eax
call fcn.00401140
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c9231
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.00402460
mov ecx, eax
call fcn.0043c3b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 2
call fcn.0040a080
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.004074a0
cmp dword [ebp + 0x6c], 0x10
mov edi, dword [ebp + 0x58]
jae 0x4c923d
lea edi, [ebp + 0x58]
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 4]
jae 0x4c9249
lea ecx, [ebp + 4]
mov eax, dword [esi + 0x34]
mov edx, eax
cmp dword [edx + 0x1b4], 0
setne dl
push edx
mov edx, dword [eax + 0x1b8]
push edx
mov edx, dword [eax + 0x1b0]
push edx
mov edx, dword [eax + 0x1ac]
push edx
mov edx, dword [eax + 0x1c0]
push edx
mov edx, dword [eax + 0x1bc]
push edx
push edi
push ecx
lea ecx, [eax + 0x114]
push ecx
lea edx, [eax + 0x90]
push edx
mov edx, dword [eax + 0x110]
lea ecx, [eax + 8]
push ecx
mov ecx, dword [eax + 0x88]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.004225b0
mov ecx, eax
call fcn.00425c10
push 1
call fcn.004225b0
mov ecx, eax
call fcn.0041b140
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 2
push 1
push 0xfba
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 6
push 0
mov ecx, 1
mov ebx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov edx, 0x143
mov ebx, edx
mov dword [eax + 4], ebx
mov edi, 0x2bb
mov ebx, edi
mov dword [eax + 8], ebx
mov ebx, 0x1a4
mov dword [eax + 0xc], ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, 0x152
mov dword [eax + 8], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov dword [eax + 0xc], ecx
call fcn.004225b0
mov ecx, dword [eax + 4]
push ecx
call fcn.004c7770
add esp, 0x2c
call fcn.004225b0
mov edx, dword [eax + 4]
add eax, 4
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push eax
push 2
call fcn.004225b0
mov ecx, eax
call fcn.0041adc0
lea ecx, [ebp + 0x54]
call fcn.004074a0
lea ecx, [ebp]
call fcn.004074a0
jmp 0x4c99b7
call fcn.004225b0
mov ecx, eax
call fcn.0041b130
test al, al
je 0x4c99b7
mov edi, 1
mov ebx, 0x143
push 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0x2bb
mov dword [ebp - 0x10], ebx
call fcn.004225b0
mov ecx, eax
call fcn.0041b140
mov edx, dword [ebp - 0x14]
push 6
push 0
sub esp, 0x10
mov eax, esp
mov ecx, edi
mov dword [eax], ecx
mov ecx, ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov ecx, 0x2bb
mov dword [eax + 8], ecx
mov ecx, 0x1a4
mov dword [eax + 0xc], ecx
call fcn.004225b0
mov edx, dword [eax + 4]
push edx
call fcn.004c7770
mov eax, dword [esi + 4]
add esp, 0x2c
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 2
push 0
push 0xfba
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4c99b7
cmp eax, 0x4f5
jne 0x4c99b7
lea ecx, [ebp + 0x70]
push ecx
mov ecx, esi
call fcn.004c8350
cmp dword [ebp + 0x84], 0
mov dword [ebp - 4], 3
je 0x4c9612
cmp dword [ebp + 0x88], 0x10
mov ebx, dword [ebp + 0x74]
jae 0x4c9441
lea ebx, [ebp + 0x74]
call fcn.004c79f0
test al, al
je 0x4c9612
push 0
push 5
mov ecx, esi
call fcn.004c7b10
mov edx, dword [esi + 0x34]
add edx, 0x1c8
push edx
lea eax, [ebp + 0x70]
push eax
call fcn.004383d0
add esp, 8
test al, al
je 0x4c94ad
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
push edx
call fcn.004024e0
mov ecx, eax
call fcn.00431a90
mov ecx, dword [esi + 0x34]
cmp eax, dword [ecx]
jne 0x4c94ad
cmp dword [esi + 0x38], 0
je 0x4c94ad
sub esp, 0x1c
lea edx, [ebp + 0x70]
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call fcn.0040c140
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ebx, 1
add dword [0x5ce7bc], ebx
call fcn.004225b0
mov ecx, eax
call fcn.0041b130
test al, al
je 0x4c94da
mov eax, dword [esi + 4]
push ebx
push 0x4f5
push eax
call fcn.004c7940
add esp, 0xc
sub esp, 0x1c
lea edx, [ebp + 0x70]
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call fcn.0040c140
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
push eax
mov eax, dword [0x5ce7bc]
push edx
push eax
call fcn.004c87c0
add esp, 0x28
test eax, eax
jne 0x4c952e
push 5
push eax
mov ecx, esi
call fcn.004c7b10
mov ecx, dword [esi + 4]
push 0x30
push ecx
mov edx, 0x59ac74
mov ecx, 0x59ac30
call fcn.004c8ec0
add esp, 8
jmp 0x4c99a2
call fcn.004225b0
mov edx, dword [eax + 4]
add eax, 4
push edx
call dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebx
jne 0x4c99a2
lea eax, [ebp - 0x4c]
push eax
call fcn.004225b0
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
call fcn.004225b0
mov ecx, eax
call fcn.0041b130
test al, al
je 0x4c99a2
mov edi, 0x143
push 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0x2bb
mov dword [ebp - 0x10], edi
call fcn.004225b0
mov ecx, eax
call fcn.0041b140
mov edx, dword [esi + 4]
push 0
push 0x4f5
push edx
call fcn.004c7940
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 6
push 0
sub esp, 0x10
mov eax, esp
mov ecx, ebx
mov dword [eax], ecx
mov ecx, edi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edi
mov ecx, 0x2bb
mov dword [eax + 8], ecx
mov ecx, 0x1a4
mov dword [eax + 0xc], ecx
call fcn.004225b0
mov edx, dword [eax + 4]
push edx
call fcn.004c7770
add esp, 0x2c
push str.EXTEND_PANEL_HIDE_1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 2
push 0
push 0xfba
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4c99a2
call fcn.004225b0
mov ecx, eax
call fcn.0041b130
test al, al
je 0x4c96f7
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004225b0
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
je 0x4c96f7
mov edi, 1
mov ebx, 0x143
push 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0x2bb
mov dword [ebp - 0x10], ebx
call fcn.004225b0
mov ecx, eax
call fcn.0041b140
mov ecx, dword [esi + 4]
push 0
push 0x4f5
push ecx
call fcn.004c7940
add esp, 0xc
push 6
push 0
sub esp, 0x10
mov eax, esp
mov edx, edi
mov dword [eax], edx
mov ecx, ebx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov edx, ebx
mov dword [eax + 0xc], edx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov ecx, 0x2bb
mov dword [eax + 8], ecx
mov ecx, 0x1a4
mov dword [eax + 0xc], ecx
call fcn.004225b0
mov eax, dword [eax + 4]
push eax
call fcn.004c7770
add esp, 0x2c
push str.EXTEND_PANEL_HIDE_3
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push 2
push 0
push 0xfba
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp + 0x70]
call fcn.004074a0
jmp 0x4c99b7
call fcn.004225b0
mov edx, dword [eax + 4]
add eax, 4
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4c9725
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004225b0
mov ecx, eax
call fcn.004c8380
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
push edx
lea eax, [ebp + 0x1c]
push eax
mov ecx, 0x5ce6d8
call fcn.0046c7a0
cmp dword [ebp + 0x30], 0
mov byte [ebp - 4], 4
jne 0x4c9758
lea ecx, [ebp + 0x1c]
call fcn.004074a0
lea ecx, [ebp + 0x70]
call fcn.004074a0
jmp 0x4c99b7
mov ecx, dword [esi + 4]
push 0x4f5
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.004c7870
add esp, 0xc
test eax, eax
jne 0x4c97bf
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x2c]
push eax
push ecx
mov dword [ebp - 0x2c], 1
call edi
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 4]
push ecx
push edx
mov dword [ebp - 0x20], eax
call edi
call fcn.004225b0
push 1
push 0
push 0x2ba
push 0x143
add eax, 4
mov eax, dword [eax]
push 1
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 0x34]
add ecx, 0x1c8
push ecx
lea ecx, [ebp + 0x38]
call fcn.0040c140
cmp dword [ebp + 0x50], 0x10
mov byte [ebp - 4], 5
jb 0x4c97e6
mov ebx, dword [ebp + 0x3c]
test ebx, ebx
jne 0x4c97e9
xor eax, eax
jmp 0x4c9818
lea ebx, [ebp + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jle 0x4c9801
xor eax, eax
jmp 0x4c9818
lea eax, [edi + edi]
call fcn.00553150
mov eax, esp
push 0x3a8
push edi
push ebx
push eax
call fcn.00401140
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c985c
mov edx, dword [esi + 0x34]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.00402460
mov ecx, eax
call fcn.0043c3b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 6
call fcn.0040a080
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.004074a0
cmp dword [ebp + 0x50], 0x10
mov edi, dword [ebp + 0x3c]
jae 0x4c9868
lea edi, [ebp + 0x3c]
cmp dword [ebp + 0x34], 0x10
mov ecx, dword [ebp + 0x20]
jae 0x4c9874
lea ecx, [ebp + 0x20]
mov eax, dword [esi + 0x34]
mov edx, eax
cmp dword [edx + 0x1b4], 0
setne dl
push edx
mov edx, dword [eax + 0x1b8]
push edx
mov edx, dword [eax + 0x1b0]
push edx
mov edx, dword [eax + 0x1ac]
push edx
mov edx, dword [eax + 0x1c0]
push edx
mov edx, dword [eax + 0x1bc]
push edx
push edi
push ecx
lea ecx, [eax + 0x114]
push ecx
lea edx, [eax + 0x90]
push edx
mov edx, dword [eax + 0x110]
lea ecx, [eax + 8]
push ecx
mov ecx, dword [eax + 0x88]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.004225b0
mov ecx, eax
call fcn.00425c10
push 1
call fcn.004225b0
mov ecx, eax
call fcn.0041b140
mov eax, dword [esi + 4]
push 1
push 0x4f5
push eax
call fcn.004c7940
mov ecx, dword [esi + 4]
add esp, 0xc
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push 2
push 1
push 0xfba
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 6
push 0
mov ecx, 1
mov edi, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edx, 0x143
mov edi, edx
mov dword [eax + 4], edi
mov ebx, 0x2bb
mov edi, ebx
mov dword [eax + 8], edi
mov edi, 0x1a4
mov dword [eax + 0xc], edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, 0x14e
mov dword [eax + 8], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [eax + 0xc], ecx
call fcn.004225b0
mov edx, dword [eax + 4]
push edx
call fcn.004c7770
add esp, 0x2c
call fcn.004225b0
add eax, 4
mov eax, dword [eax]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
push 2
call fcn.004225b0
mov ecx, eax
call fcn.0041adc0
lea ecx, [ebp + 0x38]
call fcn.004074a0
lea ecx, [ebp + 0x1c]
call fcn.004074a0
cmp dword [ebp + 0x88], 0x10
jb 0x4c99b7
mov edx, dword [ebp + 0x74]
push edx
call fcn.0055215c
add esp, 4
xor eax, eax
lea esp, [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00552d63
add ebp, 0x90
mov esp, ebp
pop ebp
ret 0x10