Function at 0x417980
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c500
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
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 - 0x4e8], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x4f0], 0
push eax
push 0x421bac
mov dword [ebp - 0x4f4], 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 - 0x4e4], 0
call fcn.00418fd0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417b10
lea ecx, [ebp - 0x4e4]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x417afb
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x4e4]
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x417a92
cmp word [ebp - 0x218], 0
jne 0x417a60
xor ecx, ecx
jmp 0x417a7f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417a70
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 0x417aa7
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x417aed
jmp 0x417aad
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x4ec]
push eax
call fcn.00417210
test eax, eax
js 0x417aed
cmp dword [ebp - 0x4ec], 0x101
jbe 0x417aed
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 - 0x4e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417b10
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 0x417b65
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 0x417b3a
xor ecx, ecx
jmp 0x417b52
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417b43
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 0x417cee
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 0x417c88
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 0x417c6c
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x417c43
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 0x417c88
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 6
push str.Local_
lea ecx, [ebp - 0x260]
call fcn.00404200
xor ecx, ecx
mov eax, 0x18
cmp word [str.GoogleChromeUser_Data_], cx
cmove eax, ecx
lea ecx, [ebp - 0x260]
push eax
push str.GoogleChromeUser_Data_
call fcn.00404200
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x417cee
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 - 0x4f4]
mov edx, dword [edi + 4]
push ecx
xor ecx, ecx
mov dword [ebp - 0x4f0], 1
call fcn.004069b0
mov eax, dword [edi]
add esp, 8
cmp dword [ebp - 0x250], 0
mov dword [edi + 4], eax
jbe 0x417fa4
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 - 0x4e0]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x4e8], esi
cmp esi, 0xffffffff
je 0x417f8f
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 - 0x4e0], 0x10
je 0x417f05
cmp dword [ebp - 0x24c], 8
lea edx, [ebp - 0x260]
cmovae edx, dword [ebp - 0x260]
cmp word [edx], 0
jne 0x417ddd
xor ecx, ecx
jmp 0x417df7
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417de2
sub ecx, esi
mov esi, dword [ebp - 0x4e8]
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 0x417e38
push 1
push 0x4219b8
lea ecx, [ebp - 0x248]
call fcn.00404200
cmp word [ebp - 0x4b4], 0
jne 0x417e46
xor ecx, ecx
jmp 0x417e5f
lea ecx, [ebp - 0x4b4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417e50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x4b4]
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 0xa
push 0x423404
lea ecx, [ebp - 0x278]
call fcn.00404200
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x290]
call fcn.00405950
cmp dword [eax + 0x14], 0x10
jb 0x417ec5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x417ed9
test al, 0x10
je 0x417ed9
mov bl, 1
jmp 0x417edb
xor bl, bl
mov eax, dword [ebp - 0x27c]
cmp eax, 0x10
jb 0x417ef3
inc eax
push eax
push dword [ebp - 0x290]
call fcn.00402b40
test bl, bl
je 0x417f05
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040b030
lea eax, [ebp - 0x4e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x417f39
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 0x417f58
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 0x417fa4
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00402ae0
jmp 0x417fa4
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 0x417fbc
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 0x417ff1
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