Function at 0x479370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5388a1
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.00471380
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4793fc
push 0x1794
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4793e8
push 0x1794
push ebx
mov edi, eax
call fcn.00435080
jmp 0x47940c
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 0x47940c
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 0x47941b
mov ecx, 0x54ee24
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x10]
test eax, eax
je 0x479452
test ecx, ecx
je 0x479452
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x47945e
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 0x47945e
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.00444e90
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 0x4794bb
push 0x54ede0
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052003e
add esp, 0xc
mov eax, dword [esi + 0xe8]
push eax
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0052003e
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x34]
add esp, 0xc
test eax, eax
je 0x47950f
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x47951b
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 0x47951b
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.00425b90
mov eax, dword [0x5776b8]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x479551.2
movzx ecx, byte [eax + 0x479758]
jmp dword [ecx*4 + 0x479750]
mov byte [ebp - 0x21c], 1
jmp 0x479568
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.00511e30
mov eax, dword [ebp - 0x220]
mov esi, dword [eax + 0x50]
push 0x55f1
lea ecx, [ebp - 0x238]
push ecx
mov ecx, 0x5776a0
call fcn.00471380
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 0x4795cc
push eax
call fcn.0051eadb
add esp, 4
mov edi, dword [ebp - 0x22c]
test edi, edi
jne 0x4795db
mov edi, 0x54ee24
mov ecx, dword [ebp - 0x23c]
call fcn.00511ea0
mov al, byte [ebp + 8]
mov edi, dword [ebp - 0x220]
mov byte [edi + 0xe4], al
test al, al
je 0x47970a
push 0x84d7
lea edx, [ebp - 0x238]
push edx
mov ecx, 0x5776a0
call fcn.00471380
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 0x47964d
push eax
call fcn.0051eadb
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 0x479690
push 0x7d8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x47967c
push 0x7d8
push ebx
mov edi, eax
call fcn.00435080
mov edi, dword [ebp - 0x220]
jmp 0x4796a0
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 0x4796a0
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 0x4796af
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 0x4796e6
test ecx, ecx
je 0x4796de
push 0
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47970a
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 4]
jmp 0x479702
test ecx, ecx
je 0x4796fc
push 0
push 0
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47970a
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 4]
mov dword [ecx + esi + 0x10], 6
lea eax, [edi + 0xd0]
call fcn.00448e50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x47972f
push eax
call fcn.0051eadb
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.0051eacc
mov esp, ebp
pop ebp
ret 4