Function at 0x418a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
lea eax, [esi + 0xbc]
push eax
push ebp
mov dword [eax], ebp
call fcn.004b50e0
add esp, 8
mov ecx, esi
call fcn.004186e0
mov ecx, esi
call fcn.00442110
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x8c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, esi
call fcn.0041f910
mov dword [esp + 0x20], eax
mov eax, dword [0x4e473c]
cmp eax, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x11
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], ebp
jne 0x418b27
lea edx, [esp + 0x34]
mov edi, 0x4e3cf1
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, ebp
jne 0x418aa1
cmp edi, 0x4e3cf1
jne 0x418b1e
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x418b02
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push edx
call fcn.004acdc0
lea ebx, [edi - 9]
xor eax, eax
mov ecx, ebx
mov edx, dword [esp + 0x14]
add edx, 0x6f
push 1
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [edi - 1], 4
mov byte [edi], 8
mov dword [edi + 3], ebp
mov dword [edi + 7], ebp
lea ecx, [esp + 0x30]
mov dword [edi - 5], edx
call fcn.004ada30
lea ecx, [esp + 0x2c]
mov dword [ebx], eax
call fcn.004acdf0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc edx
add ecx, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
add edi, 0x14
jmp 0x418a8f
mov eax, dword [esp + 0x14]
mov dword [0x4e473c], eax
cmp dword [esi + 0xd4], 1
jne 0x418b39
push 1
mov ecx, esi
call fcn.00419760
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x8c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [ecx - 6]
and edi, 0xffff
shl edi, 0x10
or edi, 0x10
push edi
push ebp
push 0x41f
push edx
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
and eax, 0xffff
mov edx, eax
shl edx, 0x10
or edx, eax
mov eax, dword [esi + 0x8c]
push edx
push ebp
push 0x420
push eax
call ebx
mov ecx, dword [esi + 0x90]
push edi
push ebp
push 0x41f
push ecx
call ebx
cmp dword [esi + 0x2c], ebp
je 0x418bbb
mov edx, dword [esi + 0x90]
push edx
call fcn.004188e0
add esp, 4
mov edx, dword [esi + 0x90]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.004b4c50
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x90]
add esp, 0xc
push ebp
push eax
push ecx
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x90]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
push 0x2b0
call fcn.004c58a5
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x418c94
mov ecx, ebx
call fcn.00421760
mov cl, byte [esp + 0x13]
mov dword [ebx + 0x20], 0x4d3910
or eax, 0xffffffff
mov byte [ebx + 0x25c], cl
mov dword [ebx + 0x260], ebp
mov dword [ebx + 0x264], ebp
mov dword [ebx + 0x268], ebp
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x4c], eax
lea edx, [ebx + 0x26c]
xor eax, eax
xor ecx, ecx
mov dword [edx], eax
xor edi, edi
mov dword [ebx], 0x4d3d84
mov dword [ebx + 0x20], 0x4d3d80
mov dword [edx + 4], ecx
mov ecx, 0x80
mov dword [ebx + 0x48], ebp
mov dword [ebx + 0x38], ebp
mov dword [edx + 8], edi
lea edi, [ebx + 0x50]
mov dword [edx + 0xc], eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx + 0x280], 0xffffffff
jmp 0x418c96
xor ebx, ebx
mov eax, dword [esi + 0x90]
push ebp
push eax
mov dword [esi + 0x3c], ebx
call edi
mov ecx, dword [esi + 0x8c]
push ebp
push ecx
call edi
mov eax, dword [esi + 4]
lea edx, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], 0x22b
mov dword [esp + 0x54], 0x20
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x4da728]
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0x3c]
cmp eax, ebp
mov dword [esp + 0x20], ecx
jne 0x418ced
mov dword [0x4da728], ebp
lea edx, [edi + 0x1c]
push edx
push 0x4da6f8
push 0x4edfe0
call fcn.00416a70
mov ebx, eax
cmp bx, bp
je 0x418d50
lea eax, [edi + 8]
push edi
push eax
push 0x4edfe0
call fcn.0040bbb0
mov ecx, dword [0x4edfe4]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
push ebp
push ecx
mov ecx, dword [esp + 0x54]
push edi
sub ecx, eax
push edx
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x54]
sub edx, ecx
and ebx, 0xffff
push edx
push eax
push ecx
push 0x5600094c
push ebp
push ebx
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov eax, dword [esi + 0x64]
lea edi, [esi + 0x64]
push ebp
push ebp
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x3c]
push eax
call fcn.004239f0
mov ecx, dword [esi + 0x3c]
push ebp
call fcn.00423e00
cmp dword [0x4e4740], ebp
jl 0x418e28
mov ecx, dword [esi + 0x3c]
mov dword [0x4e4744], ecx
mov ecx, dword [esi + 0x3c]
call fcn.00422600
lea eax, [esi + 0x44]
mov ecx, dword [esi + 0x3c]
neg eax
sbb eax, eax
push 0xa
and eax, edi
mov edx, dword [eax]
push edx
call fcn.00423d50
mov ecx, dword [esi + 0x3c]
push ebp
push 7
push 0x6f
push ebp
call fcn.004220d0
mov ecx, dword [esi + 0xbc]
push ebp
mov dword [eax + 0x2c], ecx
mov edx, dword [0x4e3ce8]
push 7
mov dword [eax + 0x28], edx
mov ecx, dword [esi + 0x3c]
push 0x70
push ebp
call fcn.004220d0
mov ecx, dword [esi + 0xbc]
push 1
mov dword [eax + 0x2c], ecx
mov edx, dword [0x4e3cfc]
mov dword [eax + 0x28], edx
mov ecx, dword [esi + 0x3c]
push 0x6f
call fcn.00423e60
mov ecx, dword [esi + 0x3c]
push 1
push 0x70
call fcn.00423e60
mov ecx, dword [esi + 0x3c]
push 1
push ebp
call fcn.00423ea0
mov ecx, dword [esi + 0x3c]
push 1
push 1
call fcn.00423ea0
mov ecx, esi
call fcn.00419230
mov dword [0x4e4740], 1
jmp 0x418e36
mov eax, dword [0x4e4744]
mov ecx, dword [esi + 0x3c]
push eax
call fcn.00424260
mov ecx, dword [esi + 0x3c]
mov eax, dword [edi]
mov ebx, dword [sym.imp.USER32.dll_SetParent]
mov edx, dword [ecx + 4]
push edx
push eax
call ebx
lea eax, [esi + 0x44]
neg eax
sbb eax, eax
and eax, edi
mov ecx, dword [eax]
push ecx
mov ecx, dword [esi + 0x3c]
call fcn.00423ca0
cmp dword [esi + 0xac], ebp
je 0x418e83
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0xa0]
mov eax, dword [edx + 4]
mov ecx, dword [edi + 4]
push eax
push ecx
call ebx
mov edx, dword [edi + 4]
mov ecx, dword [esi + 0x3c]
push edx
call fcn.00423ca0
mov ecx, esi
call fcn.00419540
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 0x10