Function at 0x470e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cac1
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x559024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x755e
lea eax, [ebp - 0x22c]
push eax
mov ecx, 0x55a400
mov dword [ebp - 0x220], esi
mov ebx, edx
call fcn.00467b90
mov dword [ebp - 4], 0
test ebx, ebx
je 0x470efc
push 0x1794
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x470ee8
push 0x1794
push ebx
mov edi, eax
call fcn.0042dc20
jmp 0x470f0c
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 4]
lea edi, [edx + esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x470f0c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi + 0x10]
mov dword [eax], 0x57
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x470f1b
mov ecx, 0x538640
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x10]
test eax, eax
je 0x470f52
test ecx, ecx
je 0x470f52
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x470f5e
mov edx, dword [edi]
mov eax, dword [edx + 4]
add eax, edi
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], eax
jmp 0x470f5e
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov dword [eax + edi], 0x57
push 0x102
lea edx, [esi + 0x24]
mov eax, 0x1198
mov ecx, ebx
call fcn.0043cb80
mov ecx, dword [esi + 0xe8]
xor eax, eax
push eax
mov word [ebp - 0x218], ax
mov edx, dword [ecx + 0x208]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
je 0x470fbb
push 0x5388e8
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.005149bd
add esp, 0xc
mov eax, dword [esi + 0xe8]
push eax
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.005149bd
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x34]
add esp, 0xc
test eax, eax
je 0x47100f
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x47101b
mov edx, dword [edi]
mov eax, dword [edx + 4]
add eax, edi
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], eax
jmp 0x47101b
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov dword [eax + edi], 0x57
mov eax, dword [0x55a3f8]
push 0xc367
push 0xc367
push eax
push 0x3f0
lea ecx, [esi + 0x48]
mov eax, ebx
call fcn.0041ecb0
mov eax, dword [0x55a418]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x471051.2
movzx ecx, byte [eax + 0x471258]
jmp dword [ecx*4 + 0x471250]
mov byte [ebp - 0x21c], 1
jmp 0x471068
mov byte [ebp - 0x21c], 0
mov edx, dword [ebp - 0x21c]
push edx
lea eax, [esi + 0xa8]
push 0
mov ecx, 0x40
mov dword [ebp - 0x23c], eax
call fcn.005069b0
mov eax, dword [ebp - 0x220]
mov esi, dword [eax + 0x50]
push 0x55f1
lea ecx, [ebp - 0x238]
push ecx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.004fce50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4710cc
push eax
call fcn.005134a7
add esp, 4
mov edi, dword [ebp - 0x22c]
test edi, edi
jne 0x4710db
mov edi, 0x538640
mov ecx, dword [ebp - 0x23c]
call fcn.00506a20
mov al, byte [ebp + 8]
mov edi, dword [ebp - 0x220]
mov byte [edi + 0xe4], al
test al, al
je 0x47120a
push 0x84d7
lea edx, [ebp - 0x238]
push edx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.004fce50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x238]
xor esi, esi
cmp eax, esi
je 0x47114d
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
lea esi, [edi + 0x84]
test ebx, ebx
je 0x471190
push 0x7d8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x47117c
push 0x7d8
push ebx
mov edi, eax
call fcn.0042dc20
mov edi, dword [ebp - 0x220]
jmp 0x4711a0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea ebx, [ecx + esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x4711a0
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
lea eax, [eax + esi + 0x10]
mov dword [eax], 0x57
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
jne 0x4711af
mov ecx, 0x538640
mov eax, esi
call fcn.00402f90
mov ecx, dword [edi + 0xe8]
cmp byte [ecx + 0x20c], 0
mov ecx, dword [esi + 0x14]
je 0x4711e6
test ecx, ecx
je 0x4711de
push 0
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47120a
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 4]
jmp 0x471202
test ecx, ecx
je 0x4711fc
push 0
push 0
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47120a
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 4]
mov dword [ecx + esi + 0x10], 6
lea eax, [edi + 0xd0]
call fcn.00440760
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x47122f
push eax
call fcn.005134a7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret 4