Function at 0x12f83ae0
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.12f9c790
test eax, eax
jne 0x12f83b3c
call fcn.12f9c730
test eax, eax
jne 0x12f83b3c
call fcn.12f9c7b0
test eax, eax
jne 0x12f83b3c
mov ecx, dword [esp + 0x284]
push ecx
jmp 0x12f83b6d
call fcn.13001350
mov eax, dword [0x131ca96c]
test eax, eax
je 0x12f83b65
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 0x12f83b74
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 0x12f83b8c
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.12f5c51d
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], 1
lea edx, [edi + 2]
cmp ebp, edx
jae 0x12f83c9b
mov eax, dword [esp + 0x14]
cmp eax, 0x104
jne 0x12f83be1
mov dword [esp + 0x14], 0x400
jmp 0x12f83c01
cmp eax, 0x400
jne 0x12f83bf2
mov dword [esp + 0x14], 0x1000
jmp 0x12f83c01
cmp eax, 0x1000
jne 0x12f83c01
mov dword [esp + 0x14], 0x7fff
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
call fcn.12f5c05b
mov edi, eax
add esp, 4
test edi, edi
je 0x12f84015
push 4
push 0x130b9230
push esi
mov ebp, edi
call fcn.12f5e383
add esp, 0xc
test eax, eax
je 0x12f83c44
push 4
push 0x130b9230
push edi
call fcn.12f5c57b
add esp, 0xc
lea ebp, [edi + 8]
mov edx, dword [ebx]
push edx
push esi
push ebp
call fcn.12f5c57b
mov eax, dword [ebx]
add esp, 0xc
cmp ebp, edi
mov word [ebp + eax*2], 0
je 0x12f83c61
add dword [ebx], 4
mov ebp, dword [esp + 0x280]
cmp dword [ebp], 0x104
je 0x12f83c7e
test esi, esi
je 0x12f83c7e
push esi
call fcn.12f5c050
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 0x12f83f27
mov edx, dword [esp + 0x288]
cmp word [edx + 0x2c], 0x2e
lea ecx, [edx + 0x2c]
jne 0x12f83cd5
mov ax, word [edx + 0x2e]
test ax, ax
je 0x12f83ff9
cmp ax, 0x2e
jne 0x12f83cd5
cmp word [edx + 0x30], 0
je 0x12f83ff9
push ecx
push esi
call fcn.12f5c935
mov al, byte [esp + 0x294]
add esp, 8
test al, 0x10
je 0x12f83d87
mov eax, dword [esp + 0x29c]
test eax, eax
je 0x12f83d46
test esi, esi
je 0x12f83d87
push 0x5c
push eax
call fcn.12f5d099
add esp, 8
test eax, eax
je 0x12f83d1b
mov edx, dword [esp + 0x29c]
push edx
push esi
jmp 0x12f83d3a
push 0x5c
push esi
call fcn.12f5c984
add esp, 8
test eax, eax
je 0x12f83d2f
add eax, 2
jmp 0x12f83d31
mov eax, esi
mov ecx, dword [esp + 0x29c]
push ecx
push eax
call fcn.12f513e0
add esp, 8
test eax, eax
je 0x12f83d87
mov eax, dword [esp + 0x290]
mov edx, dword [esp + 0x298]
test eax, eax
mov eax, dword [esp + 0x1c]
push edx
je 0x12f83d64
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 0x12f8402f
cmp eax, 2
je 0x12f83ff1
mov eax, dword [ebx]
mov ecx, dword [esp + 0x28c]
test cl, 0x40
lea eax, [eax + edi + 1]
mov dword [esp + 0x24], eax
jne 0x12f83e50
test ch, 2
je 0x12f83dd4
mov ecx, dword [esp + 0x288]
test ecx, ecx
je 0x12f83dd4
mov edx, dword [ecx + 0x24]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x12f83dd4
test ch, 4
je 0x12f83dd4
test edx, 0x20000000
jne 0x12f83e50
cmp edx, 0x8000001b
je 0x12f83e50
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.12f83ae0
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 0x12f8402f
mov edx, dword [esp + 0x280]
mov ecx, dword [edx]
mov edx, dword [esp + 0x14]
cmp ecx, edx
je 0x12f83e84
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 0x12f83f16
mov eax, dword [esp + 0x29c]
test eax, eax
je 0x12f83ee6
test esi, esi
je 0x12f83f16
push 0x5c
push eax
call fcn.12f5d099
add esp, 8
test eax, eax
je 0x12f83ebb
mov eax, dword [esp + 0x29c]
push eax
push esi
jmp 0x12f83eda
push 0x5c
push esi
call fcn.12f5c984
add esp, 8
test eax, eax
je 0x12f83ecf
add eax, 2
jmp 0x12f83ed1
mov eax, esi
mov ecx, dword [esp + 0x29c]
push ecx
push eax
call fcn.12f513e0
add esp, 8
test eax, eax
je 0x12f83f16
mov eax, dword [esp + 0x290]
mov edx, dword [esp + 0x298]
test eax, eax
mov eax, dword [esp + 0x1c]
push edx
je 0x12f83f04
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 0x12f8402f
jmp 0x12f83ff1
test byte [esp + 0x28c], 0x80
jne 0x12f83ff9
mov eax, dword [esp + 0x288]
lea edi, [eax + 0x2c]
push edi
push esi
call fcn.12f5c935
mov eax, dword [esp + 0x2a4]
add esp, 8
test eax, eax
je 0x12f83fb9
push 0x5c
push eax
call fcn.12f5d099
add esp, 8
test eax, eax
je 0x12f83f65
mov edi, esi
test edi, edi
je 0x12f83ff1
mov ecx, dword [esp + 0x29c]
push 0x5c
push ecx
call fcn.12f5d099
add esp, 8
test eax, eax
je 0x12f83f8e
mov edx, dword [esp + 0x29c]
push edx
push edi
jmp 0x12f83fad
push 0x5c
push edi
call fcn.12f5c984
add esp, 8
test eax, eax
je 0x12f83fa2
add eax, 2
jmp 0x12f83fa4
mov eax, edi
mov ecx, dword [esp + 0x29c]
push ecx
push eax
call fcn.12f513e0
add esp, 8
test eax, eax
je 0x12f83ff1
mov eax, dword [esp + 0x290]
mov edx, dword [esp + 0x298]
test eax, eax
mov eax, dword [esp + 0x1c]
push edx
je 0x12f83fd7
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 0x12f8402f
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 0x12f8402f
jmp 0x12f83b9a
push 8
mov dword [esp + 0x14], 0
mov dword [0x131c8d28], 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