Function at 0x407bd0
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x456ae6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov edx, dword [esp + 0x280]
mov eax, dword [esp + 0x274]
mov ecx, dword [esp + 0x27c]
mov edi, dword [esp + 0x288]
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [esp + 0x278]
sub edx, 1
xor ebx, ebx
neg edx
sbb edx, edx
and edx, 0xffffffda
add edx, 0x31
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], ebx
call ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x280]
sub eax, 1
neg eax
sbb eax, eax
and eax, 0xffffffda
add eax, 0x32
push eax
call ebp
cmp dword [esp + 0x284], ebx
mov dword [esp + 0x24], eax
jne 0x407cef
cmp esi, ebx
je 0x407c8e
cmp dword [esi + 4], ebx
je 0x407c8e
mov ecx, esi
call fcn.004378a1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
cmp ebp, ebx
je 0x407cbf
push 0xc
push ebp
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x28], 0x18
jge 0x407cd4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 8
push 8
push 0xff
push ecx
push edx
jmp 0x407ce4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 8
push 8
push 0x21
push eax
push ecx
mov ecx, esi
call fcn.00437968
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x407d2c
push 0x104
lea edx, [esp + 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.SHELL32.DLL
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x60]
push 0x45ce28
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x407d38
push eax
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0x7fffffff
mov dword [esp + 0x28], ebx
je 0x407dc5
mov ebp, dword [sym.imp.SHELL32.dll_ExtractIconExA]
mov edi, edi
cmp dword [esp + 0x280], 1
mov edx, dword [eax]
push 1
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x5c]
jne 0x407d6a
push ecx
push ebx
jmp 0x407d6c
push ebx
push ecx
push edx
push eax
call ebp
cmp eax, ebx
je 0x407d99
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x407da8
mov eax, dword [esi + 4]
push ecx
push 0xffffffffffffffff
push eax
call fcn.004316f5
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00406600
add dword [esp + 0x14], 1
jmp 0x407da8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x407da8
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
add eax, 1
cmp dword [edx + eax*4], 0x7fffffff
mov dword [esp + 0x28], eax
lea eax, [edx + eax*4]
jne 0x407d50
mov eax, edx
xor ebp, ebp
cmp dword [eax], 0x7fffffff
je 0x407f5d
cmp edi, ebx
je 0x407f15
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], vtable.CBitmap.0
lea ecx, [esp + 0x38]
mov dword [esp + 0x26c], ebx
call fcn.00438f71
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 4]
push eax
mov byte [esp + 0x270], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.00439393
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x30]
call fcn.0043953c
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
push edx
push eax
call fcn.004395c1
push 5
mov edi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x40]
call fcn.0043995a
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
push ebx
push ebx
push ebx
push edx
push ebp
push eax
call fcn.004316f5
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00406750
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
push 1
push ebx
push ebx
push ecx
push 6
push eax
call fcn.004316f5
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00406750
cmp edi, ebx
jne 0x407eb3
xor edi, edi
jmp 0x407eb6
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x3c]
push edi
push eax
call fcn.004395c1
lea ecx, [esp + 0x38]
call fcn.004393f7
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 4]
push ebx
push ecx
push eax
call fcn.004316f5
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.004064b0
lea ecx, [esp + 0x38]
mov byte [esp + 0x26c], bl
call fcn.0043940d
lea ecx, [esp + 0x2c]
mov dword [esp + 0x26c], 0xffffffff
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.004079a0
mov edi, dword [esp + 0x34]
jmp 0x407f44
mov eax, dword [esi + 4]
push ebx
push ebp
push eax
call fcn.004316f5
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.004068c0
mov ecx, dword [esi + 4]
push eax
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x24], eax
call fcn.004316f5
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00406600
mov edx, dword [esp + 0x1c]
add dword [esp + 0x14], 1
add ebp, 1
cmp dword [edx + ebp*4], 0x7fffffff
jne 0x407dd3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0044027a
add esp, 0x25c
ret