Function at 0x4c9ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a715b
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x474], eax
lea ecx, [ebp - 0x458]
mov eax, dword [ebp + 0xc]
push str.CBaseDlgSetPortNetwork::GetIconData
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x45c], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4c9d81
test byte [ecx + 0x1c], 1
je 0x4c9d81
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d7868
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1a
call fcn.00401840
add esp, 0xc
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0x18
xor edi, edi
mov ecx, 0x31
cmp dword [ebp + 0x14], 1
mov eax, 0xb
cmove eax, ecx
push eax
call esi
cmp dword [ebp + 0x14], 1
mov ecx, 0x32
mov dword [ebp - 0x468], eax
mov eax, 0xc
cmove eax, ecx
push eax
call esi
mov dword [ebp - 0x464], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x470], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x46c], eax
test eax, eax
je 0x4c9e2d
push 0xc
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push dword [ebp - 0x46c]
mov esi, eax
push dword [ebp - 0x470]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, 0x18
jl 0x4c9e2d
push 8
push 8
push 0x21
jmp 0x4c9e36
push 8
push 8
push 0xff
push dword [ebp - 0x464]
mov ecx, dword [ebp - 0x45c]
push dword [ebp - 0x468]
call fcn.0055aa0b
mov eax, dword [ebp - 0x474]
test eax, eax
jne 0x4c9e8c
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.SHELL32.DLL
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x5c6c90
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4c9e9a
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
cmp dword [ebx], 0x7fffffff
je 0x4c9f12
mov eax, ebx
mov ebx, dword [sym.imp.SHELL32.dll_ExtractIconExW]
nop dword [eax]
cmp dword [ebp + 0x14], 1
lea ecx, [ebp - 0x460]
push 1
jne 0x4c9ec3
push ecx
push 0
jmp 0x4c9ec6
push 0
push ecx
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
mov eax, dword [ebp - 0x460]
je 0x4c9ef4
test eax, eax
je 0x4c9eff
push eax
mov eax, dword [ebp - 0x45c]
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
inc edi
jmp 0x4c9eff
test eax, eax
je 0x4c9eff
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x478]
inc esi
cmp dword [eax + esi*4], 0x7fffffff
lea eax, [eax + esi*4]
jne 0x4c9eb0
mov byte [ebp - 0x454], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4c9f5a
test byte [ecx + 0x1c], 1
je 0x4c9f5a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d7868
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1b
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x458]
call fcn.0040a570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x10