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

Disassembly:
mov eax, 0x66f77f
call fcn.006313fc
sub esp, 0x2b8
push esi
push edi
mov edi, ecx
mov byte [esp + 0x2c], 1
lea eax, [edi + 0x34]
push eax
mov dword [esp + 0x2c], eax
call fcn.00466f49
xor esi, esi
mov dword [esp + 0x2c8], esi
cmp dword [edi + 0x18], esi
je 0x48541c
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x4851a0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x5c]
push str._s_.btapp
push eax
call fcn.0047224d
add esp, 0xc
inc dword [edi + 4]
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
mov byte [esp + 0x2c8], 1
jae 0x4851cd
lea eax, [esp + 0x58]
push ebx
push ebp
lea ecx, [esp + 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
je 0x485351
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x1c]
call fcn.004249e7
cmp dword [edi + 0x30], 0
mov ebx, esi
mov byte [esp + 0x2d0], 2
jbe 0x48529e
lea esi, [edi + 0x20]
push ebx
mov ecx, esi
call fcn.004f47a5
add eax, 8
lea ecx, [esp + 0x18]
push eax
call fcn.00434b9c
test eax, eax
je 0x485235
inc ebx
cmp ebx, dword [edi + 0x30]
jb 0x485212
xor esi, esi
jmp 0x48529e
push ebx
mov ecx, esi
call fcn.004f47a5
mov ecx, dword [edi + 4]
push ebx
mov dword [eax + 0x24], ecx
mov ecx, esi
call fcn.004f47a5
mov ecx, dword [esp + 0x8c]
cmp ecx, dword [eax]
jne 0x48525d
xor esi, esi
cmp esi, dword [eax + 4]
je 0x48529e
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x48526c
lea eax, [esp + 0x18]
mov esi, dword [edi]
lea ecx, [edi + 0x20]
push ebx
mov dword [esp + 0x14], eax
call fcn.004f47a5
mov ecx, edi
push dword [eax + 0x20]
push dword [esp + 0x14]
call dword [esi + 0xc]
push ebx
lea ecx, [edi + 0x20]
call fcn.004f47a5
mov ecx, dword [esp + 0x8c]
xor esi, esi
mov dword [eax], ecx
mov dword [eax + 4], esi
cmp ebx, dword [edi + 0x30]
jne 0x48531d
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
mov word [esp + 0x40], ax
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1c]
push esi
push eax
mov byte [esp + 0x2dc], 3
mov dword [esp + 0x48], esi
call fcn.0042358a
mov eax, dword [edi + 4]
lea ecx, [edi + 0x20]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x38]
push eax
call fcn.0048559f
cmp dword [esp + 0x2c], 8
mov ecx, dword [esp + 0x18]
jae 0x485309
lea ecx, [esp + 0x18]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 4]
push esi
push 1
lea ecx, [esp + 0x48]
call fcn.0042341c
push esi
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2d8], 1
call fcn.0042341c
lea eax, [esp + 0x78]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x485344
or ebp, 0xffffffff
cmp ebp, 0xffffffff
jne 0x4851ea
mov eax, dword [esp + 0x14]
test eax, eax
je 0x485361
cmp eax, 0xffffffff
je 0x485361
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [edi + 0x30], 0
mov ebx, esi
jbe 0x48540e
lea ebp, [edi + 0x20]
push ebx
mov ecx, ebp
call fcn.004f47a5
mov eax, dword [eax + 0x24]
cmp eax, dword [edi + 4]
je 0x485404
push ebx
mov ecx, ebp
call fcn.004f47a5
lea ebp, [eax + 8]
cmp dword [ebp + 0x14], 8
jb 0x485398
mov ebp, dword [ebp]
mov esi, dword [edi]
lea ecx, [edi + 0x20]
push ebx
call fcn.004f47a5
mov ecx, edi
push dword [eax + 0x20]
push ebp
call dword [esi + 8]
lea ebp, [edi + 0x20]
push ebx
mov ecx, ebp
call fcn.004f47a5
add eax, 8
mov dword [esp + 0x10], eax
cmp dword [eax + 0x14], 8
jb 0x4853ca
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov esi, dword [edi]
mov ecx, ebp
push ebx
call fcn.004f47a5
mov ecx, edi
push dword [eax + 0x20]
push dword [esp + 0x14]
call dword [esi + 0x10]
push ebx
mov ecx, ebp
call fcn.004f47a5
add eax, 8
xor esi, esi
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], esi
jb 0x4853f8
mov eax, dword [eax]
push ebx
xor ecx, ecx
push ebp
mov word [eax], cx
call fcn.00484eff
inc ebx
cmp ebx, dword [edi + 0x30]
jb 0x485370
push esi
push 1
lea ecx, [esp + 0x68]
call fcn.0042341c
pop ebp
pop ebx
push dword [esp + 0x28]
or dword [esp + 0x2cc], 0xffffffff
call fcn.0046703c
mov ecx, dword [esp + 0x2c0]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret