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

Disassembly:
push 0xffffffffffffffff
push 0x1306f890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
call fcn.13001350
push 0xa
lea ecx, [esp + 0x38]
mov ebp, 1
call fcn.12f4f2a0
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
push eax
mov dword [esp + 0x58], 0
call fcn.12f46b50
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 1
push ecx
lea ecx, [esp + 0x38]
call fcn.12f4f960
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0
call fcn.12f472f0
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x12f8445b
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 8]
lea edi, [edx + 8]
mov ebx, dword [eax - 8]
lea ecx, [ebx + 0x10a]
push ecx
mov ecx, edi
call fcn.12f47fc0
mov esi, eax
call fcn.12f9c790
test eax, eax
jne 0x12f84124
call fcn.12f9c730
test eax, eax
jne 0x12f84124
call fcn.12f9c7b0
test eax, eax
jne 0x12f84124
push 0x130c39d8
lea edx, [esp + 0x24]
push edi
push edx
call fcn.12f47a60
mov ecx, dword [esp + 0x64]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
jmp 0x12f8418f
call fcn.13001350
mov eax, dword [0x131ca96c]
push 0x130c39d8
test eax, eax
push edi
je 0x12f8416f
lea edx, [esp + 0x2c]
push edx
call fcn.12f47a60
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x64]
mov eax, dword [eax]
push 2
push ecx
push 0
push edx
push 1
push eax
mov byte [esp + 0x6c], 2
call dword [0x131ca96c]
mov dword [esp + 0x14], eax
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x24]
jmp 0x12f8418f
lea eax, [esp + 0x30]
push eax
call fcn.12f47a60
mov ecx, dword [esp + 0x64]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x28]
call fcn.12f472f0
cmp dword [esp + 0x14], 0xffffffff
je 0x12f84431
mov eax, 2
lea edx, [esi + ebx*2]
sub eax, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x64]
mov eax, dword [edi]
add edi, 0x2c
push edi
mov dword [esp + 0x1c], eax
call fcn.12f5c51d
mov ebp, eax
add esp, 4
mov dword [esp + 0x5c], 1
lea ecx, [ebx + ebp]
cmp ecx, 0x104
jb 0x12f84223
push 4
push 0x130b9230
push esi
call fcn.12f5e383
add esp, 0xc
test eax, eax
je 0x12f84223
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add edx, eax
lea ecx, [esi + 8]
push edx
push esi
push ecx
call fcn.12f5c5c0
push 4
push 0x130b9230
push esi
call fcn.12f5c57b
mov eax, dword [esp + 0x28]
add esp, 0x18
add ebx, 4
add eax, 8
mov dword [esp + 0x10], eax
test byte [esp + 0x18], 0x10
je 0x12f84363
cmp word [edi], 0x2e
jne 0x12f84256
mov ecx, dword [esp + 0x64]
mov ax, word [ecx + 0x2e]
test ax, ax
je 0x12f84415
cmp ax, 0x2e
jne 0x12f84256
cmp word [ecx + 0x30], 0
je 0x12f84415
push edi
push esi
call fcn.12f5c935
mov al, byte [esp + 0x70]
add esp, 8
test al, 0x30
je 0x12f842e2
mov edi, dword [esp + 0x78]
test edi, edi
je 0x12f842ab
test esi, esi
je 0x12f842e2
push 0x5c
push edi
call fcn.12f5d099
add esp, 8
test eax, eax
je 0x12f84287
push edi
push esi
jmp 0x12f8429f
push 0x5c
push esi
call fcn.12f5c984
add esp, 8
test eax, eax
je 0x12f8429b
add eax, 2
jmp 0x12f8429d
mov eax, esi
push edi
push eax
call fcn.12f513e0
add esp, 8
test eax, eax
je 0x12f842e2
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
test eax, eax
mov eax, dword [esp + 0x18]
push edx
je 0x12f842c0
mov eax, dword [esp + 0x68]
lea ecx, [ebx + ebp]
push eax
push ecx
push esi
call dword [esp + 0x80]
test eax, eax
mov dword [esp + 0x5c], eax
je 0x12f8442d
cmp eax, 2
je 0x12f8440c
mov edx, dword [esp + 0x68]
test dh, 2
je 0x12f8431a
mov eax, dword [esp + 0x64]
test eax, eax
je 0x12f8431a
mov ecx, dword [eax + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x12f8431a
test ah, 4
je 0x12f8431a
test ecx, 0x20000000
jne 0x12f8440c
cmp ecx, 0x8000001b
je 0x12f8440c
test dl, 0x40
jne 0x12f8440c
lea eax, [ebx + ebp]
push esi
lea ecx, [esp + 0x20]
mov word [esi + eax*2], 0x5c
mov word [esi + eax*2 + 2], 0
call fcn.12f46b50
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x58], 3
call fcn.12f4f960
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0
call fcn.12f472f0
jmp 0x12f8440c
test byte [esp + 0x68], 0x80
jne 0x12f84415
push edi
push esi
call fcn.12f5c935
mov eax, dword [esp + 0x80]
add esp, 8
test eax, eax
je 0x12f843db
push 0x5c
push eax
call fcn.12f5d099
add esp, 8
test eax, eax
je 0x12f84394
mov edi, esi
test edi, edi
je 0x12f8440c
mov ecx, dword [esp + 0x78]
push 0x5c
push ecx
call fcn.12f5d099
add esp, 8
test eax, eax
je 0x12f843b3
mov edx, dword [esp + 0x78]
push edx
push edi
jmp 0x12f843cf
push 0x5c
push edi
call fcn.12f5c984
add esp, 8
test eax, eax
je 0x12f843c7
add eax, 2
jmp 0x12f843c9
mov eax, edi
mov ecx, dword [esp + 0x78]
push ecx
push eax
call fcn.12f513e0
add esp, 8
test eax, eax
je 0x12f8440c
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x12f843ef
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
push edx
push eax
jmp 0x12f843f9
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
push ecx
push edx
add ebp, ebx
push ebp
push esi
call dword [esp + 0x80]
test eax, eax
mov dword [esp + 0x5c], eax
je 0x12f8442d
mov eax, dword [esp + 0x10]
mov word [eax], 0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x12f841b1
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x38]
call fcn.12f4fcf0
lea ecx, [esp + 0x30]
call fcn.12f472f0
test ebp, ebp
jne 0x12f840b8
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], 0xffffffff
call fcn.12f4f320
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret