Function at 0x4f80b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b3f1
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
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 dword [ebp - 0x464], ecx
mov ecx, dword [ecx + 0xbb4]
xor ebx, ebx
xor al, al
cmp ecx, ebx
je 0x4f8819
xor eax, eax
push ebx
mov word [ebp - 0x460], ax
mov ecx, dword [ecx + 0x410]
push ecx
lea edx, [ebp - 0x460]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebx + 0x5c]
cmp word [ebp - 0x460], bx
je 0x4f8177
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x4f8177
cmp word [ebp + eax*2 - 0x462], di
je 0x4f8177
mov edx, 0x208
lea eax, [ebp - 0x460]
cmp word [eax], bx
je 0x4f8154
add eax, 2
dec edx
jne 0x4f8147
jmp 0x4f8177
cmp edx, ebx
je 0x4f8177
mov ecx, 0x208
sub ecx, edx
mov eax, 0x208
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x460]
mov edx, 0x5388e8
call fcn.004230f0
mov ecx, dword [ebp - 0x464]
mov edx, dword [ecx + 0xbb4]
add edx, 0x208
mov esi, 0x208
lea eax, [ebp - 0x460]
cmp word [eax], bx
je 0x4f81a1
add eax, 2
dec esi
jne 0x4f8194
jmp 0x4f81bf
cmp esi, ebx
je 0x4f81bf
mov ecx, 0x208
sub ecx, esi
mov eax, 0x208
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x460]
call fcn.004230f0
lea edx, [ebp - 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x4f8215
cmp word [ebp + eax*2 - 0x462], di
je 0x4f8215
mov edx, 0x208
lea eax, [ebp - 0x460]
cmp word [eax], bx
je 0x4f81f2
add eax, 2
dec edx
jne 0x4f81e5
jmp 0x4f8215
cmp edx, ebx
je 0x4f8215
mov ecx, 0x208
sub ecx, edx
mov eax, 0x208
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x460]
mov edx, 0x5388e8
call fcn.004230f0
mov edi, dword [ebp - 0x464]
mov edx, dword [edi + 0xbb4]
mov esi, 0x208
lea eax, [ebp - 0x460]
lea esp, [esp]
cmp word [eax], bx
je 0x4f823d
add eax, 2
dec esi
jne 0x4f8230
jmp 0x4f825b
cmp esi, ebx
je 0x4f825b
mov ecx, 0x208
sub ecx, esi
mov eax, 0x208
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x460]
call fcn.004230f0
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0xbb4]
cmp byte [eax + 0x416], 0
je 0x4f82c2
lea edi, [ebp - 0x488]
call fcn.004f6b90
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 1
call fcn.004fce50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x488]
cmp eax, ebx
je 0x4f82c2
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x484], ebx
mov dword [ebp - 0x480], ebx
xor ecx, ecx
mov eax, 0x26b7
lea edi, [ebp - 0x47c]
mov word [ebp - 0x50], cx
call fcn.0046dd40
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x47c]
mov eax, dword [ebp - 0x478]
push edx
lea edi, [ebp - 0x470]
call fcn.004fcc10
mov eax, dword [ebp - 0x464]
mov ecx, dword [eax + 0xbb0]
mov eax, dword [ecx]
cmp eax, 0x60
jg 0x4f8529
je 0x4f84e9
dec eax
cmp eax, 0x3f
ja case.0x4f8322.3
movzx edx, byte [eax + 0x4f8858]
jmp dword [edx*4 + 0x4f8838]
lea eax, [ebp - 0x50]
mov esi, 0x538fc8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8340
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fc8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8380
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fd0
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f83c0
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fd0
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8400
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fd0
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8440
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fd8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8480
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fd8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f84c0
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fd8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8500
jmp 0x4f8702
cmp eax, 0x400
jg 0x4f8659
je 0x4f8619
cmp eax, 0x80
je 0x4f85d9
cmp eax, 0x100
je 0x4f8599
cmp eax, 0x200
jne case.0x4f8322.3
lea eax, [ebp - 0x50]
mov esi, 0x538fe0
mov ecx, eax
mov edx, 0x20
sub esi, ecx
jmp 0x4f8570
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8570
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fe0
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f85b0
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fd8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f85f0
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fe8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8630
jmp 0x4f8702
cmp eax, 0x800
je 0x4f86ce
cmp eax, 0x1000
je 0x4f869e
lea eax, [ebp - 0x50]
mov esi, 0x538fc8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
jmp 0x4f8680
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f8680
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fb8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
nop
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f86b0
jmp 0x4f8702
lea eax, [ebp - 0x50]
mov esi, 0x538fe8
mov ecx, eax
mov edx, 0x20
sub esi, ecx
nop
lea ecx, [edx + 0x7fffffde]
test ecx, ecx
je 0x4f86fe
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x4f86fe
mov word [eax], cx
add eax, 2
dec edx
jne 0x4f86e0
jmp 0x4f8702
cmp edx, ebx
jne 0x4f8705
sub eax, 2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
push 0x539d9c
mov word [eax], dx
call esi
push 0x539d9c
lea edi, [ebp - 0x470]
call fcn.004fcc10
lea eax, [ebp - 0x50]
push eax
call esi
lea ecx, [ebp - 0x50]
push ecx
call fcn.004fcc10
mov eax, dword [ebp - 0x470]
cmp dword [ebp - 0x46c], ebx
jle 0x4f878b
mov edx, eax
cmp eax, ebx
jne 0x4f874f
mov edx, 0x538640
mov esi, 0x208
lea eax, [ebp - 0x460]
lea ebx, [ebx]
cmp word [eax], bx
je 0x4f876d
add eax, 2
dec esi
jne 0x4f8760
jmp 0x4f878b
cmp esi, ebx
je 0x4f878b
mov ecx, 0x208
sub ecx, esi
mov eax, 0x208
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x460]
call fcn.004230f0
mov esi, dword [ebp - 0x464]
mov eax, dword [esi + 0x70]
xor edi, edi
xor bl, bl
cmp eax, edi
je 0x4f87c6
lea edx, [ebp - 0x460]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
je 0x4f87b2
mov bl, 1
jmp 0x4f87d4
mov eax, dword [esi + 0x6c]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + esi + 0x6c], eax
xor edi, edi
jmp 0x4f87d4
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx + 4]
mov dword [eax + esi + 0x6c], 0x57
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x47c]
cmp eax, edi
je 0x4f87fd
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x47c], edi
mov dword [ebp - 0x478], edi
mov dword [ebp - 0x474], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x470]
cmp eax, edi
je 0x4f8817
push eax
call fcn.005134a7
add esp, 4
mov al, bl
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