Function at 0x41e410
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x468]
push 0
mov ebp, ecx
push edi
call fcn.00498c50
add esp, 8
test eax, eax
je 0x41e441
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41e475
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
jle 0x41e475
cmp esi, eax
jge 0x41e461
test esi, esi
jl 0x41e461
mov eax, dword [ebp + 4]
mov ecx, dword [eax + esi*4]
jmp 0x41e463
xor ecx, ecx
test ecx, ecx
je 0x41e46d
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebp + 8]
inc esi
cmp esi, eax
jl 0x41e455
mov eax, dword [ebp + 4]
push eax
call fcn.00498600
add esp, 4
push 0x80
call fcn.004985f0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x474]
add esp, 4
mov dword [ebp + 8], 0
test eax, eax
mov dword [ebp + 0xc], 0x1f
mov dword [ebp + 0x14], 0x40
jne 0x41e4bc
mov eax, dword [esp + 0x46c]
test eax, eax
jne 0x41e4c1
mov eax, 0x4be9f8
push eax
lea ecx, [esp + 0x364]
push edi
push ecx
call fcn.0043c6e0
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x360]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x41e500
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret 0xc
test byte [esp + 0x18], 0x10
je 0x41e545
mov esi, 0x4be298
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41e538
test cl, cl
je 0x41e534
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41e538
add eax, 2
add esi, 2
test cl, cl
jne 0x41e510
xor eax, eax
jmp 0x41e53d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41e5fd
push 0x64
call fcn.004985f0
add esp, 4
test eax, eax
je 0x41e567
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0041d170
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x41e573
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
push esi
call fcn.0041dee0
push eax
call fcn.0043c610
add esp, 4
mov dword [esi + 0x14], eax
test esi, esi
je 0x41e5fd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x41e5ed
add eax, dword [ebp + 0x14]
lea eax, [eax*4 + 4]
push eax
call fcn.004985f0
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov ebx, eax
add esp, 4
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call fcn.00498600
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add esp, 4
add eax, ecx
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov dword [eax + edx*4], esi
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41e500
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x470]
test eax, eax
je 0x41e6f4
mov edi, dword [esp + 0x46c]
test edi, edi
je 0x41e6f4
cmp byte [edi], 0
je 0x41e6f4
mov esi, 0x4be9f4
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41e66e
test cl, cl
je 0x41e66a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41e66e
add eax, 2
add esi, 2
test cl, cl
jne 0x41e646
xor eax, eax
jmp 0x41e673
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41e6f4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x158]
push edi
push eax
call ebx
lea ecx, [esp + 0x158]
push ecx
call fcn.004a7f30
mov eax, dword [ebp + 8]
add esp, 4
xor esi, esi
test eax, eax
jle 0x41e6f4
cmp esi, eax
jge 0x41e6b1
test esi, esi
jl 0x41e6b1
mov edx, dword [ebp + 4]
mov edi, dword [edx + esi*4]
jmp 0x41e6b3
xor edi, edi
mov eax, dword [edi + 0x5c]
lea ecx, [esp + 0x25c]
push eax
push ecx
call ebx
lea edx, [esp + 0x25c]
push edx
call fcn.004a7f30
add esp, 4
lea eax, [esp + 0x158]
lea ecx, [esp + 0x25c]
push eax
push ecx
call fcn.0043e3f0
add esp, 8
mov dword [edi + 0x40], eax
mov eax, dword [ebp + 8]
inc esi
cmp esi, eax
jl 0x41e6a5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x454
ret 0xc