Function at 0x40c010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d371
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
mov edi, edx
lea edx, [ebp - 0x46c]
push str.Tool_GetIconData
push edx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x470], ecx
call fcn.0040ac70
add esp, 0xc
mov eax, dword [ebp - 0x43c]
mov ebx, dword [ebp + 0x10]
push 0
push ebx
mov dword [ebp - 4], 0
mov ecx, dword [eax]
push ecx
push edi
push str.lpszFile___s__lpIconID___d__bSmallSize___d__bAdd___
lea edx, [ebp - 0x46c]
push 1
push edx
call fcn.0040aed0
dec ebx
add esp, 0x1c
neg ebx
sbb ebx, ebx
and ebx, 0xffffffda
add ebx, 0x31
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x438], 0
call ebx
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x10]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffda
add eax, 0x32
push eax
call ebx
mov ebx, eax
mov dword [ebp - 0x450], ebx
test esi, esi
je 0x40c0e3
cmp dword [esi + 4], 0
je 0x40c0e3
mov ecx, esi
call fcn.0044a671
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x464], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x474], eax
test eax, eax
je 0x40c12c
push 0xc
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x474]
mov edx, dword [ebp - 0x464]
push ecx
push edx
mov dword [ebp - 0x448], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x448], 0x18
jge 0x40c13f
mov eax, dword [ebp - 0x444]
push 8
push 8
push 0xff
push ebx
push eax
jmp 0x40c14d
mov ecx, dword [ebp - 0x444]
push 8
push 8
push 0x21
push ebx
push ecx
mov ecx, esi
call fcn.0044a7b4
test edi, edi
jne 0x40c18d
push 0x104
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.SHELL32.DLL
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x21c]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40c19b
push edi
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x43c]
xor edi, edi
cmp dword [eax], 0x7fffffff
je 0x40c225
mov ebx, dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp + 0x10], 1
mov edx, dword [eax]
push 1
lea ecx, [ebp - 0x440]
lea eax, [ebp - 0x21c]
jne 0x40c1cc
push ecx
push 0
jmp 0x40c1cf
push 0
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x40c1ff
mov ecx, dword [ebp - 0x440]
test ecx, ecx
je 0x40c210
mov eax, dword [esi + 4]
push ecx
push 0xffffffffffffffff
push eax
call fcn.00442c4d
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.0040a3e0
inc dword [ebp - 0x438]
jmp 0x40c210
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x40c210
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [ebp - 0x43c]
inc edi
cmp dword [edx + edi*4], 0x7fffffff
lea eax, [edx + edi*4]
jne 0x40c1b1
mov eax, edx
xor ebx, ebx
cmp dword [eax], 0x7fffffff
je 0x40c3f9
jmp 0x40c240
mov edi, dword [ebp - 0x470]
test edi, edi
je 0x40c3ad
mov dword [ebp - 0x448], 0
mov dword [ebp - method.CBitmap.virtual_0], vtable.CBitmap.0
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 1
call fcn.0044c14a
mov ecx, dword [ebp - 0x444]
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x428], eax
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x42c], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x460]
call fcn.0044c7a1
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x444]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [ebp - 0x44c]
call fcn.0044ca75
mov edx, dword [ebp - 0x448]
mov eax, dword [ebp - 0x45c]
push edx
push eax
call fcn.0044cb06
push 5
mov edi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x460]
call fcn.0044d5b5
mov edx, dword [ebp - 0x45c]
mov eax, dword [esi + 4]
push 0
push 0
push 0
push edx
push ebx
push eax
call fcn.00442c4d
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0040a540
mov ecx, dword [ebp - 0x45c]
mov eax, dword [esi + 4]
push 1
push 0
push 0
push ecx
push 6
push eax
call fcn.00442c4d
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0040a540
test edi, edi
je 0x40c34f
mov edi, dword [edi + 4]
mov eax, dword [ebp - 0x45c]
push edi
push eax
call fcn.0044cb06
lea ecx, [ebp - 0x460]
call fcn.0044c80c
mov ecx, dword [ebp - 0x448]
mov eax, dword [esi + 4]
push 0
push ecx
push eax
call fcn.00442c4d
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0040a280
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 1
call fcn.0044c822
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
mov dword [ebp - method.CBitmap.virtual_0], vtable.CBitmap.0
call fcn.0040a800
jmp 0x40c3df
mov eax, dword [esi + 4]
push 0
push ebx
push eax
call fcn.00442c4d
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0040a6a0
mov ecx, dword [esi + 4]
push eax
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x440], eax
call fcn.00442c4d
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.0040a3e0
mov edx, dword [ebp - 0x43c]
inc dword [ebp - 0x438]
inc ebx
cmp dword [edx + ebx*4], 0x7fffffff
jne 0x40c240
mov esi, dword [ebp - 0x438]
push esi
push str.return___d
lea eax, [ebp - 0x46c]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x46c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret