Function at 0x40b8d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44addb
mov eax, dword fs:[0]
push eax
mov eax, 0x2460
call fcn.0042a870
mov eax, dword [0x465944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x250
lea eax, [ebp - 0x2468]
push 0
push eax
call fcn.0042c930
mov eax, dword [0x4644dc]
mov dword [ebp - 0x246c], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0042c930
push 0x7fe
lea eax, [ebp - 0xa16]
push 0
push eax
call fcn.0042c930
push 0x800
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.0042c930
xor eax, eax
push 0x1000
push eax
mov word [ebp - 0xa18], ax
lea eax, [ebp - 0x2218]
push eax
call fcn.0042c930
add esp, 0x3c
lea eax, [ebp - 0x2218]
push 0x800
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x2218]
push eax
call edi
push 0x400
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0xa18]
push eax
call fcn.00433b17
xor esi, esi
add esp, 0xc
cmp dword [ebx + 8], esi
jle 0x40b9d5
lea eax, [ebp - 0xa18]
push eax
call edi
inc esi
cmp esi, dword [ebx + 8]
jl 0x40b9c6
push str.config
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x246c]
call fcn.004077d0
push str..
call esi
push str..
push eax
lea ecx, [ebp - 0x246c]
call fcn.0040bdb0
mov esi, dword [ebp - 0x246c]
lea eax, [ebp - 0x2468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
test edi, edi
je 0x40bb17
nop word [eax + eax]
test byte [ebp - 0x2468], 0x10
je 0x40bafa
mov ecx, 0x44f2cc
lea eax, [ebp - 0x243c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ba8e
test dx, dx
je 0x40ba8a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ba8e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ba68
xor eax, eax
jmp 0x40ba93
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bafa
mov eax, 0x44f2d0
lea ecx, [ebp - 0x243c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40bac8
test dx, dx
je 0x40bac4
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40bac8
add ecx, 4
add eax, 4
test dx, dx
jne 0x40baa2
xor eax, eax
jmp 0x40bacd
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bafa
lea eax, [ebp - 0x243c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1218]
mov ecx, ebx
push eax
call fcn.0040bb60
lea eax, [ebp - 0x2468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ba50
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi - 0xc]
cmp eax, dword [0x4644d8]
je 0x40bb39
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40bb39
push esi
call fcn.00425cdd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a853
mov esp, ebp
pop ebp
ret