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

Disassembly:
push 0xffffffffffffffff
push 0x44d961
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x461b64]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461b64]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
call fcn.0040c9e0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea ebp, [edi + 0xc]
mov dword [esp + 0x1c8], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
push 8
mov byte [esp + 0x1cc], 1
call fcn.004362e3
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
mov byte [esp + 0x1c8], 2
je 0x40f4e9
push 0x10
call fcn.004362e3
add esp, 4
cmp eax, ebx
je 0x40f4dc
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esp + 0x18], esi
jmp 0x40f4ed
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esp + 0x18], esi
jmp 0x40f4ed
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1c8], 1
mov dword [esp + 0x1c], eax
call fcn.0040ff90
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x40f52b
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
push edx
push eax
push ebx
mov ecx, edi
call fcn.0040de80
mov eax, dword [esi + 4]
add esi, 4
cmp eax, ebx
jne 0x40f510
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40f551
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
je 0x40f551
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.0040d980
jmp 0x40f581
cmp esi, ebx
je 0x40f574
cmp eax, ebx
je 0x40f562
push eax
call fcn.004360b5
add esp, 4
push esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004360b5
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call fcn.004360b5
add esp, 4
push ebx
push ebx
lea esi, [esp + 0x4c]
call fcn.0040d310
push str.plugins_
push eax
lea ecx, [esp + 0x70]
push ecx
mov byte [esp + 0x1dc], 4
call fcn.0040d090
add esp, 0x14
mov esi, 0x10
cmp dword [esp + 0x5c], esi
mov byte [esp + 0x1c8], 6
jb 0x40f5c7
mov edx, dword [esp + 0x48]
push edx
call fcn.004360b5
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x68]
mov ebp, 0xf
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.004016d0
push 5
push str..dll
lea ecx, [esp + 0x30]
mov byte [esp + 0x1d0], 7
call fcn.00402610
cmp dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
jae 0x40f61b
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40f6ca
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.004016d0
lea eax, [esp + 0xa8]
mov byte [esp + 0x1c8], 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40f663
sub eax, edx
push eax
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x4c]
call fcn.00402610
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.0040f240
cmp dword [esp + 0x5c], esi
mov byte [esp + 0x1c8], 7
jb 0x40f6a7
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004360b5
add esp, 4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40f634
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [esp + 0x40], esi
jb 0x40f6dd
mov edx, dword [esp + 0x2c]
push edx
call fcn.004360b5
add esp, 4
cmp dword [esp + 0x78], esi
mov byte [esp + 0x2c], bl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
jb 0x40f6fc
mov eax, dword [esp + 0x64]
push eax
call fcn.004360b5
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0043675e
add esp, 0x1b8
ret