Function at 0x4172f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c470
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
mov eax, dword [0x428024]
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 edi, ecx
mov dword [ebp - 0x518], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x520], 0
push eax
push 0x421bac
mov dword [ebp - 0x524], edi
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00403fe0
mov dword [ebp - 4], 1
mov dword [ebp - 0x514], 0
call fcn.00418fd0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417480
lea ecx, [ebp - 0x514]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x41746b
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x514]
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x417402
cmp word [ebp - 0x218], 0
jne 0x4173d0
xor ecx, ecx
jmp 0x4173ef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4173e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403fe0
cmp dword [ebp - 0x21c], 8
jb 0x417417
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x41745d
jmp 0x41741d
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x51c]
push eax
call fcn.00417210
test eax, eax
js 0x41745d
cmp dword [ebp - 0x51c], 0x101
jbe 0x41745d
push str.Directory_path_is_too_long.
push str.stealth_manager
call fcn.0040bc30
add esp, 8
lea ecx, [ebp - 0x230]
push 0
push 0x421bac
call fcn.00403fe0
push dword [ebp - 0x514]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417480
call ebx
push eax
push str.Query_user_token_error___d
push str.stealth_manager
call fcn.0040bc30
add esp, 0xc
cmp dword [ebp - 0x220], 0
ja 0x4174d5
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x4174aa
xor ecx, ecx
jmp 0x4174c2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4174b3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403fe0
xor eax, eax
mov dword [ebp - 0x24c], 7
push eax
push 0x421bac
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.00403fe0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x220], 0
jbe 0x41765e
push 9
xor eax, eax
mov dword [ebp - 0x234], 7
push str.AppData_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00403fe0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov esi, dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
push esi
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00407fd0
cmp eax, 0xffffffff
je 0x4175f8
add eax, esi
lea ecx, [ebp - 0x230]
push eax
push 0
lea eax, [ebp - 0x278]
push eax
call fcn.00407ce0
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4175dc
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4175b3
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00402ae0
xor eax, eax
mov dword [ebp - 0x21c], 7
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004060b0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x4175f8
inc eax
push eax
push dword [ebp - 0x278]
call fcn.00402ae0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.004040e0
push 8
push str.Roaming_
lea ecx, [ebp - 0x260]
call fcn.00404200
xor ecx, ecx
mov eax, 0x19
cmp word [str.MozillaFirefoxProfiles_], cx
cmove eax, ecx
lea ecx, [ebp - 0x260]
push eax
push str.MozillaFirefoxProfiles_
call fcn.00404200
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x41765e
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00402ae0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push dword [ebp - 0x524]
mov edx, dword [edi + 4]
push ecx
xor ecx, ecx
mov dword [ebp - 0x520], 1
call fcn.004069b0
mov eax, dword [edi]
add esp, 8
cmp dword [ebp - 0x250], 0
mov dword [edi + 4], eax
jbe 0x417914
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push ecx
cmovae eax, dword [ebp - 0x260]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x218]
call fcn.00417260
push ecx
lea ecx, [ebp - 0x218]
call fcn.004171b0
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x518], esi
cmp esi, 0xffffffff
je 0x4178ff
push 0x421bac
lea ecx, [ebp - 0x248]
call fcn.00403db0
push 0x421bac
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 5
call fcn.00403db0
mov byte [ebp - 4], 6
test byte [ebp - 0x510], 0x10
je 0x417875
cmp dword [ebp - 0x24c], 8
lea edx, [ebp - 0x260]
cmovae edx, dword [ebp - 0x260]
cmp word [edx], 0
jne 0x41774d
xor ecx, ecx
jmp 0x417767
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417752
sub ecx, esi
mov esi, dword [ebp - 0x518]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00403fe0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x248]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4177a8
push 1
push 0x4219b8
lea ecx, [ebp - 0x248]
call fcn.00404200
cmp word [ebp - 0x4e4], 0
jne 0x4177b6
xor ecx, ecx
jmp 0x4177cf
lea ecx, [ebp - 0x4e4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4177c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x248]
call fcn.00404200
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x278]
call fcn.004040e0
push 1
push 0x4219b8
lea ecx, [ebp - 0x278]
call fcn.00404200
push 0xf
push str.extensions.json
lea ecx, [ebp - 0x278]
call fcn.00404200
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x290]
call fcn.00405950
cmp dword [eax + 0x14], 0x10
jb 0x417835
mov eax, dword [eax]
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x27c]
sete bl
cmp eax, 0x10
jb 0x417863
inc eax
push eax
push dword [ebp - 0x290]
call fcn.00402b40
test bl, bl
je 0x417875
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040b030
lea eax, [ebp - 0x510]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417722
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4178a9
push eax
push str.Error_in_FindNextFile_:__d
push str.stealth_manager
call fcn.0040bc30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x4178c8
inc eax
push eax
push dword [ebp - 0x278]
call fcn.00402ae0
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x417914
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00402ae0
jmp 0x417914
call ebx
push eax
push str.Error_in_FindFirstFile_:__d
push str.stealth_manager
call fcn.0040bc30
add esp, 0xc
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x41792c
inc eax
push eax
push dword [ebp - 0x260]
call fcn.00402ae0
mov ecx, dword [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp ecx, 8
jb 0x417961
inc ecx
push ecx
push dword [ebp - 0x230]
call fcn.00402ae0
mov eax, edi
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.00419532
mov esp, ebp
pop ebp
ret