Function at 0x4074d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415270
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x41d004]
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 dword [ebp - 0x270], ecx
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 0x268], eax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407512
sub edx, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
sar edx, 1
xor ecx, ecx
lea eax, [edx + 1]
mov edx, 2
mov dword [ebp - 0x26c], eax
add eax, 3
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x268]
mov edi, eax
mov esi, edi
mov dword [ebp - 0x278], edi
sub esi, edx
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x407561
lea ecx, [edi - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x407574
mov eax, dword [0x41b020]
mov dword [ecx], eax
mov eax, dword [0x41b024]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x4077c1
mov ebx, eax
nop
test byte [ebp - 0x260], 0x10
jne 0x407798
xor edi, edi
cmp dword [0x427358], edi
jbe 0x4075f4
mov esi, 0x42735c
nop dword [eax]
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.0040b4ff
add esp, 8
test eax, eax
je 0x407798
inc edi
add esi, 0x40
cmp edi, dword [0x427358]
jb 0x4075d0
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407600
sub eax, edx
sar eax, 1
add eax, 0xffffffff
js 0x40766f
nop dword [eax]
nop dword [eax + eax]
movzx ecx, word [ebp + eax*2 - 0x234]
cmp ecx, 0x2e
je 0x407639
cmp ecx, 0x5c
je 0x40766f
sub eax, 1
jns 0x407620
jmp 0x40766f
xor edi, edi
cmp dword [0x42835c], edi
jbe 0x40766f
lea ebx, [ebp - 0x234]
mov esi, 0x428360
lea ebx, [ebx + eax*2]
push esi
push ebx
call fcn.0040b4ff
add esp, 8
test eax, eax
je 0x407792
inc edi
add esi, 0x20
cmp edi, dword [0x42835c]
jb 0x407651
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407680
mov eax, dword [ebp - 0x26c]
sub ecx, edx
sar ecx, 1
inc eax
add eax, ecx
mov edx, 2
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x268]
mov ebx, eax
mov esi, ebx
sub esi, edx
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x4076c4
lea edx, [ebp - 0x234]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4076e0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4076f0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x270]
mov esi, dword [edi + 4]
push 0
mov dword [ebp - 0x274], 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407737
push 0
mov ecx, edi
call fcn.00407160
jmp 0x407710
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x24], 0x15555555
mov edi, dword [esi + 0x20]
je 0x4077ef
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], 0xffffffff
push esi
mov dword [eax + 8], ebx
inc dword [esi + 0x24]
mov ecx, dword [edi + 4]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [edi + 4], eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x274]
push eax
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4075b0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [ebp - 0x278]
test edi, edi
je 0x4077d1
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
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.00407f82
mov esp, ebp
pop ebp
ret 4
push str.list_too_long
call fcn.00408c3a
int3