Function at 0x477640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53891d
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.00471380
lea esi, [edi + 0x6c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], esi
test ebx, ebx
je 0x4776ea
push 0x1794
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4776d6
push 0x1794
push ebx
mov edi, eax
call fcn.00435080
mov edi, dword [ebp - 0x21c]
jmp 0x4776fa
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 0x4776fa
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 0x477709
mov ecx, 0x54ee24
mov eax, dword [edi + 0x80]
lea esi, [edi + 0x7c]
test eax, eax
je 0x47773c
test ecx, ecx
je 0x47773c
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477748
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 0x477748
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.00471380
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 0x477784
push eax
call fcn.0051eadb
add esp, 4
lea esi, [edi + 0x13c]
mov dword [ebp - 0x244], esi
test ebx, ebx
je 0x4777cd
push 0x17d6
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4777b9
push 0x17d6
push ebx
mov edi, eax
call fcn.00435080
mov edi, dword [ebp - 0x21c]
jmp 0x4777dd
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 0x4777dd
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 0x4777ec
mov ecx, 0x54ee24
mov eax, dword [edi + 0x150]
lea esi, [edi + 0x14c]
test eax, eax
je 0x47781c
test ecx, ecx
je 0x47781c
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477828
mov ecx, dword [esi]
mov edi, dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + esi], eax
jmp 0x477828
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.004bea70
push 0x9d7
mov ebx, esi
call fcn.004bec70
push 0x9d8
call fcn.004bec70
push 0x88cc
lea eax, [ebp - 0x230]
push eax
mov ecx, 0x5776a0
call fcn.00471380
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 0x47789f
push eax
call fcn.0051eadb
add esp, 4
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jne 0x4778ae
mov ecx, 0x54ee24
mov eax, 0x9d7
call fcn.004bee10
push 0x88cd
lea ecx, [ebp - 0x230]
push ecx
mov ecx, 0x5776a0
call fcn.00471380
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 0x4778f4
push eax
call fcn.0051eadb
add esp, 4
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jne 0x477903
mov ecx, 0x54ee24
mov eax, 0x9d8
call fcn.004bee10
mov ebx, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x220]
push 0x102
lea edx, [ebx + 0x90]
mov eax, 0x1198
mov ecx, edi
call fcn.00444e90
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 0x477979
push 0x54ede0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052003e
add esp, 0xc
mov eax, dword [ebx + 0x21c]
add eax, 0x208
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052003e
mov eax, dword [ebx + 0xa4]
add esp, 0xc
test eax, eax
je 0x4779d3
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x4779e7
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 0x4779e7
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.00444e90
mov eax, dword [ebx + 0x21c]
mov ecx, dword [ebx + 0x19c]
add eax, 0x41c
test ecx, ecx
je 0x477a47
test eax, eax
je 0x477a47
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477a5b
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 0x477a5b
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.00471380
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 0x477a97
push eax
call fcn.0051eadb
add esp, 4
lea esi, [ebx + 0x1ac]
mov dword [ebp - 0x250], esi
test edi, edi
je 0x477ae6
push 0x3f7
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x477ad2
mov edx, dword [ebp - 0x220]
push 0x3f7
push edx
mov edi, eax
call fcn.00435080
mov edi, dword [ebp - 0x220]
jmp 0x477af6
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 0x477af6
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 0x477b05
mov ecx, 0x54ee24
mov eax, dword [ebx + 0x1c0]
test eax, eax
je 0x477b3d
test ecx, ecx
je 0x477b3d
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x477b51
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 0x477b51
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.00425b90
mov eax, dword [0x5776b8]
and eax, 0x3ff
dec eax
cmp eax, 0x59
ja case.0x477b8a.2
movzx ecx, byte [eax + 0x477ee4]
jmp dword [ecx*4 + 0x477edc]
mov byte [ebp - 0x224], 1
jmp 0x477ba1
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.00511e30
mov eax, dword [ebp - 0x21c]
mov esi, dword [eax + 0xbc]
push 0x55f1
lea ecx, [ebp - 0x230]
push ecx
mov ecx, 0x5776a0
call fcn.00471380
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 0x477c0b
push eax
call fcn.0051eadb
add esp, 4
mov edi, dword [ebp - 0x23c]
cmp edi, ebx
jne 0x477c1a
mov edi, 0x54ee24
mov ecx, dword [ebp - 0x24c]
call fcn.00511ea0
mov al, byte [ebp + 8]
mov edx, dword [ebp - 0x21c]
mov byte [edx + 0x218], al
cmp al, bl
je 0x477d4e
push 0x84d7
lea eax, [ebp - 0x230]
push eax
mov ecx, 0x5776a0
call fcn.00471380
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 0x477c89
push eax
call fcn.0051eadb
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 0x477cd2
push 0x7d8
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
je 0x477cbe
push 0x7d8
push edi
mov edi, eax
call fcn.00435080
jmp 0x477ce2
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 0x477ce2
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 0x477cf1
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 0x477d2c
cmp ecx, ebx
je 0x477d24
push ebx
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x477d4e
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 4]
jmp 0x477d46
cmp ecx, ebx
je 0x477d40
push ebx
push ebx
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x477d4e
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 0x477e0a
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, ebx
je 0x477d71
push 5
push eax
call edi
jmp 0x477d81
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 0x477d94
push ebx
push eax
call edi
jmp 0x477da4
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.004bed50
mov ecx, dword [ebp - 0x254]
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x477dc3
push ebx
push eax
call edi
jmp 0x477dd3
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 0x477def
push ebx
push eax
call edi
mov edi, dword [ebp - 0x21c]
jmp 0x477e97
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 0x477e97
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, ebx
je 0x477e1a
push ebx
push eax
call esi
jmp 0x477e2a
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 0x477e3e
push 5
push eax
call esi
jmp 0x477e4e
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.004bed50
mov edi, dword [ebp - 0x21c]
mov eax, dword [edi + 0x21c]
cmp dword [eax + 0x418], 2
mov eax, 0x9d8
je 0x477e7a
mov eax, 0x9d7
call fcn.004bedb0
cmp dword [edi + 0x178], 0x9d8
mov esi, edi
jne 0x477e91
push 1
jmp 0x477e92
push ebx
call fcn.00478f60
lea eax, [edi + 0x1d0]
call fcn.00448e50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x23c]
cmp eax, ebx
je 0x477ebc
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 8