Function at 0x411190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585181
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x5eb770]
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 dword [ebp - 0x470], ecx
push str.Tool_GetIconData
push 0
lea ecx, [ebp - 0x46c]
mov edi, edx
mov dword [ebp - 0x43c], eax
call fcn.0044ca70
add esp, 0xc
mov edx, dword [ebp - 0x43c]
mov ebx, dword [ebp + 0x10]
push 0
push ebx
mov dword [ebp - 4], 0
mov eax, dword [edx]
push eax
push edi
push str.lpszFile___s__lpIconID___d__bSmallSize___d__bAdd___
lea ecx, [ebp - 0x46c]
push 1
push ecx
call fcn.0044cd10
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 edx, dword [ebp + 0x10]
dec edx
neg edx
sbb edx, edx
and edx, 0xffffffda
add edx, 0x32
push edx
mov dword [ebp - 0x444], eax
call ebx
mov ebx, eax
mov dword [ebp - 0x450], ebx
test esi, esi
je 0x411268
cmp dword [esi + 4], 0
je 0x411268
mov ecx, esi
call fcn.0046e11a
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 0x4112b1
push 0xc
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x474]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x448], 0x18
jge 0x4112c4
mov edx, dword [ebp - 0x444]
push 8
push 8
push 0xff
push ebx
push edx
jmp 0x4112d2
mov eax, dword [ebp - 0x444]
push 8
push 8
push 0x21
push ebx
push eax
mov ecx, esi
call fcn.0046e25d
test edi, edi
jne 0x411312
push 0x104
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.SHELL32.DLL
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x411320
push edi
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x43c]
xor edi, edi
cmp dword [eax], 0x7fffffff
je 0x4113ae
mov ebx, dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp + 0x10], 1
mov eax, dword [eax]
push 1
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0x21c]
jne 0x411351
push edx
push 0
jmp 0x411354
push 0
push edx
push eax
push ecx
call ebx
test eax, eax
je 0x411384
mov ecx, dword [ebp - 0x440]
test ecx, ecx
je 0x411395
mov eax, dword [esi + 4]
push ecx
push 0xffffffffffffffff
push eax
call fcn.0046d2d8
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00410b60
inc dword [ebp - 0x438]
jmp 0x411395
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x411395
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x43c]
inc edi
cmp dword [eax + edi*4], 0x7fffffff
lea eax, [eax + edi*4]
jne 0x411336
mov eax, dword [ebp - 0x43c]
xor ebx, ebx
cmp dword [eax], 0x7fffffff
je 0x411579
lea esp, [esp]
mov edi, dword [ebp - 0x470]
test edi, edi
je 0x41152d
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.0046e855
mov ecx, dword [ebp - 0x450]
mov edx, dword [ebp - 0x444]
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x434], eax
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x460]
call fcn.0046ee8a
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x444]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [ebp - 0x44c]
call fcn.0046f15e
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x45c]
push eax
push ecx
call fcn.0046f1ef
push 5
mov edi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea edx, [ebp - 0x434]
push edx
lea ecx, [ebp - 0x460]
call fcn.0046f990
mov ecx, dword [ebp - 0x45c]
mov eax, dword [esi + 4]
push 0
push 0
push 0
push ecx
push ebx
push eax
call fcn.0046d2d8
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00410cc0
mov ecx, dword [ebp - 0x45c]
mov eax, dword [esi + 4]
push 1
push 0
push 0
push ecx
push 6
push eax
call fcn.0046d2d8
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00410cc0
test edi, edi
je 0x4114cf
mov edi, dword [edi + 4]
mov eax, dword [ebp - 0x45c]
push edi
push eax
call fcn.0046f1ef
lea ecx, [ebp - 0x460]
call fcn.0046eef5
mov ecx, dword [ebp - 0x448]
mov eax, dword [esi + 4]
push 0
push ecx
push eax
call fcn.0046d2d8
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00410a00
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 1
call fcn.0046ef0b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44c]
mov dword [ebp - method.CBitmap.virtual_0], vtable.CBitmap.0
call fcn.00410f80
jmp 0x41155f
mov eax, dword [esi + 4]
push 0
push ebx
push eax
call fcn.0046d2d8
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00410e20
mov ecx, dword [esi + 4]
push eax
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x440], eax
call fcn.0046d2d8
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00410b60
mov edx, dword [ebp - 0x43c]
inc dword [ebp - 0x438]
inc ebx
cmp dword [edx + ebx*4], 0x7fffffff
jne 0x4113c0
mov esi, dword [ebp - 0x438]
push esi
push str.return___d
lea eax, [ebp - 0x46c]
push 2
push eax
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x46c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret