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

Disassembly:
sub esp, 0x268
mov eax, dword [esp + 0x26c]
mov ecx, dword [esp + 0x270]
push ebx
mov ebx, dword [esp + 0x278]
push ebp
mov ebp, dword [ecx]
mov edx, dword [ebx]
push esi
mov esi, dword [eax]
mov dword [esp + 0x10], ebp
mov word [esi + edx*2], 0x2a
mov eax, dword [ebx]
mov word [esi + eax*2 + 2], 0
call fcn.12f9c6c0
test eax, eax
jne 0x12f83a6c
call fcn.12f9c660
test eax, eax
jne 0x12f83a6c
call fcn.12f9c6e0
test eax, eax
jne 0x12f83a6c
mov ecx, dword [esp + 0x284]
push ecx
jmp 0x12f83a9d
call fcn.13001280
mov eax, dword [0x131ca86c]
test eax, eax
je 0x12f83a95
mov edx, dword [esp + 0x298]
mov ecx, dword [esp + 0x284]
push 2
push edx
push 0
push ecx
push 1
push esi
call eax
jmp 0x12f83aa4
mov edx, dword [esp + 0x284]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x12f83abc
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x268
ret
mov eax, dword [ebx]
push edi
mov word [esi + eax*2], 0
mov ecx, dword [ebx]
sub ebp, ecx
dec ebp
mov eax, dword [esp + 0x288]
mov ecx, dword [eax]
add eax, 0x2c
push eax
mov dword [esp + 0x20], ecx
call fcn.12f5c44d
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], 1
lea edx, [edi + 2]
cmp ebp, edx
jae 0x12f83bcb
mov eax, dword [esp + 0x14]
cmp eax, 0x104
jne 0x12f83b11
mov dword [esp + 0x14], 0x400
jmp 0x12f83b31
cmp eax, 0x400
jne 0x12f83b22
mov dword [esp + 0x14], 0x1000
jmp 0x12f83b31
cmp eax, 0x1000
jne 0x12f83b31
mov dword [esp + 0x14], 0x7fff
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
call fcn.12f5bf8b
mov edi, eax
add esp, 4
test edi, edi
je 0x12f83f45
push 4
push 0x130b9230
push esi
mov ebp, edi
call fcn.12f5e2b3
add esp, 0xc
test eax, eax
je 0x12f83b74
push 4
push 0x130b9230
push edi
call fcn.12f5c4ab
add esp, 0xc
lea ebp, [edi + 8]
mov edx, dword [ebx]
push edx
push esi
push ebp
call fcn.12f5c4ab
mov eax, dword [ebx]
add esp, 0xc
cmp ebp, edi
mov word [ebp + eax*2], 0
je 0x12f83b91
add dword [ebx], 4
mov ebp, dword [esp + 0x280]
cmp dword [ebp], 0x104
je 0x12f83bae
test esi, esi
je 0x12f83bae
push esi
call fcn.12f5bf80
add esp, 4
mov ecx, dword [esp + 0x27c]
mov eax, dword [esp + 0x14]
mov esi, edi
mov dword [ecx], edi
mov edi, dword [esp + 0x20]
mov dword [ebp], eax
mov ecx, dword [ebx]
mov ebp, eax
sub ebp, ecx
dec ebp
test byte [esp + 0x1c], 0x10
je 0x12f83e57
mov edx, dword [esp + 0x288]
cmp word [edx + 0x2c], 0x2e
lea ecx, [edx + 0x2c]
jne 0x12f83c05
mov ax, word [edx + 0x2e]
test ax, ax
je 0x12f83f29
cmp ax, 0x2e
jne 0x12f83c05
cmp word [edx + 0x30], 0
je 0x12f83f29
push ecx
push esi
call fcn.12f5c865
mov al, byte [esp + 0x294]
add esp, 8
test al, 0x10
je 0x12f83cb7
mov eax, dword [esp + 0x29c]
test eax, eax
je 0x12f83c76
test esi, esi
je 0x12f83cb7
push 0x5c
push eax
call fcn.12f5cfc9
add esp, 8
test eax, eax
je 0x12f83c4b
mov edx, dword [esp + 0x29c]
push edx
push esi
jmp 0x12f83c6a
push 0x5c
push esi
call fcn.12f5c8b4
add esp, 8
test eax, eax
je 0x12f83c5f
add eax, 2
jmp 0x12f83c61
mov eax, esi
mov ecx, dword [esp + 0x29c]
push ecx
push eax
call fcn.12f51310
add esp, 8
test eax, eax
je 0x12f83cb7
mov eax, dword [esp + 0x290]
mov edx, dword [esp + 0x298]
test eax, eax
mov eax, dword [esp + 0x1c]
push edx
je 0x12f83c94
mov eax, dword [esp + 0x28c]
mov ecx, dword [ebx]
push eax
add ecx, edi
push ecx
push esi
call dword [esp + 0x2a4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x12f83f5f
cmp eax, 2
je 0x12f83f21
mov eax, dword [ebx]
mov ecx, dword [esp + 0x28c]
test cl, 0x40
lea eax, [eax + edi + 1]
mov dword [esp + 0x24], eax
jne 0x12f83d80
test ch, 2
je 0x12f83d04
mov ecx, dword [esp + 0x288]
test ecx, ecx
je 0x12f83d04
mov edx, dword [ecx + 0x24]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x12f83d04
test ch, 4
je 0x12f83d04
test edx, 0x20000000
jne 0x12f83d80
cmp edx, 0x8000001b
je 0x12f83d80
mov edx, dword [esp + 0x29c]
mov word [esi + eax*2 - 2], 0x5c
mov ecx, dword [esp + 0x24]
xor eax, eax
lea edi, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x294]
mov word [esi + ecx*2], 0
mov ecx, 0x93
mov dword [esp + 0x2c], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x298]
push eax
mov eax, dword [esp + 0x294]
push ecx
push edx
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x294]
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x294]
push edx
push eax
push ecx
call fcn.12f83a10
mov edi, dword [esp + 0x44]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
add esp, 0x24
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x12f83f5f
mov edx, dword [esp + 0x280]
mov ecx, dword [edx]
mov edx, dword [esp + 0x14]
cmp ecx, edx
je 0x12f83db4
mov edx, dword [esp + 0x27c]
sub eax, edi
dec eax
mov ebp, ecx
mov esi, dword [edx]
sub ebp, eax
mov dword [esp + 0x14], ecx
mov dword [ebx], eax
dec ebp
test byte [esp + 0x28c], 0x20
je 0x12f83e46
mov eax, dword [esp + 0x29c]
test eax, eax
je 0x12f83e16
test esi, esi
je 0x12f83e46
push 0x5c
push eax
call fcn.12f5cfc9
add esp, 8
test eax, eax
je 0x12f83deb
mov eax, dword [esp + 0x29c]
push eax
push esi
jmp 0x12f83e0a
push 0x5c
push esi
call fcn.12f5c8b4
add esp, 8
test eax, eax
je 0x12f83dff
add eax, 2
jmp 0x12f83e01
mov eax, esi
mov ecx, dword [esp + 0x29c]
push ecx
push eax
call fcn.12f51310
add esp, 8
test eax, eax
je 0x12f83e46
mov eax, dword [esp + 0x290]
mov edx, dword [esp + 0x298]
test eax, eax
mov eax, dword [esp + 0x1c]
push edx
je 0x12f83e34
mov eax, dword [esp + 0x28c]
mov ecx, dword [ebx]
push eax
add ecx, edi
push ecx
push esi
call dword [esp + 0x2a4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12f83f5f
jmp 0x12f83f21
test byte [esp + 0x28c], 0x80
jne 0x12f83f29
mov eax, dword [esp + 0x288]
lea edi, [eax + 0x2c]
push edi
push esi
call fcn.12f5c865
mov eax, dword [esp + 0x2a4]
add esp, 8
test eax, eax
je 0x12f83ee9
push 0x5c
push eax
call fcn.12f5cfc9
add esp, 8
test eax, eax
je 0x12f83e95
mov edi, esi
test edi, edi
je 0x12f83f21
mov ecx, dword [esp + 0x29c]
push 0x5c
push ecx
call fcn.12f5cfc9
add esp, 8
test eax, eax
je 0x12f83ebe
mov edx, dword [esp + 0x29c]
push edx
push edi
jmp 0x12f83edd
push 0x5c
push edi
call fcn.12f5c8b4
add esp, 8
test eax, eax
je 0x12f83ed2
add eax, 2
jmp 0x12f83ed4
mov eax, edi
mov ecx, dword [esp + 0x29c]
push ecx
push eax
call fcn.12f51310
add esp, 8
test eax, eax
je 0x12f83f21
mov eax, dword [esp + 0x290]
mov edx, dword [esp + 0x298]
test eax, eax
mov eax, dword [esp + 0x1c]
push edx
je 0x12f83f07
mov eax, dword [esp + 0x28c]
mov ecx, dword [ebx]
mov edi, dword [esp + 0x24]
add ecx, edi
push eax
push ecx
push esi
call dword [esp + 0x2a4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x12f83f5f
mov edx, dword [ebx]
mov word [esi + edx*2], 0
mov eax, dword [esp + 0x288]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x12f83f5f
jmp 0x12f83aca
push 8
mov dword [esp + 0x14], 0
mov dword [0x131c8c28], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret