Function at 0x1004a2e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x594
mov eax, dword [0x100702c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x10070d0]
mov dword [ebp - 0x58c], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x588], eax
test ebx, ebx
jne 0x1004c08
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push 0x119
call edi
mov esi, eax
pop ecx
mov dword [0x10070d0], esi
test esi, esi
je 0x1004a9c
mov eax, dword [ebp + 0x14]
imul eax, eax, 0x10c
push eax
call edi
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1004ab0
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100190b
leave
ret 0x14
or dword [esi + 8], 0xffffffff
mov edi, dword [ebp - 0x588]
mov byte [esi + 0x10], 0
mov dword [esi + 4], esi
mov dword [esi], esi
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
push esi
lea eax, [ebp - 0x304]
push eax
push 3
lea eax, [ebp - 0x590]
push eax
push dword [edi]
call sub.msvcrt.dll__splitpath_s
lea eax, [ebp - 0x590]
push eax
mov eax, dword [0x10070d0]
lea ebx, [esi + 6]
add eax, 0x10
push ebx
push eax
call sub.msvcrt.dll_strcpy_s
lea eax, [ebp - 0x304]
push eax
mov eax, dword [0x10070d0]
add eax, 0x10
push ebx
push eax
call sub.msvcrt.dll_strcat_s
mov ecx, dword [edi]
mov eax, ecx
add esp, 0x3c
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004b29
sub eax, edi
lea ebx, [eax + 1]
lea eax, [ebp - 0x104]
push eax
push ebx
push ecx
call sub.msvcrt.dll_strcpy_s
mov edi, dword [ebp - 0x588]
lea eax, [ebp - 0x204]
push eax
push ebx
push dword [edi]
call sub.msvcrt.dll_strcat_s
xor ebx, ebx
inc ebx
add esp, 0x18
cmp dword [ebp + 0x14], ebx
jg 0x1004b6b
jmp 0x1004bd8
mov edi, dword [ebp - 0x588]
push esi
lea eax, [ebp - 0x204]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
push esi
lea eax, [ebp - 0x304]
push eax
push 3
lea eax, [ebp - 0x590]
push eax
push dword [edi + ebx*4]
call sub.msvcrt.dll__splitpath_s
mov ecx, dword [edi + ebx*4]
mov eax, ecx
add esp, 0x24
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004b9f
sub eax, edi
lea edi, [eax + 1]
lea eax, [ebp - 0x104]
push eax
push edi
push ecx
call sub.msvcrt.dll_strcpy_s
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x588]
push edi
push dword [eax + ebx*4]
call sub.msvcrt.dll_strcat_s
add esp, 0x18
inc ebx
cmp ebx, dword [ebp + 0x14]
jl 0x1004b65
mov ecx, dword [ebp + 0x14]
mov ebx, dword [0x10070d0]
test ecx, ecx
jle 0x1004ee6
xor eax, eax
mov edx, dword [ebx + 0xc]
or dword [eax + edx], 0xffffffff
mov edx, dword [ebx + 0xc]
mov byte [eax + edx + 6], 0
add eax, 0x10c
dec ecx
je 0x1004ee6
jmp 0x1004beb
mov ebx, dword [ebx + 8]
cmp ebx, 0xffffffff
jne 0x1004c41
push 0x1004f30
push dword [ebp + 0xc]
push dword [ebp - 0x58c]
call fcn.01004967
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x58c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [0x10070d0]
mov dword [ebx + 8], eax
jmp 0x1004c5d
lea eax, [ebp - 0x444]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, dword [0x10070d0]
test eax, eax
je 0x1004e70
cmp dword [ebx + 8], 0xffffffff
je 0x1004e70
test byte [ebp - 0x444], 0x10
je 0x1004d52
cmp dword [ebp + 0x18], 0
je 0x1004ee6
push 2
mov edi, 0x1004f2c
lea esi, [ebp - 0x418]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1004ee6
push 3
mov edi, 0x1004f28
lea esi, [ebp - 0x418]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1004ee6
push 0x119
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1004ee6
mov eax, dword [ebp + 0x14]
imul eax, eax, 0x10c
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1004ce8
push esi
call dword [sym.imp.msvcrt.dll_free]
jmp 0x1004ee5
lea eax, [ebp - 0x418]
push eax
mov edi, 0x106
lea ebx, [esi + 0x10]
push edi
push ebx
call sub.msvcrt.dll_strcpy_s
push 0x1004f24
push edi
push ebx
call sub.msvcrt.dll_strcat_s
mov eax, dword [0x10070d0]
or dword [esi + 8], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esi], ecx
mov dword [esi + 4], eax
test edx, edx
jle 0x1004d3e
xor ecx, ecx
mov edi, dword [esi + 0xc]
or dword [ecx + edi], 0xffffffff
mov edi, dword [esi + 0xc]
mov byte [edi + ecx + 6], 0
add ecx, 0x10c
dec edx
jne 0x1004d26
mov dword [eax], esi
mov eax, dword [esi]
mov ebx, esi
mov dword [eax + 4], esi
mov dword [0x10070d0], ebx
jmp 0x1004ee6
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x594], eax
test edi, edi
jle 0x1004ee6
mov esi, edi
imul esi, esi, 0x10c
add esi, eax
xor ebx, ebx
sub esi, 0x10c
dec edi
cmp dword [esi], ebx
setne bl
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1004dbb
mov eax, dword [ebp - 0x588]
push dword [eax + edi*4]
push dword [ebp + 0xc]
push dword [ebp - 0x58c]
call fcn.01004967
lea eax, [ebp - 0x584]
push eax
push dword [ebp - 0x58c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [esi], eax
setne bl
jmp 0x1004dd1
cmp byte [esi + 4], 0
je 0x1004dfc
lea ecx, [ebp - 0x584]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
mov byte [esi + 4], 0
test ebx, ebx
je 0x1004e0f
lea eax, [ebp - 0x558]
push eax
lea eax, [esi + 6]
push 0x104
push eax
call sub.msvcrt.dll_strcpy_s
mov al, byte [ebp - 0x584]
add esp, 0xc
and al, 0x10
mov byte [esi + 5], al
test ebx, ebx
je 0x1004e0f
cmp byte [esi + 5], 0
je 0x1004e28
mov byte [esi + 4], 1
jmp 0x1004d7e
mov eax, dword [esi]
test eax, eax
je 0x1004e24
cmp eax, 0xffffffff
je 0x1004e24
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [esi], 0
mov byte [esi + 4], 0
test ebx, ebx
je 0x1004e60
lea ecx, [esi + 6]
lea eax, [ebp - 0x418]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1004e53
test dl, dl
je 0x1004e4f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1004e53
inc eax
inc eax
inc ecx
inc ecx
test dl, dl
jne 0x1004e35
xor eax, eax
jmp 0x1004e58
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004ef3
test edi, edi
jg 0x1004d70
mov ebx, dword [0x10070d0]
jmp 0x1004ee6
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x1004e85
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [0x10070d0]
mov esi, ebx
mov ebx, dword [ebx + 4]
mov dword [0x10070d0], ebx
cmp ebx, esi
je 0x1004e9f
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi]
mov dword [eax + 4], ebx
jmp 0x1004ea7
xor ebx, ebx
mov dword [0x10070d0], ebx
cmp dword [ebp + 0x14], 0
mov eax, dword [esi + 0xc]
jle 0x1004ed6
mov ebx, dword [ebp + 0x14]
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x1004ec7
cmp eax, 0xffffffff
je 0x1004ec7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
add edi, 0x10c
dec ebx
jne 0x1004eb5
mov ebx, dword [0x10070d0]
push dword [esi + 0xc]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push esi
call edi
pop ecx
pop ecx
test ebx, ebx
je 0x1004a9c
jmp 0x1004c08
mov eax, dword [ebp - 0x594]
imul edi, edi, 0x10c
mov byte [edi + eax + 4], 1
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x58c]
call fcn.01004967
xor eax, eax
inc eax
jmp 0x1004a9f