Function at 0x4706e1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a139b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4d4028]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi + 0x788], 0x28
mov dword [edi + 0x78c], 0x3e8
call fcn.0044f38f
call fcn.004900d8
mov ecx, dword [eax + 4]
call fcn.004900c0
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov eax, dword [edi + 0x17bc]
cmp eax, ebx
jbe 0x470768
push eax
push 1
mov esi, 0x80
push esi
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x17bc]
push ebx
push esi
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.004900d8
call dword [0x4a2084]
cmp byte [edi + 0x1d9], bl
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 0x370]
mov dword [esp + 0x28], eax
je 0x4707e1
push ebx
push 0x7662
lea eax, [esp + 0x20]
push eax
call fcn.00403ae0
mov byte [esp + 0x60], 1
push dword [eax]
mov ecx, edi
call fcn.0049016e
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], bl
call dword [0x4a2ee8]
push ebx
push 0x7663
lea eax, [esp + 0x20]
push eax
call fcn.00403ae0
mov byte [esp + 0x60], 2
push dword [eax]
mov ecx, edi
push 0xc36e
call fcn.0049023a
lea ecx, [esp + 0x18]
jmp 0x470894
lea ecx, [esp + 0x14]
call dword [0x4a2ef4]
lea eax, [esp + 0x14]
push eax
mov esi, 0xc36e
push esi
mov ecx, edi
mov byte [esp + 0x68], 3
call fcn.004901c8
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call dword [0x4a2d5c]
push 0x4a5e6c
mov ecx, eax
mov byte [esp + 0x64], 4
call dword [0x4a2d90]
neg eax
sbb al, al
inc al
lea ecx, [esp + 0x18]
mov byte [esp + 0x13], al
call dword [0x4a2ee8]
cmp byte [esp + 0x13], bl
je 0x470890
lea ecx, [esp + 0x18]
call dword [0x4a2ef4]
mov byte [esp + 0x60], 5
push dword [edi + 0x1d0]
lea eax, [esp + 0x1c]
push 0x4b14ac
push eax
call dword [0x4a2ee0]
add esp, 0xc
push dword [esp + 0x18]
lea ecx, [esp + 0x18]
push 0x4a5e6c
call dword [0x4a2ecc]
push dword [esp + 0x14]
mov ecx, edi
push esi
call fcn.0049023a
lea ecx, [esp + 0x18]
call dword [0x4a2ee8]
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], bl
call dword [0x4a2ee8]
cmp dword [esp + 0x28], ebx
jne 0x4708ac
cmp byte [edi + 0x17b4], bl
je 0x470905
movzx ecx, byte [edi + 0x1db]
movzx eax, byte [edi + 0x1da]
push edi
push dword [edi + 0x17b8]
lea esi, [edi + 0x98]
push ecx
push ebx
push eax
push eax
call fcn.0044f83b
lea ecx, [esp + 0x18]
call dword [0x4a2ef4]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x64], 6
call fcn.00490162
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.0044f905
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], bl
call dword [0x4a2ee8]
lea esi, [edi + 0x1d4]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
mov dword [esp + 0x40], esi
jne 0x4709a1
push dword [edi + 0x1dc]
lea eax, [esp + 0x1c]
push eax
call fcn.0048d628
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x64], 7
call fcn.0048d706
push eax
mov ecx, esi
mov byte [esp + 0x64], 8
call dword [0x4a2ea0]
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 7
call dword [0x4a2ee8]
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x470989
push 0x104
mov ecx, esi
call dword [0x4a2690]
mov ecx, dword [edi + 0x20]
push eax
push ebx
push ebx
push 5
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call dword [0x4a2bcc]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], bl
call dword [0x4a2ee8]
lea ecx, [esp + 0x18]
call dword [0x4a2ee8]
push edi
lea ecx, [edi + 0x254]
push 0xc370
mov dword [esp + 0x1c], ecx
call fcn.004900a2
push edi
lea ecx, [edi + 0x374]
push 0xc372
call fcn.004900a2
push 0x74
call fcn.004900d2
pop ecx
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x60], 9
je 0x4709f2
push 0x46a
push edi
push eax
lea ebx, [edi + 0x374]
call fcn.0046fde8
xor ebx, ebx
jmp 0x4709f4
xor eax, eax
mov byte [esp + 0x60], bl
mov dword [edi + 0x7a0], eax
mov dword [eax + 0x6c], edi
mov dword [eax + 0x68], 0x470666
mov eax, dword [edi + 0x1e8]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x470a27
or dword [esp + 0x18], 0x100
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
call dword [0x4a2194]
mov esi, dword [esi]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push esi
call dword [eax + 0x160]
push 0x400
push ebx
mov esi, 0x1036
push esi
push dword [edi + 0x274]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x400
push ebx
push esi
push dword [edi + 0x394]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.00470e89
mov esi, edi
call fcn.00471540
call fcn.004900d8
push 0x6d74
call fcn.004178d0
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x17b0], eax
mov eax, esi
call fcn.00456193
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x1e0]
cmp eax, ebx
jbe 0x470b75
push 1
lea ecx, [edi + 0x81c]
push eax
push ecx
call fcn.0045823a
mov eax, dword [edi + 0x1e4]
push 1
lea ecx, [edi + 0xfe4]
push eax
push ecx
mov byte [edi + 0xf81], bl
call fcn.0045823a
mov byte [edi + 0x1749], bl
cmp dword [esi + 0x37c], ebx
je 0x470b99
lea eax, [esp + 0x18]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x1004]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.004901e6
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x20]
push 0x15
add esi, esi
sub esi, dword [esp + 0x3c]
push ebx
add esi, dword [esp + 0x2c]
push ebx
add esi, dword [esp + 0x3c]
lea ecx, [edi + 0xfe4]
push esi
push dword [esp + 0x3c]
push ebx
call fcn.0049017a
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x83c]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.004901e6
push 0x15
push ebx
push ebx
push esi
push dword [esp + 0x3c]
lea ecx, [edi + 0x81c]
push ebx
call fcn.0049017a
jmp 0x470b99
push 7
push dword [esp + 0x1c]
lea eax, [edi + 0x81c]
push eax
call fcn.0045823a
push 7
push dword [esp + 0x1c]
lea eax, [edi + 0xfe4]
push eax
call fcn.0045823a
lea esi, [edi + 0x7ac]
mov ecx, edi
call fcn.0045bdc0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x60], 0xa
fld qword [0x4b8ba8]
sub esp, 0x20
fst qword [esp + 0x18]
lea ecx, [edi + 0x98]
fstp qword [esp + 0x10]
lea edx, [esp + 0x4c]
fldz
fst qword [esp + 8]
fstp qword [esp]
push 0xc36f
call fcn.00409af0
lea esi, [esp + 0x2c]
call fcn.00440760
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x60], 0xb
fld1
lea ebx, [esp + 0x2c]
fstp qword [esp + 0x2c]
lea esi, [esp + 0x44]
call fcn.00409280
fldz
lea ebx, [esp + 0x2c]
fstp qword [esp + 0x2c]
call fcn.00409280
fldz
lea ebx, [esp + 0x2c]
fstp qword [esp + 0x2c]
call fcn.00409280
fldz
lea ebx, [esp + 0x2c]
fstp qword [esp + 0x2c]
call fcn.00409280
fld qword [0x4b8ba8]
sub esp, 0x20
fst qword [esp + 0x18]
fst qword [esp + 0x10]
mov edx, esi
fldz
lea esi, [edi + 0x98]
fstp qword [esp + 8]
mov ecx, esi
fstp qword [esp]
push 0xc370
call fcn.00409af0
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x60], 0xc
fldz
sub esp, 0x20
fst qword [esp + 0x18]
fld1
lea edx, [esp + 0x4c]
fstp qword [esp + 0x10]
mov ecx, esi
fld qword [0x4b8ba8]
fstp qword [esp + 8]
fstp qword [esp]
push 0xc36e
call fcn.00409af0
lea esi, [esp + 0x2c]
mov byte [esp + 0x60], 0xb
call fcn.00440760
lea eax, [esp + 0x44]
call fcn.00403ed0
fldz
fstp qword [esp + 0x2c]
lea ebx, [esp + 0x2c]
lea esi, [esp + 0x44]
call fcn.00409280
fld qword [0x4b8ba8]
lea ebx, [esp + 0x2c]
fstp qword [esp + 0x2c]
call fcn.00409280
fld qword [0x4b8ba8]
lea ebx, [esp + 0x2c]
fstp qword [esp + 0x2c]
call fcn.00409280
fldz
lea ebx, [esp + 0x2c]
fstp qword [esp + 0x2c]
call fcn.00409280
fldz
lea ebx, [esp + 0x2c]
fstp qword [esp + 0x2c]
call fcn.00409280
fld qword [0x4b8ba8]
sub esp, 0x20
fst qword [esp + 0x18]
fld1
mov edx, esi
fstp qword [esp + 0x10]
lea esi, [edi + 0x98]
mov ecx, esi
fstp qword [esp + 8]
fldz
fstp qword [esp]
push 0xc372
call fcn.00409af0
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x60], 0xd
fldz
sub esp, 0x20
fst qword [esp + 0x18]
fst qword [esp + 0x10]
lea edx, [esp + 0x4c]
fld1
mov ecx, esi
fstp qword [esp + 8]
fstp qword [esp]
push 0xc371
call fcn.00409af0
lea esi, [esp + 0x2c]
call fcn.00440760
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x60], 0xe
fldz
sub esp, 0x20
fst qword [esp + 0x18]
fstp qword [esp + 0x10]
lea edx, [esp + 0x4c]
fld1
lea ecx, [edi + 0x98]
fst qword [esp + 8]
fstp qword [esp]
push 1
call fcn.00409af0
lea esi, [esp + 0x2c]
call fcn.00440760
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x60], 0xf
fldz
sub esp, 0x20
fst qword [esp + 0x18]
fstp qword [esp + 0x10]
fld1
fst qword [esp + 8]
fstp qword [esp]
push 2
lea edx, [esp + 0x50]
lea ecx, [edi + 0x98]
call fcn.00409af0
lea esi, [esp + 0x2c]
mov byte [esp + 0x60], 0xb
call fcn.00440760
push edi
lea esi, [edi + 0x1ec]
push 0xc36f
mov ecx, esi
call fcn.004900a2
push 1
push 0x820
mov ecx, esi
call dword [0x4a2190]
push dword [esp + 0x14]
mov ecx, esi
call dword [0x4a218c]
mov eax, dword [esp + 0x40]
push dword [eax]
mov ecx, esi
call dword [0x4a211c]
lea esi, [esp + 0x44]
call fcn.00440760
or dword [esp + 0x60], 0xffffffff
call fcn.004039a0
xor eax, eax
inc eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret