Function at 0x48569c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov byte [ebx], 0
xor eax, eax
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
push esi
call fcn.0054c1f4
add esp, 8
lea edx, [ebp - 0x14c]
push edx
push esi
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4856df
mov dword [ebp - 4], 1
jmp 0x4856e4
xor eax, eax
mov dword [ebp - 4], eax
push esi
call fcn.0054c2d0
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.0054c2d0
pop ecx
pop edx
sub edx, eax
mov byte [esi + edx], 0
jmp 0x4859cc
test byte [ebp - 0x14c], 0x10
je 0x485761
cmp dword [ebp + 0x1c], 0
je 0x485740
push 0x563bb0
lea ecx, [ebp - 0x120]
push ecx
call fcn.0054c494
add esp, 8
test eax, eax
je 0x485740
push 0x563bb3
lea eax, [ebp - 0x120]
push eax
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x485788
lea edx, [ebp - 0x14c]
push edx
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4859cc
mov dword [ebp - 4], 1
jmp 0x4859cc
cmp dword [ebp + 0x1c], 1
jne 0x485788
lea ecx, [ebp - 0x14c]
push ecx
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4859cc
mov dword [ebp - 4], 1
jmp 0x4859cc
push 0x2e
lea eax, [ebp - 0x120]
push eax
call fcn.0054c230
add esp, 8
test eax, eax
jne 0x485803
push 0x2e
push dword [ebp + 0xc]
call fcn.0054c230
add esp, 8
test eax, eax
je 0x485803
lea edx, [ebp - 0x120]
push edx
push 0x563bb7
lea ecx, [ebp - 0x250]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 1
push 0
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 0xc]
call fcn.0051d2f8
test eax, eax
jne 0x48583b
lea edx, [ebp - 0x14c]
push edx
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4859cc
mov dword [ebp - 4], 1
jmp 0x4859cc
push 1
push 0
lea ecx, [ebp - 0x120]
push ecx
push dword [ebp + 0xc]
call fcn.0051d2f8
test eax, eax
jne 0x48583b
lea eax, [ebp - 0x14c]
push eax
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4859cc
mov dword [ebp - 4], 1
jmp 0x4859cc
inc dword [ebp - 8]
cmp dword [ebp + 0x14], 0
jle 0x485850
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x14]
jl 0x485963
cmp dword [ebp + 0x18], 0
jne 0x485860
cmp dword [ebp + 0x20], 0
je 0x485963
push esi
push edi
mov edi, esi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
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]
pop edi
pop esi
lea eax, [ebp - 0x120]
push eax
push ebx
call fcn.0054c1f4
add esp, 8
cmp dword [ebp + 0x44], 0
je 0x4858a7
push 0x180
push ebx
push ebx
call sub.KERNEL32.dll_GetShortPathNameA
cmp dword [ebp + 0x18], 0
je 0x4858db
push ebx
push 0
push 0x180
push dword [ebp + 0x18]
call sub.USER32.dll_SendMessageA
cmp eax, 0xffffffff
je 0x4858db
cmp eax, 0xfffffffe
je 0x4858db
push dword [0x55f8bc]
push eax
push 0x19a
push dword [ebp + 0x18]
call sub.USER32.dll_SendMessageA
cmp dword [ebp + 0x20], 0
je 0x485960
push 0
push dword [ebp + 0x20]
push 0
call fcn.004c6a50
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x485908
push 2
push 0
push 0
push 0
call fcn.00479c10
jmp 0x485b49
cmp dword [ebp + 0x28], 0
je 0x485915
mov eax, 2
jmp 0x48591a
mov eax, 1
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x40]
push 0
push dword [ebp + 0x3c]
push 0
push 0
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push 0
push 0
push 0
push 0
push 0
push eax
push ebx
push dword [ebp - 0xc]
mov edx, dword [ebp + 0x54]
push dword [edx]
call fcn.004b0a63
lea ecx, [ebp - 0xc]
push ecx
call fcn.004c6e81
mov byte [ebx], 0
cmp dword [ebp + 0x14], 0
jle 0x4859b4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jl 0x4859b4
push esi
push edi
mov edi, esi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
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]
pop edi
pop esi
lea eax, [ebp - 0x120]
push eax
push ebx
call fcn.0054c1f4
add esp, 8
push edi
call sub.KERNEL32.dll_FindClose
mov eax, dword [ebp - 8]
jmp 0x485b49
lea edx, [ebp - 0x14c]
push edx
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4859cc
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x485701
cmp edi, 0xffffffff
je 0x4859e1
push edi
call sub.KERNEL32.dll_FindClose
dec dword [ebp + 0x24]
cmp dword [ebp + 0x24], 0
jg 0x4859f2
mov eax, dword [ebp - 8]
jmp 0x485b49
push 0x563bbc
push esi
call fcn.0054c1f4
add esp, 8
lea edx, [ebp - 0x14c]
push edx
push esi
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x485a1d
mov dword [ebp - 4], 1
jmp 0x485a22
xor eax, eax
mov dword [ebp - 4], eax
push esi
call fcn.0054c2d0
pop ecx
mov byte [esi + eax - 3], 0
jmp 0x485b31
test byte [ebp - 0x14c], 0x10
je 0x485a6c
push 0x563bc1
lea edx, [ebp - 0x120]
push edx
call fcn.0054c494
add esp, 8
test eax, eax
je 0x485a6c
push 0x563bc4
lea ecx, [ebp - 0x120]
push ecx
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x485a8d
lea eax, [ebp - 0x14c]
push eax
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x485b31
mov dword [ebp - 4], 1
jmp 0x485b31
lea edx, [ebp - 0x120]
push edx
push esi
call fcn.0054c1f4
add esp, 8
push 0x563bc8
push esi
call fcn.0054c1f4
add esp, 8
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp - 8]
push ecx
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0048569c
add dword [ebp - 8], eax
cmp byte [ebx], 0
jne 0x485b3b
push 0x5c
push esi
call fcn.0054c5b8
add esp, 8
test eax, eax
je 0x485b19
mov byte [eax], 0
push 0x5c
push esi
call fcn.0054c5b8
add esp, 8
test eax, eax
je 0x485b19
inc eax
mov byte [eax], 0
lea eax, [ebp - 0x14c]
push eax
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x485b31
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x485a33
cmp edi, 0xffffffff
je 0x485b46
push edi
call sub.KERNEL32.dll_FindClose
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x50