Function at 0x40bde0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464d8b
push eax
mov eax, dword [0x47c0f8]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [eax + ebp*4]
mov eax, dword [esi + 0x79c]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x40be26
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx eax, byte [esi + 0x200]
dec eax
cmp eax, 0x1d
lea edi, [esi + 0x1a4]
mov dword [esi + 0x1a8], ebx
mov dword [edi], ebx
ja case.0x40be4c.2
movzx ecx, byte [eax + 0x40c0bc]
jmp dword [ecx*4 + 0x40c084]
mov eax, dword [esi + 0x1ec]
cmp eax, ebx
je 0x40bf66
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40bf66
mov edx, dword [esi + 0x1ec]
push edi
push edx
call fcn.00421830
add esp, 8
jmp 0x40bf66
mov eax, dword [0x47c354]
push edi
push 0x11
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov ecx, dword [0x47c354]
push edi
push 5
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov edx, dword [0x47c354]
push edi
push 0x12
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov eax, dword [0x47c354]
push edi
push 3
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov ecx, dword [0x47c354]
push edi
push 0xa
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov edx, dword [0x47c354]
push edi
push ebx
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov eax, dword [0x47c354]
push edi
push 2
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov ecx, dword [0x47c354]
push edi
push 6
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov edx, dword [0x47c354]
push edi
push 4
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov eax, dword [0x47c354]
push edi
push 8
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov ecx, dword [0x47c354]
push edi
push 0x14
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov edx, dword [0x47c354]
push edi
push 0x22
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x40bf66
mov dword [edi], ebx
mov ecx, dword [esi + 0x260]
or edi, 0xffffffff
xor eax, eax
cmp ecx, ebx
mov word [esi + 0x258], 0xfffe
mov dword [esi + 0x7f4], edi
mov dword [esi + 0x7f8], edi
jle 0x40bfab
xor ecx, ecx
lea esp, [esp]
mov edx, dword [esi + 0x25c]
mov dword [ecx + edx + 0x78], ebx
mov edx, dword [esi + 0x260]
inc eax
add ecx, 0x12c
cmp eax, edx
jl 0x40bf90
mov eax, dword [esi + 0xb78]
cmp eax, ebx
mov dword [esi + 0xb74], eax
je 0x40bfde
cmp dword [esi + 0x208], ebx
jne 0x40bfde
push esi
call fcn.00408380
add esp, 4
cmp eax, ebx
je 0x40bfde
cmp dword [eax + 0xb74], ebx
jne 0x40bfde
mov dword [esi + 0xb74], ebx
mov eax, dword [esp + 0x24]
push eax
push ebp
call fcn.004050a0
mov eax, dword [esi + 0xb94]
mov ecx, dword [eax + 8]
add esp, 8
cmp ecx, 1
je 0x40c06c
cmp dword [eax + 0x94], ebx
je 0x40c06c
push 0x20
call fcn.00444aad
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x40c028
mov ecx, dword [esi + 0xb94]
push ecx
mov ecx, eax
call fcn.00407e20
jmp 0x40c02a
xor eax, eax
mov edx, dword [esi + 0xb94]
push eax
mov dword [esi + 0x1a8], eax
mov eax, dword [edx + 0x94]
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ole32.dll_RegisterDragDrop]
test eax, eax
je 0x40c06c
mov edi, dword [esi + 0x1a8]
cmp edi, ebx
je 0x40c066
mov ecx, edi
call fcn.00407a40
push edi
call fcn.00444c35
add esp, 4
mov dword [esi + 0x1a8], ebx
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret