Function at 0x41d370
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 0x5334d4
mov eax, dword fs:[0]
push eax
sub esp, 0x5e8
mov eax, dword [0x5bc684]
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]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x5bc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c4], ecx
push 0
lea ecx, [ebp - 0x5e4]
mov dword [ebp - 0x5a8], esi
mov dword [ebp - 0x5ac], ebx
mov dword [ebp - 0x5f0], edx
mov dword [ebp - 0x5d0], eax
call fcn.00498380
mov dword [ebp - 4], 0
push 1
mov ecx, esi
call fcn.004989b0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x218]
push edx
call fcn.004bf2e0
add esp, 4
xor eax, eax
jmp 0x41d420
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x114], cl
inc eax
test cl, cl
jne 0x41d420
lea edi, [ebp - 0x114]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41d440
mov eax, dword [0x550fc0]
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x114]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x5a4], eax
cmp eax, 0xffffffff
je 0x41d6d2
test byte [ebp - 0x45c], 0x10
je 0x41d6a3
mov ecx, 0x5509cc
lea eax, [ebp - 0x430]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d4b0
test dl, dl
je 0x41d4ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d4b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d490
xor eax, eax
jmp 0x41d4b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d6a3
mov ecx, 0x550fbc
lea eax, [ebp - 0x430]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d4e8
test dl, dl
je 0x41d4e4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d4e8
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d4c8
xor eax, eax
jmp 0x41d4ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d6a3
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x218]
push ecx
call fcn.004bf2e0
lea eax, [ebp - 0x430]
add esp, 4
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41d520
lea edi, [ebp - 0x218]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41d532
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x218]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004bf2e0
add esp, 4
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x114], cl
inc eax
test cl, cl
jne 0x41d560
lea eax, [ebp - 0x114]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41d580
mov ecx, dword [str.microsoft..32.dll]
mov edx, dword [0x550fa8]
mov dword [eax], ecx
mov ecx, dword [0x550fac]
mov dword [eax + 4], edx
mov edx, dword [0x550fb0]
mov dword [eax + 8], ecx
mov ecx, dword [0x550fb4]
mov dword [eax + 0xc], edx
mov dl, byte [0x550fb8]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
lea eax, [ebp - 0x59c]
push eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41d6a3
test byte [ebp - 0x59c], 0x10
jne 0x41d686
cmp byte [ebp - 0x570], 0x2e
je 0x41d686
xor eax, eax
jmp 0x41d600
mov cl, byte [ebp + eax - 0x218]
mov byte [ebp + eax - 0x114], cl
inc eax
test cl, cl
jne 0x41d600
lea eax, [ebp - 0x570]
mov edx, eax
jmp 0x41d620
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d620
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41d630
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x114]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d651
sub eax, edx
inc eax
push eax
call fcn.004fc6be
lea ecx, [ebp - 0x114]
mov esi, eax
mov edx, ecx
add esp, 4
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x41d670
push eax
lea ecx, [ebp - 0x5e4]
call fcn.00498400
lea eax, [ebp - 0x59c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41d5dc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x5a4]
lea ecx, [ebp - 0x45c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41d472
mov eax, dword [ebp - 0x5a4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x5ac]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x218]
push edx
call fcn.004bf2e0
add esp, 4
test ebx, ebx
je 0x41d7a9
mov eax, dword [ebx]
test eax, eax
je 0x41d7a9
jmp 0x41d710
xor ecx, ecx
jmp 0x41d720
mov dl, byte [ebp + ecx - 0x218]
mov byte [ebp + ecx - 0x114], dl
inc ecx
test dl, dl
jne 0x41d720
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d735
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41d745
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x114]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d766
sub eax, edx
inc eax
push eax
call fcn.004fc6be
lea ecx, [ebp - 0x114]
mov esi, eax
mov edx, ecx
add esp, 4
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x41d785
push eax
lea ecx, [ebp - 0x5e4]
call fcn.00498400
mov eax, dword [ebx + 4]
add ebx, 4
test eax, eax
jne 0x41d710
mov dword [ebp - 0x5a0], 0
lea ecx, [ebp - 0x5e4]
call fcn.00498870
test eax, eax
je 0x41d8d0
cmp dword [ebp - 0x5a0], 0
jle 0x41d7d7
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x5a0]
lea ecx, [ebp - 0x5e4]
call fcn.00498900
mov ebx, eax
test ebx, ebx
je 0x41d8c3
push ebx
lea ecx, [ebp - 0x5e4]
call fcn.00498910
mov ecx, ebx
mov dword [ebp - 0x5b4], eax
call fcn.00497c50
mov edi, eax
push 0
test edi, edi
je 0x41d8a9
push 0
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d8b5
push 0
lea eax, [ebp - 0x5f4]
push eax
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push esi
mov byte [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x114], 0x4d
jne 0x41d872
cmp byte [ebp - 0x113], 0x5a
je 0x41d89e
mov edx, dword [ebp - 0x5bc]
push edx
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 0x11], 0
call fcn.004fee10
add esp, 8
test eax, eax
je 0x41d89e
mov ecx, dword [ebp - 0x5a8]
push edi
call fcn.00498400
jmp 0x41d8a7
push edi
call fcn.004fedfc
add esp, 4
push 0
push ebx
lea ecx, [ebp - 0x5e4]
call fcn.00498780
mov ebx, dword [ebp - 0x5b4]
test ebx, ebx
jne 0x41d7f2
cmp dword [ebp - 0x5a0], 0x32
jl 0x41d7b3
push 1
lea ecx, [ebp - 0x5e4]
call fcn.004989b0
cmp dword [ebp - 0x5c4], 0
je 0x41dc71
cmp dword [ebp - 0x5d0], 0
je 0x41dc71
mov esi, dword [ebp - 0x5a8]
mov ecx, esi
call fcn.00498870
cmp eax, 1
jbe 0x41dc71
mov ecx, esi
call fcn.00498900
mov dword [ebp - 0x5a4], eax
test eax, eax
je 0x41dc71
mov esi, dword [ebp - 0x5a4]
mov ecx, dword [ebp - 0x5a8]
push esi
call fcn.00498910
mov ecx, esi
mov dword [ebp - 0x5b4], eax
call fcn.00497c50
mov dword [ebp - 0x5b0], eax
test eax, eax
je 0x41dc5d
push 0x138
mov byte [ebp - 0x31c], 0
call fcn.00480850
add esp, 4
mov dword [ebp - 0x5ac], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x41d98c
mov ecx, dword [ebp - 0x5d0]
mov edx, dword [ebp - 0x5b0]
push ecx
push edx
push 1
mov ecx, eax
call fcn.00493310
mov esi, eax
jmp 0x41d98e
xor esi, esi
mov byte [ebp - 4], 0
test esi, esi
je 0x41d9f5
mov edx, dword [ebp - 0x5c4]
mov eax, dword [esi]
mov edi, dword [ebp - 0x5bc]
mov eax, dword [eax + 8]
push 0
push 1
push 0x104
lea ecx, [ebp - 0x31c]
push ecx
push 1
push edx
push edi
mov ecx, esi
call eax
cmp byte [ebp - 0x31c], 0
jne 0x41d9eb
mov ecx, dword [ebp - 0x5f0]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push 0
push 1
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 1
push ecx
push edi
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp byte [ebp - 0x31c], 0
je 0x41dc3a
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x5ec], eax
test eax, eax
je 0x41da2c
lea ecx, [ebp - 0x5e8]
push ecx
call eax
mov byte [ebp - 4], 2
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x31c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x5cc], ebx
cmp ebx, 0xffffffff
je 0x41dbf9
push 0
push 0
push 0
push 0x8000002
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x5ac], eax
test eax, eax
je 0x41dbe9
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x5b8], edi
test edi, edi
je 0x41dbcc
mov ecx, dword [ebp - 0x5b0]
push 0x5c
push ecx
call fcn.004ff460
mov esi, eax
add esp, 8
test esi, esi
je 0x41dab8
inc esi
jmp 0x41dabe
mov esi, dword [ebp - 0x5b0]
mov eax, esi
mov dword [ebp - 0x5c0], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41dad0
sub eax, edx
push 0
inc eax
push ebx
mov dword [ebp - 0x5c8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, dword [ebp - 0x5c8]
je 0x41dba5
lea edx, [edi + 1]
mov dword [ebp - 0x5a0], edx
jmp 0x41db06
mov esi, dword [ebp - 0x5c0]
mov ecx, dword [ebp - 0x5c8]
mov edx, esi
mov esi, edi
cmp ecx, 4
jb 0x41db29
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x41db8b
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x41db15
test ecx, ecx
je 0x41db4d
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x41db8b
cmp ecx, 1
jbe 0x41db4d
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x41db8b
cmp ecx, 2
jbe 0x41db4d
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x41db8b
cmp eax, 0x104
jbe 0x41db8b
mov ecx, dword [ebp - 0x5a0]
add edi, 0x20
add ecx, 0x20
sub eax, 0x20
cmp byte [edi], 0
mov dword [ebp - 0x5a0], ecx
jne 0x41db8b
mov esi, edi
mov edx, 0x80
sub esi, ecx
cmp edx, 4
jb 0x41db99
mov ebx, dword [ecx + esi]
cmp ebx, dword [ecx]
jne 0x41db8b
sub edx, 4
add ecx, 4
jmp 0x41db77
inc dword [ebp - 0x5a0]
inc edi
dec eax
jne 0x41db00
mov ebx, dword [ebp - 0x5cc]
mov edi, dword [ebp - 0x5b8]
test eax, eax
jne 0x41dbaf
mov byte [ebp - 0x31c], al
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x5ac]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41dc00
mov edx, dword [ebp - 0x5ac]
push edx
mov byte [ebp - 0x31c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41dc00
push ebx
mov byte [ebp - 0x31c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41dc00
mov byte [ebp - 0x31c], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x5ec], 0
je 0x41dc31
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dc31
mov ecx, dword [ebp - 0x5e8]
push ecx
call eax
cmp byte [ebp - 0x31c], 0
jne 0x41dc5d
mov edx, dword [ebp - 0x5a4]
mov ecx, dword [ebp - 0x5a8]
push 0
push edx
call fcn.00498780
mov eax, dword [ebp - 0x5b0]
push eax
call fcn.004fedfc
add esp, 4
mov eax, dword [ebp - 0x5b4]
mov dword [ebp - 0x5a4], eax
test eax, eax
jne 0x41d922
mov ecx, dword [ebp - 0x5a8]
call fcn.00498870
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5e4]
call fcn.00498f60
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.004fe1f5
mov esp, ebp
pop ebp
ret