Function at 0x40df40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0xb0]
push edi
push ebx
mov dword [edi], ebx
call fcn.00460f8c
pop ecx
pop ecx
mov ecx, esi
call fcn.0040dcc5
mov ecx, esi
call fcn.0041189c
mov dword [esi + 0xb4], eax
push dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, esi
call fcn.00412873
mov dword [ebp - 0x10], eax
mov eax, dword [0x492fe8]
push ebx
push eax
push 0xe801
push dword [esi + 4]
push dword [ebp - 0x10]
push 0x64
push ebx
push ebx
push 0x5600094c
push ebx
push 0x47f0f8
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push dword [edi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xc], eax
mov dword [esi + 0xb8], eax
push ebx
push 0x430
push eax
call edi
push ebx
push 0x14
push 0x41e
push dword [ebp - 0xc]
call edi
cmp dword [0x489848], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x11
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
jne 0x40e088
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0x488e31
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, ebx
jne 0x40e013
cmp dword [ebp - 4], 0x488e31
jne 0x40e080
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40e073
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.0045bcba
mov eax, dword [ebp - 4]
push 0x14
add eax, 0xfffffff7
push ebx
push eax
call fcn.0046aa50
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, 0x6f
mov byte [eax - 1], 4
mov byte [eax], 8
mov dword [eax + 3], ebx
mov dword [eax + 7], ebx
mov dword [eax - 5], ecx
push 1
lea ecx, [ebp - 0x24]
call fcn.0045c3fd
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff7
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.0045bcda
inc dword [ebp - 8]
add dword [ebp - 0xc], 4
add dword [ebp - 4], 0x14
jmp 0x40e001
mov eax, dword [ebp - 8]
mov dword [0x489848], eax
push 0x488e28
push dword [0x489848]
push 0x444
push dword [esi + 0xb8]
call edi
push 1
push ebx
push 0x454
push dword [esi + 0xb8]
call edi
cmp dword [esi + 0xd0], 1
jne 0x40e0c2
push 1
mov ecx, esi
call fcn.0040e5f9
mov ecx, esi
call fcn.0040e24c
mov ecx, esi
call fcn.0040e434
push 0xfffffffffffffff0
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ch, 0x10
cmp eax, ecx
je 0x40e0f6
push ecx
push 0xfffffffffffffff0
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push ebx
push 0x454
push dword [esi + 0xb8]
call edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffa
movzx eax, ax
shl eax, 0x10
or al, 0x10
push eax
push ebx
push 0x41f
mov dword [ebp - 0xc], eax
push dword [esi + 0xb4]
call edi
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 ebx
push 0x420
push dword [esi + 0xb4]
call edi
push dword [ebp - 0xc]
push ebx
push 0x41f
push dword [esi + 0xb8]
call edi
cmp dword [esi + 0x2c], ebx
je 0x40e17a
push dword [esi + 0xb8]
call fcn.0040de48
pop ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], ebx
push dword [esi + 0xb8]
call fcn.00460e0d
add esp, 0xc
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push ebx
push ebx
push ebx
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0040dc2d
mov ecx, esi
call fcn.00411d06
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10