Function at 0x4149c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565ff1
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x5c0490]
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.00401190
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.00401410
dec ebx
xor eax, eax
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 - 0x440], eax
mov dword [ebp - 0x438], eax
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 0x414a97
cmp dword [esi + 4], 0
je 0x414a97
mov ecx, esi
call fcn.00454acf
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 0x414ae0
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 0x414af3
mov eax, dword [ebp - 0x444]
push 8
push 8
push 0xff
push ebx
push eax
jmp 0x414b01
mov ecx, dword [ebp - 0x444]
push 8
push 8
push 0x21
push ebx
push ecx
mov ecx, esi
call fcn.00454c12
test edi, edi
jne 0x414b41
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 0x414b4f
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 0x414bd9
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 0x414b80
push ecx
push 0
jmp 0x414b83
push 0
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x414bb3
mov ecx, dword [ebp - 0x440]
test ecx, ecx
je 0x414bc4
mov eax, dword [esi + 4]
push ecx
push 0xffffffffffffffff
push eax
call fcn.0044b52d
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00414150
inc dword [ebp - 0x438]
jmp 0x414bc4
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x414bc4
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 0x414b65
mov eax, edx
xor ebx, ebx
cmp dword [eax], 0x7fffffff
je 0x414da9
jmp 0x414bf0
mov edi, dword [ebp - 0x470]
test edi, edi
je 0x414d5d
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.004551f7
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.0045582c
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.00455b00
mov edx, dword [ebp - 0x448]
mov eax, dword [ebp - 0x45c]
push edx
push eax
call fcn.00455b91
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.00456332
mov edx, dword [ebp - 0x45c]
mov eax, dword [esi + 4]
push 0
push 0
push 0
push edx
push ebx
push eax
call fcn.0044b52d
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.004142b0
mov ecx, dword [ebp - 0x45c]
mov eax, dword [esi + 4]
push 1
push 0
push 0
push ecx
push 6
push eax
call fcn.0044b52d
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.004142b0
test edi, edi
je 0x414cff
mov edi, dword [edi + 4]
mov eax, dword [ebp - 0x45c]
push edi
push eax
call fcn.00455b91
lea ecx, [ebp - 0x460]
call fcn.00455897
mov ecx, dword [ebp - 0x448]
mov eax, dword [esi + 4]
push 0
push ecx
push eax
call fcn.0044b52d
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00413ff0
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 1
call fcn.004558ad
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
mov dword [ebp - method.CBitmap.virtual_0], vtable.CBitmap.0
call fcn.00414570
jmp 0x414d8f
mov eax, dword [esi + 4]
push 0
push ebx
push eax
call fcn.0044b52d
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00414410
mov ecx, dword [esi + 4]
push eax
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x440], eax
call fcn.0044b52d
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00414150
mov edx, dword [ebp - 0x43c]
inc dword [ebp - 0x438]
inc ebx
cmp dword [edx + ebx*4], 0x7fffffff
jne 0x414bf0
mov esi, dword [ebp - 0x438]
push esi
push str.return___d
lea eax, [ebp - 0x46c]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x46c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret