Function at 0x477780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5389ed
mov eax, dword fs:[0]
push eax
sub esp, 0x248
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 al, byte [ebp + 0xc]
mov edi, ecx
push 0x755e
lea ecx, [ebp - 0x23c]
mov ebx, edx
push ecx
mov ecx, 0x5776a0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov byte [edi + 0x438], al
call fcn.00471480
lea esi, [edi + 0x6c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], esi
test ebx, ebx
je 0x47782a
push 0x1794
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x477816
push 0x1794
push ebx
mov edi, eax
call fcn.004351f0
mov edi, dword [ebp - 0x21c]
jmp 0x47783a
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
lea esi, [eax + esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x47783a
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 4]
lea esi, [edx + esi + 0x10]
mov dword [esi], 0x57
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jne 0x477849
mov ecx, 0x54ee24
mov eax, dword [edi + 0x80]
lea esi, [edi + 0x7c]
test eax, eax
je 0x47787c
test ecx, ecx
je 0x47787c
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477888
mov eax, dword [esi]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + esi], eax
mov edi, dword [ebp - 0x21c]
jmp 0x477888
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
mov dword [eax + esi], 0x57
push 0x7582
lea edx, [ebp - 0x230]
push edx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4778c4
push eax
call fcn.0051ebab
add esp, 4
lea esi, [edi + 0x13c]
mov dword [ebp - 0x244], esi
test ebx, ebx
je 0x47790d
push 0x17d6
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4778f9
push 0x17d6
push ebx
mov edi, eax
call fcn.004351f0
mov edi, dword [ebp - 0x21c]
jmp 0x47791d
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea esi, [ecx + esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x47791d
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
lea esi, [eax + esi + 0x10]
mov dword [esi], 0x57
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jne 0x47792c
mov ecx, 0x54ee24
mov eax, dword [edi + 0x150]
lea esi, [edi + 0x14c]
test eax, eax
je 0x47795c
test ecx, ecx
je 0x47795c
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477968
mov ecx, dword [esi]
mov edi, dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + esi], eax
jmp 0x477968
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [eax + esi], 0x57
mov esi, dword [ebp - 0x21c]
mov edx, 0x9d8
add esi, 0x160
push ebx
lea ecx, [edx - 1]
mov edi, 2
mov dword [ebp - 0x240], esi
call fcn.004bea60
push 0x9d7
mov ebx, esi
call fcn.004bec60
push 0x9d8
call fcn.004bec60
push 0x88cc
lea eax, [ebp - 0x230]
push eax
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x4779df
push eax
call fcn.0051ebab
add esp, 4
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jne 0x4779ee
mov ecx, 0x54ee24
mov eax, 0x9d7
call fcn.004bee00
push 0x88cd
lea ecx, [ebp - 0x230]
push ecx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x477a34
push eax
call fcn.0051ebab
add esp, 4
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jne 0x477a43
mov ecx, 0x54ee24
mov eax, 0x9d8
call fcn.004bee00
mov ebx, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x220]
push 0x102
lea edx, [ebx + 0x90]
mov eax, 0x1198
mov ecx, edi
call fcn.00445030
mov eax, dword [ebx + 0x21c]
xor edx, edx
push edx
mov word [ebp - 0x218], dx
mov ecx, dword [eax + 0x410]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
je 0x477ab9
push 0x54ede0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052010e
add esp, 0xc
mov eax, dword [ebx + 0x21c]
add eax, 0x208
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052010e
mov eax, dword [ebx + 0xa4]
add esp, 0xc
test eax, eax
je 0x477b13
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477b27
mov eax, dword [ebx + 0xa0]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + ebx + 0xa0], eax
mov edi, dword [ebp - 0x220]
jmp 0x477b27
mov ecx, dword [ebx + 0xa0]
mov eax, dword [ecx + 4]
mov dword [eax + ebx + 0xa0], 0x57
lea edx, [ebx + 0x188]
push 0x40f
mov eax, 0x11a0
mov ecx, edi
mov dword [ebp - 0x254], edx
call fcn.00445030
mov eax, dword [ebx + 0x21c]
mov ecx, dword [ebx + 0x19c]
add eax, 0x41c
test ecx, ecx
je 0x477b87
test eax, eax
je 0x477b87
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477b9b
mov edx, dword [ebx + 0x198]
mov edi, dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + ebx + 0x198], eax
mov edi, dword [ebp - 0x220]
jmp 0x477b9b
mov eax, dword [ebx + 0x198]
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x198], 0x57
push 0x810c
lea ecx, [ebp - 0x230]
push ecx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x477bd7
push eax
call fcn.0051ebab
add esp, 4
lea esi, [ebx + 0x1ac]
mov dword [ebp - 0x250], esi
test edi, edi
je 0x477c26
push 0x3f7
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x477c12
mov edx, dword [ebp - 0x220]
push 0x3f7
push edx
mov edi, eax
call fcn.004351f0
mov edi, dword [ebp - 0x220]
jmp 0x477c36
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea esi, [ecx + esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x477c36
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
lea esi, [eax + esi + 0x10]
mov dword [esi], 0x57
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jne 0x477c45
mov ecx, 0x54ee24
mov eax, dword [ebx + 0x1c0]
test eax, eax
je 0x477c7d
test ecx, ecx
je 0x477c7d
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477c91
mov ecx, dword [ebx + 0x1bc]
mov edi, dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + ebx + 0x1bc], eax
mov edi, dword [ebp - 0x220]
jmp 0x477c91
mov edx, dword [ebx + 0x1bc]
mov eax, dword [edx + 4]
mov dword [eax + ebx + 0x1bc], 0x57
mov eax, dword [0x577698]
push 0xc367
push 0xc367
push eax
push 0x3f0
lea ecx, [ebx + 0xb4]
mov eax, edi
call fcn.00425cc0
mov eax, dword [0x5776b8]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x477cca.2
movzx ecx, byte [eax + 0x478024]
jmp dword [ecx*4 + 0x47801c]
mov byte [ebp - 0x224], 1
jmp 0x477ce1
mov byte [ebp - 0x224], 0
mov edx, dword [ebp - 0x224]
lea eax, [ebx + 0x114]
push edx
push 0
mov ebx, edi
mov ecx, 0x40
mov dword [ebp - 0x24c], eax
call fcn.00511ef0
mov eax, dword [ebp - 0x21c]
mov esi, dword [eax + 0xbc]
push 0x55f1
lea ecx, [ebp - 0x230]
push ecx
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 5
call fcn.00508010
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x477d4b
push eax
call fcn.0051ebab
add esp, 4
mov edi, dword [ebp - 0x23c]
cmp edi, ebx
jne 0x477d5a
mov edi, 0x54ee24
mov ecx, dword [ebp - 0x24c]
call fcn.00511f60
mov al, byte [ebp + 8]
mov edx, dword [ebp - 0x21c]
mov byte [edx + 0x218], al
cmp al, bl
je 0x477e8e
push 0x84d7
lea eax, [ebp - 0x230]
push eax
mov ecx, 0x5776a0
call fcn.00471480
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.00508010
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x477dc9
push eax
call fcn.0051ebab
add esp, 4
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x220]
add esi, 0xf0
cmp edi, ebx
je 0x477e12
push 0x7d8
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
je 0x477dfe
push 0x7d8
push edi
mov edi, eax
call fcn.004351f0
jmp 0x477e22
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 0x477e22
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi + 0x10]
mov dword [eax], 0x57
mov ecx, dword [ebp - 0x23c]
cmp ecx, ebx
jne 0x477e31
mov ecx, 0x54ee24
mov eax, esi
call fcn.00405d30
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x21c]
mov ecx, dword [esi + 0x14]
cmp byte [eax + 0x414], bl
je 0x477e6c
cmp ecx, ebx
je 0x477e64
push ebx
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x477e8e
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 4]
jmp 0x477e86
cmp ecx, ebx
je 0x477e80
push ebx
push ebx
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x477e8e
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 4]
mov dword [ecx + esi + 0x10], 6
mov ecx, dword [ebp - 0x248]
mov eax, dword [ecx + 8]
cmp byte [ebp + 0xc], bl
jne 0x477f4a
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, ebx
je 0x477eb1
push 5
push eax
call edi
jmp 0x477ec1
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
lea eax, [edx + ecx + 0x10]
mov dword [eax], 6
mov ecx, dword [ebp - 0x244]
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x477ed4
push ebx
push eax
call edi
jmp 0x477ee4
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
lea eax, [edx + ecx + 0x10]
mov dword [eax], 6
mov esi, dword [ebp - 0x240]
push ebx
call fcn.004bed40
mov ecx, dword [ebp - 0x254]
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x477f03
push ebx
push eax
call edi
jmp 0x477f13
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
lea eax, [edx + ecx + 0x10]
mov dword [eax], 6
mov ecx, dword [ebp - 0x250]
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x477f2f
push ebx
push eax
call edi
mov edi, dword [ebp - 0x21c]
jmp 0x477fd7
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
mov edi, dword [ebp - 0x21c]
lea eax, [edx + ecx + 0x10]
mov dword [eax], 6
jmp 0x477fd7
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, ebx
je 0x477f5a
push ebx
push eax
call esi
jmp 0x477f6a
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
lea eax, [edx + ecx + 0x10]
mov dword [eax], 6
mov ecx, dword [ebp - 0x244]
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x477f7e
push 5
push eax
call esi
jmp 0x477f8e
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 4]
lea eax, [edx + ecx + 0x10]
mov dword [eax], 6
mov esi, dword [ebp - 0x240]
push 1
call fcn.004bed40
mov edi, dword [ebp - 0x21c]
mov eax, dword [edi + 0x21c]
cmp dword [eax + 0x418], 2
mov eax, 0x9d8
je 0x477fba
mov eax, 0x9d7
call fcn.004beda0
cmp dword [edi + 0x178], 0x9d8
mov esi, edi
jne 0x477fd1
push 1
jmp 0x477fd2
push ebx
call fcn.00479090
lea eax, [edi + 0x1d0]
call fcn.00448fc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x23c]
cmp eax, ebx
je 0x477ffc
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 8