Function at 0x40dc98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0xbc]
push eax
push edi
mov dword [eax], edi
call fcn.004639bf
pop ecx
pop ecx
mov ecx, esi
call fcn.0040da28
mov ecx, esi
call fcn.00478dd0
mov dword [esi + 0x8c], eax
push dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, esi
call fcn.004126e5
cmp dword [0x48cb1c], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0x11
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
jne 0x40dd82
lea eax, [ebp - 0x2c]
mov ebx, 0x48c0d1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, edi
jne 0x40dd19
cmp ebx, 0x48c0d1
jne 0x40dd7a
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40dd6e
push dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
call fcn.0045e6f0
lea eax, [ebx - 9]
push 0x14
push edi
push eax
call fcn.0046d310
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [ebx - 1], 4
mov byte [ebx], 8
mov dword [ebx + 3], edi
add eax, 0x6f
mov dword [ebx + 7], edi
push 1
lea ecx, [ebp - 0x20]
mov dword [ebx - 5], eax
call fcn.0045ee1f
lea ecx, [ebp - 0x20]
mov dword [ebx - 9], eax
call fcn.0045e710
inc dword [ebp - 4]
add dword [ebp - 8], 4
add ebx, 0x14
jmp 0x40dd08
mov eax, dword [ebp - 4]
mov dword [0x48cb1c], eax
cmp dword [esi + 0xd4], 1
jne 0x40dd94
push 1
mov ecx, esi
call fcn.0040e6bd
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add eax, 0xfffffffa
movzx eax, ax
shl eax, 0x10
or al, 0x10
push eax
push edi
push 0x41f
mov dword [ebp - 8], eax
push dword [esi + 0x8c]
call ebx
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
cmp eax, 0x18
setle cl
dec ecx
and ecx, 8
add ecx, 0x10
mov eax, ecx
movzx eax, ax
mov ecx, eax
shl ecx, 0x10
or ecx, eax
push ecx
push edi
push 0x420
push dword [esi + 0x8c]
call ebx
push dword [ebp - 8]
push edi
push 0x41f
push dword [esi + 0x90]
call ebx
cmp dword [esi + 0x2c], edi
je 0x40de0e
push dword [esi + 0x90]
call fcn.0040dba0
pop ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], edi
push dword [esi + 0x90]
call fcn.00463840
add esp, 0xc
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push edi
push edi
push dword [esi + 0x90]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 0x90]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2b0
call fcn.0046d854
cmp eax, edi
pop ecx
je 0x40de66
mov ecx, eax
call fcn.0040e023
jmp 0x40de68
xor eax, eax
push edi
mov dword [esi + 0x3c], eax
push dword [esi + 0x90]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [esi + 0x8c]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
mov dword [ebp - 0x38], edi
push dword [esi + 4]
mov dword [ebp - 0x34], 0x22b
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 4]
cmp dword [0x482748], edi
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 8], eax
jne 0x40dec0
mov dword [0x482748], edi
add eax, 0x1c
push eax
push 0x482718
push 0x496340
call fcn.0040cdd7
push edi
push eax
mov ecx, dword [ebp - 8]
push edi
push edi
push 0x5600094c
lea eax, [ebp - 0x3c]
push edi
push eax
push dword [ebp - 0x10]
call fcn.0040cf8d
push edi
push edi
push 0x31
push dword [esi + 0x64]
call ebx
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00414fb6
mov ecx, dword [esi + 0x3c]
push edi
call fcn.004152f5
cmp dword [0x48cb20], edi
jl 0x40dfb9
mov eax, dword [esi + 0x3c]
mov dword [0x48cb24], eax
mov ecx, dword [esi + 0x3c]
call fcn.004143dd
lea ecx, [esi + 0x44]
lea eax, [esi + 0x64]
neg ecx
sbb ecx, ecx
push 0xa
and ecx, eax
push dword [ecx]
mov ecx, dword [esi + 0x3c]
call fcn.00415275
mov ecx, dword [esi + 0x3c]
push edi
push 7
push 0x6f
push edi
call fcn.00413f60
mov ecx, dword [esi + 0xbc]
lea ebx, [esi + 0xbc]
mov dword [eax + 0x2c], ecx
mov ecx, dword [0x48c0c8]
push edi
push 7
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0x3c]
push 0x70
push edi
call fcn.00413f60
mov ecx, dword [ebx]
push 1
mov dword [eax + 0x2c], ecx
mov ecx, dword [0x48c0dc]
pop ebx
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0x3c]
push ebx
push 0x6f
call fcn.0041533b
mov ecx, dword [esi + 0x3c]
push ebx
push 0x70
call fcn.0041533b
mov ecx, dword [esi + 0x3c]
push ebx
push edi
call fcn.0041536e
mov ecx, dword [esi + 0x3c]
push ebx
push ebx
call fcn.0041536e
mov ecx, esi
call fcn.0040e372
mov dword [0x48cb20], ebx
jmp 0x40dfc7
push dword [0x48cb24]
mov ecx, dword [esi + 0x3c]
call fcn.004154bd
mov eax, dword [esi + 0x3c]
lea ebx, [esi + 0x64]
push dword [eax + 4]
push dword [ebx]
call dword [sym.imp.USER32.dll_SetParent]
lea eax, [esi + 0x44]
mov ecx, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, ebx
push dword [eax]
call fcn.004151f2
cmp dword [esi + 0xac], edi
je 0x40e013
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0xa0]
push dword [eax + 4]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetParent]
push dword [edi + 4]
mov ecx, dword [esi + 0x3c]
call fcn.004151f2
mov ecx, esi
call fcn.0040e4f8
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10