Function at 0x4794a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538971
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x575494]
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, 0x5776a0
mov dword [ebp - 0x220], esi
mov ebx, edx
call fcn.00471480
mov dword [ebp - 4], 0
test ebx, ebx
je 0x47952c
push 0x1794
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x479518
push 0x1794
push ebx
mov edi, eax
call fcn.004351f0
jmp 0x47953c
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 0x47953c
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 0x47954b
mov ecx, 0x54ee24
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x10]
test eax, eax
je 0x479582
test ecx, ecx
je 0x479582
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x47958e
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 0x47958e
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.00445030
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 0x4795eb
push 0x54ede0
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052010e
add esp, 0xc
mov eax, dword [esi + 0xe8]
push eax
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0052010e
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x34]
add esp, 0xc
test eax, eax
je 0x47963f
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x47964b
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 0x47964b
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov dword [eax + edi], 0x57
mov eax, dword [0x577698]
push 0xc367
push 0xc367
push eax
push 0x3f0
lea ecx, [esi + 0x48]
mov eax, ebx
call fcn.00425cc0
mov eax, dword [0x5776b8]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x479681.2
movzx ecx, byte [eax + 0x479888]
jmp dword [ecx*4 + 0x479880]
mov byte [ebp - 0x21c], 1
jmp 0x479698
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.00511ef0
mov eax, dword [ebp - 0x220]
mov esi, dword [eax + 0x50]
push 0x55f1
lea ecx, [ebp - 0x238]
push ecx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4796fc
push eax
call fcn.0051ebab
add esp, 4
mov edi, dword [ebp - 0x22c]
test edi, edi
jne 0x47970b
mov edi, 0x54ee24
mov ecx, dword [ebp - 0x23c]
call fcn.00511f60
mov al, byte [ebp + 8]
mov edi, dword [ebp - 0x220]
mov byte [edi + 0xe4], al
test al, al
je 0x47983a
push 0x84d7
lea edx, [ebp - 0x238]
push edx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x238]
xor esi, esi
cmp eax, esi
je 0x47977d
push eax
call fcn.0051ebab
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 0x4797c0
push 0x7d8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4797ac
push 0x7d8
push ebx
mov edi, eax
call fcn.004351f0
mov edi, dword [ebp - 0x220]
jmp 0x4797d0
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 0x4797d0
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 0x4797df
mov ecx, 0x54ee24
mov eax, esi
call fcn.00405d30
mov ecx, dword [edi + 0xe8]
cmp byte [ecx + 0x20c], 0
mov ecx, dword [esi + 0x14]
je 0x479816
test ecx, ecx
je 0x47980e
push 0
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47983a
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 4]
jmp 0x479832
test ecx, ecx
je 0x47982c
push 0
push 0
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47983a
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 4]
mov dword [ecx + esi + 0x10], 6
lea eax, [edi + 0xd0]
call fcn.00448fc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x47985f
push eax
call fcn.0051ebab
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.0051eb9c
mov esp, ebp
pop ebp
ret 4