Function at 0x495b20
Capabilities:
Enumerate files on windows
Get common file path
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5153ab
mov eax, dword fs:[0]
push eax
sub esp, 0x5ec
mov eax, dword [0x58fa2c]
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 eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x5f0]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x5b0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5bc], eax
mov eax, dword [ebp + 0x1c]
push 0
mov dword [ebp - 0x5ac], esi
mov dword [ebp - 0x5a8], ebx
mov dword [ebp - 0x5b4], eax
call fcn.00480950
mov dword [ebp - 4], 0
mov ecx, esi
push 1
call fcn.00481020
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call fcn.00488700
add esp, 4
xor ecx, ecx
mov al, byte [ebp + ecx - 0x21c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x119], al
test al, al
jne 0x495bc4
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x495be0
mov eax, dword [0x51bc60]
mov dword [edi], eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x5a4], eax
cmp eax, 0xffffffff
je 0x495e9f
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, eax
nop dword [eax]
test byte [ebp - 0x460], 0x10
je 0x495e6a
mov ecx, 0x568808
lea eax, [ebp - 0x434]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x495c58
test dl, dl
je 0x495c54
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x495c58
add eax, 2
add ecx, 2
test dl, dl
jne 0x495c38
xor eax, eax
jmp 0x495c5d
sbb eax, eax
or eax, 1
test eax, eax
je 0x495e6a
mov ecx, 0x51ce58
lea eax, [ebp - 0x434]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x495c90
test dl, dl
je 0x495c8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x495c90
add eax, 2
add ecx, 2
test dl, dl
jne 0x495c70
xor eax, eax
jmp 0x495c95
sbb eax, eax
or eax, 1
test eax, eax
je 0x495e6a
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call fcn.00488700
lea edx, [ebp - 0x434]
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x495cc6
lea edi, [ebp - 0x21c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x495cd6
mov ecx, edx
lea eax, [ebp - 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00488700
add esp, 4
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x21c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x119], al
test al, al
jne 0x495d00
lea ecx, [ebp - 0x118]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x495d20
mov eax, dword [str.microsoft..32.dll]
mov dword [ecx], eax
mov eax, dword [0x528610]
mov dword [ecx + 4], eax
mov eax, dword [0x528614]
mov dword [ecx + 8], eax
mov eax, dword [0x528618]
mov dword [ecx + 0xc], eax
mov eax, dword [0x52861c]
mov dword [ecx + 0x10], eax
mov al, byte [0x528620]
mov byte [ecx + 0x14], al
lea eax, [ebp - 0x5a0]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x495e5e
nop dword [eax + eax]
test byte [ebp - 0x5a0], 0x10
jne 0x495e27
cmp byte [ebp - 0x574], 0x2e
je 0x495e27
xor eax, eax
nop dword [eax]
mov cl, byte [ebp + eax - 0x21c]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x119], cl
test cl, cl
jne 0x495da0
lea edx, [ebp - 0x574]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x495dc0
lea edi, [ebp - 0x118]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x495dd0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x495df0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.004a4577
lea edx, [ebp - 0x118]
mov esi, eax
mov ecx, edx
add esp, 4
sub esi, ecx
mov cl, byte [edx]
mov byte [esi + edx], cl
inc edx
test cl, cl
jne 0x495e11
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00480c70
push pe_nt_image_headers32
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.004b8570
add esp, 0xc
lea eax, [ebp - 0x5a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x495d80
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call esi
jmp 0x495e64
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x5a4]
push pe_nt_image_headers32
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.004b8570
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x495c20
push ebx
call esi
mov ebx, dword [ebp - 0x5a8]
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x21c]
push eax
call fcn.00488700
add esp, 4
test ebx, ebx
je 0x495f68
mov edx, dword [ebx]
test edx, edx
je 0x495f68
xor ecx, ecx
mov al, byte [ebp + ecx - 0x21c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x119], al
test al, al
jne 0x495ed4
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x495ef0
lea edi, [ebp - 0x118]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x495f00
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x495f20
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.004a4577
lea edx, [ebp - 0x118]
mov esi, eax
mov ecx, edx
add esp, 4
sub esi, ecx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x495f41
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00480c70
mov edx, dword [ebx + 4]
add ebx, 4
test edx, edx
jne 0x495ed2
xor ebx, ebx
nop word [eax + eax]
lea ecx, [ebp - 0x5f0]
call fcn.00481230
test eax, eax
je 0x496091
test ebx, ebx
jle 0x495f8f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
lea ecx, [ebp - 0x5f0]
mov dword [ebp - 0x5a4], ebx
call fcn.004812d0
mov esi, eax
test esi, esi
je 0x496088
nop dword [eax + eax]
push esi
lea ecx, [ebp - 0x5f0]
call fcn.00481380
mov ecx, esi
mov dword [ebp - 0x5a8], eax
call fcn.0042e490
mov edi, eax
push 0
test edi, edi
je 0x496066
push 0
push 3
push 0
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x496072
push 0
lea eax, [ebp - 0x5f4]
mov byte [ebp - 0x118], 0
push eax
push 0x104
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x118], 0x4d
jne 0x496030
cmp byte [ebp - 0x117], 0x5a
je 0x49605b
push dword [ebp - 0x5b0]
lea eax, [ebp - 0x118]
mov byte [ebp - 0x15], 0
push eax
call fcn.004b9010
add esp, 8
test eax, eax
je 0x49605b
mov ecx, dword [ebp - 0x5ac]
push edi
call fcn.00480c70
jmp 0x496064
push edi
call fcn.004a4580
add esp, 4
push 0
push esi
lea ecx, [ebp - 0x5f0]
call fcn.004815c0
mov eax, dword [ebp - 0x5a8]
mov esi, eax
test eax, eax
jne 0x495fb0
mov ebx, dword [ebp - 0x5a4]
cmp ebx, 0x32
jl 0x495f70
push 1
lea ecx, [ebp - 0x5f0]
call fcn.00481020
cmp dword [ebp - 0x5b8], 0
je 0x496425
cmp dword [ebp - 0x5b4], 0
je 0x496425
mov esi, dword [ebp - 0x5ac]
mov ecx, esi
call fcn.00481230
cmp eax, 1
jbe 0x496425
mov ecx, esi
call fcn.004812d0
mov edi, eax
mov dword [ebp - 0x5a8], edi
test edi, edi
je 0x496425
push edi
mov ecx, esi
call fcn.00481380
mov ecx, edi
mov dword [ebp - 0x5d4], eax
call fcn.0042e490
mov ebx, eax
mov dword [ebp - 0x5a4], ebx
test ebx, ebx
je 0x49640f
push 0x138
mov byte [ebp - 0x320], 0
call fcn.00472260
add esp, 4
mov dword [ebp - 0x5f8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x496140
push dword [ebp - 0x5b4]
mov ecx, eax
push ebx
push 1
call fcn.0047d4c0
mov esi, eax
jmp 0x496142
xor esi, esi
mov byte [ebp - 4], 0
test esi, esi
je 0x4961a5
mov eax, dword [esi]
lea ecx, [ebp - 0x320]
push 0
push 1
push 0x104
push ecx
push 1
push dword [ebp - 0x5b8]
mov ecx, esi
push dword [ebp - 0x5b0]
call dword [eax + 8]
cmp byte [ebp - 0x320], 0
jne 0x49619d
mov eax, dword [esi]
lea ecx, [ebp - 0x320]
push 0
push 1
push 0x104
push ecx
push 1
push dword [ebp - 0x5bc]
mov ecx, esi
push dword [ebp - 0x5b0]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
cmp byte [ebp - 0x320], 0
je 0x4963ee
push str.Wow64DisableWow64FsRedirection
push 0x5259b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [ebp - 0x5dc], eax
test eax, eax
je 0x4961de
lea ecx, [ebp - 0x5d8]
push ecx
call eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x320]
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x5cc], ebx
cmp ebx, 0xffffffff
je 0x4963ac
push 0
push 0
push 0
push 0x8000002
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x5d0], eax
test eax, eax
je 0x49639c
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x5c8], edi
test edi, edi
je 0x49637a
mov esi, dword [ebp - 0x5a4]
push 0x5c
push esi
call fcn.004b8c50
add esp, 8
mov edx, esi
test eax, eax
lea ecx, [eax + 1]
cmovne edx, ecx
mov ecx, edx
mov dword [ebp - 0x5c0], edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496276
sub ecx, edx
push 0
push ebx
lea esi, [ecx + 1]
mov dword [ebp - 0x5c4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
sub ebx, esi
je 0x496333
nop dword [eax + eax]
mov edx, dword [ebp - 0x5c0]
mov ecx, edi
sub esi, 4
jb 0x4962c1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4962c6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4962b0
cmp esi, 0xfffffffc
je 0x4962f3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x496323
cmp esi, 0xfffffffd
je 0x4962f3
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x496323
cmp esi, 0xfffffffe
je 0x4962f3
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x496323
cmp esi, 0xffffffff
je 0x4962f3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x496323
cmp ebx, 0x104
jbe 0x496323
add edi, 0x20
sub ebx, 0x20
cmp byte [edi], 0
jne 0x496323
lea edx, [edi + 1]
mov ecx, edi
mov esi, 0x7c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x496323
add ecx, 4
add edx, 4
sub esi, 4
jae 0x496310
jmp 0x496333
mov esi, dword [ebp - 0x5c4]
inc edi
sub ebx, 1
jne 0x4962a0
movzx eax, byte [ebp - 0x320]
xor ecx, ecx
push dword [ebp - 0x5c8]
test ebx, ebx
cmove eax, ecx
mov byte [ebp - 0x320], al
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x5d0]
mov ebx, dword [ebp - 0x5cc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x5a8]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4963b3
push dword [ebp - 0x5d0]
mov byte [ebp - 0x320], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x5a8]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4963b3
push ebx
mov byte [ebp - 0x320], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4963b3
mov byte [ebp - 0x320], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5dc], 0
je 0x4963df
push str.Wow64RevertWow64FsRedirection
push 0x5259b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
test eax, eax
je 0x4963df
push dword [ebp - 0x5d8]
call eax
cmp byte [ebp - 0x320], 0
jne 0x496409
mov ebx, dword [ebp - 0x5a4]
mov esi, dword [ebp - 0x5ac]
mov ecx, esi
push 0
push edi
call fcn.004815c0
push ebx
call fcn.004a4580
add esp, 4
jmp 0x49640f
mov esi, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x5d4]
mov edi, eax
mov dword [ebp - 0x5a8], eax
test eax, eax
jne 0x4960e5
mov ecx, dword [ebp - 0x5ac]
call fcn.00481230
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5f0]
call fcn.00480a10
mov eax, esi
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.004a4566
mov esp, ebp
pop ebp
ret