Function at 0x41e810
Capabilities:
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x29b8
call fcn.0042cc80
mov eax, dword [0x48706c]
xor eax, esp
mov dword [esp + 0x29b4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1bc]
push str._s.
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], esi
call fcn.0041e290
add esp, 0xc
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x41eae4
mov ecx, 0x47a4d8
lea eax, [esp + 0xa4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41e8a6
test dl, dl
je 0x41e8a2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41e8a6
add eax, 2
add ecx, 2
test dl, dl
jne 0x41e886
xor eax, eax
jmp 0x41e8ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x41eae0
mov eax, 0x47cfcc
lea ecx, [esp + 0xa4]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41e8e0
test dl, dl
je 0x41e8dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41e8e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x41e8c0
xor eax, eax
jmp 0x41e8e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41eae0
mov eax, dword [esp + 0x78]
test eax, 0x400
jne 0x41eae0
test al, 0x10
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x1c0]
je 0x41e93a
push str._s_s_
push eax
call fcn.0041e290
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c8]
add esp, 0x10
push edi
push eax
call fcn.0041e810
add esi, eax
jmp 0x41eadc
push str._s_s
push eax
call fcn.0041e290
add esp, 0x10
mov dword [esp + 0x24], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
push eax
push 0
push 0
push 7
lea eax, [esp + 0x1c8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
jne 0x41eae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41eae0
push dword [esp + 0x24]
call fcn.0042c265
add esp, 4
mov esi, eax
push dword [esp + 0x24]
push 0
push esi
call fcn.00443a00
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x1c0]
push esi
push 7
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
je 0x41ea97
lea eax, [esp + 0x2c]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41ea97
lea eax, [esp + 0x28]
push eax
push 2
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x41ea97
lea eax, [esp + 0x40]
mov dword [esp + 0x34], 0xc0000000
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], 0x120089
push eax
mov dword [esp + 0x4c], 0x120116
mov dword [esp + 0x50], 0x1200a0
mov dword [esp + 0x54], 0x1f01ff
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [esp + 0x30]
mov dword [esp + 0x60], 0
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x14
push eax
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x50]
movaps xmmword [esp + 0x60], xmm0
push eax
push dword [esp + 0x48]
push dword [esp + 0x40]
push esi
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
neg eax
sbb eax, eax
and dword [esp + 0x30], eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41eab8
push esi
call fcn.0042bac6
add esp, 4
cmp dword [esp + 0x30], 0
mov esi, dword [esp + 0x18]
setne al
test al, al
je 0x41eae0
mov eax, dword [esp + 0x98]
add dword [edi], eax
mov ecx, dword [esp + 0x94]
adc dword [edi + 4], ecx
inc esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x41e871
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x29bc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0042bab5
mov esp, ebp
pop ebp
ret 8