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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421140
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x42e024]
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 0x4239ac
mov dword [ebp - 0x524], edi
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004040e0
mov dword [ebp - 4], 1
mov dword [ebp - 0x514], 0
call fcn.0041c150
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x416c20
lea ecx, [ebp - 0x514]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x416c0b
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 0x416ba2
cmp word [ebp - 0x218], 0
jne 0x416b70
xor ecx, ecx
jmp 0x416b8f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416b80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004040e0
cmp dword [ebp - 0x21c], 8
jb 0x416bb7
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x416bfd
jmp 0x416bbd
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x51c]
push eax
call fcn.004169f0
test eax, eax
js 0x416bfd
cmp dword [ebp - 0x51c], 0x101
jbe 0x416bfd
push str.Directory_path_is_too_long.
push str.stealth_manager
call fcn.00402590
add esp, 8
lea ecx, [ebp - 0x230]
push 0
push 0x4239ac
call fcn.004040e0
push dword [ebp - 0x514]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x416c20
call ebx
push eax
push str.Query_user_token_error___d
push str.stealth_manager
call fcn.00402590
add esp, 0xc
cmp dword [ebp - 0x220], 0
ja 0x416c75
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 0x416c4a
xor ecx, ecx
jmp 0x416c62
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416c53
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004040e0
xor eax, eax
mov dword [ebp - 0x24c], 7
push eax
push 0x4239ac
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.004040e0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x220], 0
jbe 0x416dfe
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.004040e0
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.0040c1c0
cmp eax, 0xffffffff
je 0x416d98
add eax, esi
lea ecx, [ebp - 0x230]
push eax
push 0
lea eax, [ebp - 0x278]
push eax
call fcn.0040bed0
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x416d7c
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x416d53
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00404710
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.004075c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x416d98
inc eax
push eax
push dword [ebp - 0x278]
call fcn.00404710
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.00404810
push 8
push str.Roaming_
lea ecx, [ebp - 0x260]
call fcn.00406140
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.00406140
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x416dfe
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00404710
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.00407e40
mov eax, dword [edi]
add esp, 8
cmp dword [ebp - 0x250], 0
mov dword [edi + 4], eax
jbe 0x4170b4
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.00416a40
push ecx
lea ecx, [ebp - 0x218]
call fcn.00416990
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 0x41709f
push 0x4239ac
lea ecx, [ebp - 0x248]
call fcn.00403ed0
push 0x4239ac
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 5
call fcn.00403ed0
mov byte [ebp - 4], 6
test byte [ebp - 0x510], 0x10
je 0x417015
cmp dword [ebp - 0x24c], 8
lea edx, [ebp - 0x260]
cmovae edx, dword [ebp - 0x260]
cmp word [edx], 0
jne 0x416eed
xor ecx, ecx
jmp 0x416f07
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416ef2
sub ecx, esi
mov esi, dword [ebp - 0x518]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.004040e0
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 0x416f48
push 1
push 0x423808
lea ecx, [ebp - 0x248]
call fcn.00406140
cmp word [ebp - 0x4e4], 0
jne 0x416f56
xor ecx, ecx
jmp 0x416f6f
lea ecx, [ebp - 0x4e4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416f60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x248]
call fcn.00406140
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x278]
call fcn.00404810
push 1
push 0x423808
lea ecx, [ebp - 0x278]
call fcn.00406140
push 0xf
push str.extensions.json
lea ecx, [ebp - 0x278]
call fcn.00406140
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x290]
call fcn.00406f70
cmp dword [eax + 0x14], 0x10
jb 0x416fd5
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 0x417003
inc eax
push eax
push dword [ebp - 0x290]
call fcn.00404770
test bl, bl
je 0x417015
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040ace0
lea eax, [ebp - 0x510]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x417049
push eax
push str.Error_in_FindNextFile_:__d
push str.stealth_manager
call fcn.00402590
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x417068
inc eax
push eax
push dword [ebp - 0x278]
call fcn.00404710
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 0x4170b4
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00404710
jmp 0x4170b4
call ebx
push eax
push str.Error_in_FindFirstFile_:__d
push str.stealth_manager
call fcn.00402590
add esp, 0xc
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4170cc
inc eax
push eax
push dword [ebp - 0x260]
call fcn.00404710
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 0x417101
inc ecx
push ecx
push dword [ebp - 0x230]
call fcn.00404710
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.0041e02b
mov esp, ebp
pop ebp
ret