Function at 0x4862fd
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x699608
call fcn.006375a8
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.00469175
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x18], ebx
je 0x48659e
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x48633a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x78]
push str._s_.btapp
push eax
call fcn.004638e7
add esp, 0xc
inc dword [edi + 4]
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 2
jae 0x48635f
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 0x4864cf
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00427f43
cmp dword [edi + 0x30], 0
mov byte [ebp - 4], 3
jbe 0x48642b
lea eax, [edi + 0x20]
push ebx
mov ecx, eax
call fcn.005302e7
add eax, 8
lea ecx, [ebp - 0x30]
push eax
call fcn.00437447
test eax, eax
je 0x4863c2
inc ebx
lea eax, [edi + 0x20]
cmp ebx, dword [edi + 0x30]
jb 0x48639f
jmp 0x48642b
push ebx
lea ecx, [edi + 0x20]
call fcn.005302e7
push ebx
lea ecx, [eax + 0x24]
mov eax, dword [edi + 4]
mov dword [ecx], eax
lea ecx, [edi + 0x20]
call fcn.005302e7
mov ecx, dword [ebp - 0x2b4]
cmp ecx, dword [eax]
jne 0x4863ed
xor ecx, ecx
cmp ecx, dword [eax + 4]
je 0x48642b
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x4863f9
lea eax, [ebp - 0x30]
mov esi, dword [edi]
lea ecx, [edi + 0x20]
push ebx
mov dword [ebp - 0x14], eax
call fcn.005302e7
mov ecx, edi
push dword [eax + 0x20]
push dword [ebp - 0x14]
call dword [esi + 0xc]
push ebx
lea ecx, [edi + 0x20]
call fcn.005302e7
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 0x48649a
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.0042692e
mov eax, dword [edi + 4]
lea ecx, [edi + 0x20]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x60]
push eax
call fcn.0048682f
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x486485
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.004267c2
jmp 0x48649c
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004267c2
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4864c3
or esi, 0xffffffff
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
jne 0x48637f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4864df
cmp eax, 0xffffffff
je 0x4864df
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [edi + 0x30], 0
jbe 0x486590
lea esi, [edi + 0x20]
push ebx
mov ecx, esi
call fcn.005302e7
mov eax, dword [eax + 0x24]
cmp eax, dword [edi + 4]
je 0x486586
push ebx
mov ecx, esi
call fcn.005302e7
add eax, 8
mov dword [ebp - 0x10], eax
cmp dword [eax + 0x14], 8
jb 0x486519
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov esi, dword [edi]
lea ecx, [edi + 0x20]
push ebx
call fcn.005302e7
mov ecx, edi
push dword [eax + 0x20]
push dword [ebp - 0x10]
call dword [esi + 8]
push ebx
lea ecx, [edi + 0x20]
call fcn.005302e7
add eax, 8
mov dword [ebp - 0x10], eax
cmp dword [eax + 0x14], 8
jb 0x486549
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov esi, dword [edi]
lea ecx, [edi + 0x20]
push ebx
call fcn.005302e7
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.005302e7
add eax, 8
xor ecx, ecx
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ecx
jb 0x48657a
mov eax, dword [eax]
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00486067
inc ebx
cmp ebx, dword [edi + 0x30]
jb 0x4864ec
xor eax, eax
lea ecx, [ebp - 0x78]
push eax
push 1
call fcn.004267c2
pop esi
push dword [ebp - 0x38]
mov dword [ebp - 4], 5
call fcn.00469268
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret