Function at 0x40b5f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4235b7
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x42d4d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
push 0xc
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x268], ebx
call fcn.0041529b
mov edi, eax
add esp, 4
mov dword [ebp - 0x284], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x40b668
push 0x4282a0
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
call fcn.00415010
mov dword [edi], eax
jmp 0x40b66a
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x274], edi
cmp edi, ebx
jne 0x40b685
push 0x8007000e
call fcn.00414f70
lea edx, [ebp - 0x274]
push edx
lea eax, [ebp - 0x280]
mov dword [ebp - 4], 1
mov ecx, dword [esi]
push eax
call fcn.0040d780
mov eax, dword [eax]
add esp, 8
cmp eax, ebx
je 0x40b6ae
mov eax, dword [eax]
jmp 0x40b6b0
xor eax, eax
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x280]
cmp eax, ebx
je 0x40b714
mov ebx, eax
add eax, 8
push eax
call esi
test eax, eax
jne 0x40b70a
test ebx, ebx
je 0x40b70a
mov eax, dword [ebx]
test eax, eax
je 0x40b6f1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
test eax, eax
je 0x40b701
push eax
call fcn.004159ef
add esp, 4
push ebx
call fcn.00415281
add esp, 4
mov dword [ebp - 0x280], 0
lea edx, [edi + 8]
or ebx, 0xffffffff
push edx
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x40b74a
mov eax, dword [edi]
test eax, eax
je 0x40b731
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x40b741
push eax
call fcn.004159ef
add esp, 4
push edi
call fcn.00415281
add esp, 4
cmp dword [ebp - 0x278], ebx
je 0x40babf
mov edi, 0x4282a4
shr edi, 0x10
mov dword [ebp - 0x284], edi
jmp 0x40b770
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x26c], esi
mov dword [ebp - 4], 2
test edi, edi
jne 0x40b7c5
mov eax, 0x4282a4
movzx edi, ax
push edi
call fcn.004039a0
add esp, 4
test eax, eax
je 0x40b87f
push eax
mov eax, edi
lea edi, [ebp - 0x26c]
call fcn.004020e0
mov esi, dword [ebp - 0x26c]
jmp 0x40b87f
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push 0x4282a4
push 0
push 3
call ebx
lea edi, [eax - 1]
test edi, edi
jle 0x40b82a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40b807
mov eax, edi
lea ecx, [ebp - 0x26c]
call fcn.00402be0
mov esi, dword [ebp - 0x26c]
push edi
push esi
push 0xffffffffffffffff
push 0x4282a4
push 0
push 3
call ebx
cmp edi, dword [esi - 8]
jg 0x40bab5
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
jmp 0x40b87f
cmp dword [esi - 0xc], 0
mov edi, dword [esi - 0x10]
lea eax, [esi - 0x10]
je 0x40b87f
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40b857
cmp dword [esi - 8], 0
jl 0x40bab5
xor edx, edx
mov dword [esi - 0xc], 0
mov word [esi], dx
jmp 0x40b87f
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b86d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x26c], esi
mov dword [ebp - 4], 3
or dword [ebp - 0x268], 1
lea ecx, [ebp - 0x238]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b8bb
test dx, dx
je 0x40b8b7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b8bb
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b895
xor eax, eax
jmp 0x40b8c0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x40b97b
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x270], eax
mov ecx, 0x4282a8
mov dword [ebp - 4], 4
test ecx, 0xffff0000
jne 0x40b91c
mov edx, ecx
movzx edi, dx
push edi
call fcn.004039a0
add esp, 4
test eax, eax
je 0x40b92c
push eax
mov eax, edi
lea edi, [ebp - 0x270]
call fcn.004020e0
jmp 0x40b92c
mov ebx, 0x4282a8
lea eax, [ebp - 0x270]
call fcn.0040d3a0
mov byte [ebp - 4], 3
or dword [ebp - 0x268], 2
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b969
test dx, dx
je 0x40b965
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b969
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b943
xor eax, eax
jmp 0x40b96e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x40b97b
mov bl, 1
jmp 0x40b97d
xor bl, bl
test byte [ebp - 0x268], 2
je 0x40b9af
mov eax, dword [ebp - 0x270]
and dword [ebp - 0x268], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x268], 1
je 0x40b9e2
and dword [ebp - 0x268], 0xfffffffe
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40ba92
mov ecx, dword [ebp - 0x27c]
push ecx
lea edx, [ebp - 0x28c]
push edx
mov ebx, 0x428068
call fcn.00409ba0
push eax
lea eax, [ebp - 0x274]
push eax
lea ebx, [ebp - 0x238]
mov dword [ebp - 4], 5
call fcn.00409ba0
add esp, 0x10
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x288]
test eax, eax
je 0x40ba69
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 0x274]
push ecx
mov ecx, dword [ebp - 0x27c]
push edx
push ecx
call eax
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x264]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40babf
mov edi, dword [ebp - 0x284]
jmp 0x40b770
push 0x80070057
call fcn.00403bc0
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041528c
mov esp, ebp
pop ebp
ret