Function at 0x48957a
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x6a26c1
call fcn.00640244
sub esp, 0x2bc
push ebx
push edi
mov edi, ecx
mov byte [ebp - 0x34], 1
lea eax, [edi + 0x34]
push eax
mov dword [ebp - 0x38], eax
call fcn.0046b312
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x18], ebx
je 0x48981b
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x4895b7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x78]
push str._s_.btapp
push eax
call fcn.004654e1
add esp, 0xc
inc dword [edi + 4]
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 2
jae 0x4895dc
lea eax, [ebp - 0x78]
push esi
lea ecx, [ebp - 0x2c8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
je 0x48974c
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00429973
cmp dword [edi + 0x30], 0
mov byte [ebp - 4], 3
jbe 0x4896a8
lea eax, [edi + 0x20]
push ebx
mov ecx, eax
call fcn.004f038d
add eax, 8
lea ecx, [ebp - 0x30]
push eax
call fcn.00438e88
test eax, eax
je 0x48963f
inc ebx
lea eax, [edi + 0x20]
cmp ebx, dword [edi + 0x30]
jb 0x48961c
jmp 0x4896a8
push ebx
lea ecx, [edi + 0x20]
call fcn.004f038d
push ebx
lea ecx, [eax + 0x24]
mov eax, dword [edi + 4]
mov dword [ecx], eax
lea ecx, [edi + 0x20]
call fcn.004f038d
mov ecx, dword [ebp - 0x2b4]
cmp ecx, dword [eax]
jne 0x48966a
xor ecx, ecx
cmp ecx, dword [eax + 4]
je 0x4896a8
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x489676
lea eax, [ebp - 0x30]
mov esi, dword [edi]
lea ecx, [edi + 0x20]
push ebx
mov dword [ebp - 0x14], eax
call fcn.004f038d
mov ecx, edi
push dword [eax + 0x20]
push dword [ebp - 0x14]
call dword [esi + 0xc]
push ebx
lea ecx, [edi + 0x20]
call fcn.004f038d
mov ecx, dword [ebp - 0x2b4]
mov esi, dword [ebp - 0x10]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
cmp ebx, dword [edi + 0x30]
jne 0x489717
xor ebx, ebx
mov dword [ebp - 0x44], 7
xor eax, eax
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x58]
push 0xffffffffffffffff
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x30]
push ebx
push eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x5c], ebx
call fcn.0042835e
mov eax, dword [edi + 4]
lea ecx, [edi + 0x20]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x60]
push eax
call fcn.00489aac
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x489702
lea ecx, [ebp - 0x30]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 4]
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.004281f2
jmp 0x489719
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004281f2
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x489740
or esi, 0xffffffff
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
jne 0x4895fc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48975c
cmp eax, 0xffffffff
je 0x48975c
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [edi + 0x30], 0
jbe 0x48980d
lea esi, [edi + 0x20]
push ebx
mov ecx, esi
call fcn.004f038d
mov eax, dword [eax + 0x24]
cmp eax, dword [edi + 4]
je 0x489803
push ebx
mov ecx, esi
call fcn.004f038d
add eax, 8
mov dword [ebp - 0x10], eax
cmp dword [eax + 0x14], 8
jb 0x489796
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov esi, dword [edi]
lea ecx, [edi + 0x20]
push ebx
call fcn.004f038d
mov ecx, edi
push dword [eax + 0x20]
push dword [ebp - 0x10]
call dword [esi + 8]
push ebx
lea ecx, [edi + 0x20]
call fcn.004f038d
add eax, 8
mov dword [ebp - 0x10], eax
cmp dword [eax + 0x14], 8
jb 0x4897c6
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov esi, dword [edi]
lea ecx, [edi + 0x20]
push ebx
call fcn.004f038d
mov ecx, edi
push dword [eax + 0x20]
push dword [ebp - 0x10]
call dword [esi + 0x10]
lea esi, [edi + 0x20]
push ebx
mov ecx, esi
call fcn.004f038d
add eax, 8
xor ecx, ecx
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ecx
jb 0x4897f7
mov eax, dword [eax]
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004892e4
inc ebx
cmp ebx, dword [edi + 0x30]
jb 0x489769
xor eax, eax
lea ecx, [ebp - 0x78]
push eax
push 1
call fcn.004281f2
pop esi
push dword [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.0046b405
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret