Function at 0x4013bd
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2d4
mov eax, 0x423a4a
call fcn.00422de6
mov esi, ecx
mov dword [ebp - 0x294], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 7
call fcn.00403109
mov byte [ebp - 4], 2
lea edi, [ebp - 0x24]
xor eax, eax
stosd dword es:[edi], eax
push ecx
xor ecx, ecx
push 8
stosd dword es:[edi], eax
inc ecx
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00401191
mov dword [ebp - 0x24], eax
pop ecx
test eax, eax
je 0x401425
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
mov dword [eax], ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
inc eax
cmp edi, eax
ja 0x401442
push ecx
call fcn.00402f28
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
dec edi
mov eax, dword [ebp - 0x14]
and ecx, edi
add eax, ecx
mov dword [ebp - 0x18], ecx
and edi, eax
mov eax, dword [ebp - 0x20]
push 0x18
pop ecx
cmp dword [eax + edi*4], ebx
jne 0x401472
push ecx
mov edx, ecx
xor ecx, ecx
inc ecx
call fcn.00401191
pop ecx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + edi*4], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + edi*4]
mov byte [ebp - 4], 4
test edi, edi
je 0x40149d
push ebx
mov ecx, edi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 7
call fcn.00403109
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.00403121
mov byte [ebp - 4], 3
inc dword [ebp - 0x14]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
cmp edi, ebx
je 0x4014c7
push 0x18
pop esi
push 0
push 1
mov ecx, edi
call fcn.00402d82
add edi, esi
cmp edi, ebx
jne 0x4014b0
mov esi, dword [ebp - 0x294]
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x4017ae
push ecx
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040304d
mov ecx, eax
call fcn.00402ed6
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4014f9
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
lea edx, [ebp + 8]
cmp edx, dword [eax + ecx*4]
je 0x401519
push 0xffffffffffffffff
push 0
push dword [eax + ecx*4]
mov ecx, edx
call fcn.00403121
push ecx
lea edx, [ebp + 8]
lea ecx, [ebp - 0x2c8]
call fcn.004033b6
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x2b0]
call fcn.00403475
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x3c]
cmp eax, edi
je 0x40155c
push 0
push 1
mov ecx, eax
call fcn.00402d82
push edi
lea ecx, [ebp - 0x3c]
call fcn.00402e8d
push 0
push 1
lea ecx, [ebp - 0x2b0]
call fcn.00402d82
push 0
push 1
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 3
call fcn.00402d82
lea ecx, [ebp - 0x24]
call fcn.00402cea
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x294], ebx
cmp ebx, 0xffffffff
je 0x401806
push 4
mov edx, 0x429a0c
lea ecx, [ebp - 0x264]
pop edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4015e2
test ax, ax
je 0x4015de
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4015e2
add ecx, edi
add edx, edi
test ax, ax
jne 0x4015be
xor eax, eax
jmp 0x4015e7
sbb eax, eax
or eax, 1
test eax, eax
je 0x401786
mov ecx, 0x429a10
lea eax, [ebp - 0x264]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40161e
test dx, dx
je 0x40161a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40161e
add eax, edi
add ecx, edi
test dx, dx
jne 0x4015fa
xor eax, eax
jmp 0x401623
sbb eax, eax
or eax, 1
test eax, eax
je 0x401786
test byte [ebp - 0x290], 0x10
lea edx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x2b0]
je 0x4016ec
call fcn.004033b6
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c8]
call fcn.00403440
pop ecx
pop ecx
mov ebx, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
inc ecx
cmp edx, ecx
ja 0x40167e
push ecx
lea ecx, [ebp - 0x24]
call fcn.00402f28
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
dec edx
mov edi, dword [ebp - 0x14]
and ecx, edx
add edi, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x20]
and edi, edx
cmp dword [ecx + edi*4], 0
jne 0x4016af
push ecx
push 0x18
pop eax
xor ecx, ecx
mov edx, eax
inc ecx
call fcn.00401191
pop ecx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + edi*4], eax
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x4016bc
push ebx
call fcn.004034a1
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x2c8]
push 0
push 1
call fcn.00402d82
push 0
push 1
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 3
call fcn.00402d82
mov ebx, dword [ebp - 0x294]
jmp 0x401786
call fcn.004033b6
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c8]
call fcn.00403440
pop ecx
pop ecx
mov edi, eax
mov byte [ebp - 4], 0xa
mov ecx, dword [esi + 4]
cmp edi, ecx
jae 0x401744
cmp dword [esi], edi
ja 0x401744
sub edi, dword [esi]
mov eax, edi
push 0x18
pop edi
cdq
idiv edi
mov edi, eax
cmp ecx, dword [esi + 8]
jne 0x401735
push ecx
mov ecx, esi
call fcn.00402d17
mov ecx, dword [esi + 4]
imul eax, edi, 0x18
add eax, dword [esi]
test ecx, ecx
je 0x40175e
push eax
jmp 0x401759
cmp ecx, dword [esi + 8]
jne 0x401751
push ecx
mov ecx, esi
call fcn.00402d17
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40175e
push edi
call fcn.004034a1
push 0x18
pop eax
add dword [esi + 4], eax
lea ecx, [ebp - 0x2c8]
push 0
push 1
call fcn.00402d82
push 0
push 1
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 3
call fcn.00402d82
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4015b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4017ee
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 0
jne 0x4014d1
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.00402baf
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402d82
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00402d82
push 0
push 1
lea ecx, [ebp + 0x20]
call fcn.00402d82
mov al, bl
call fcn.00422da1
ret
mov edx, str.ERROR_NO_MORE_FILES
mov ecx, 0x4299e8
call fcn.00405050
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40183f
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push ecx
cmovae eax, dword [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00401285
call fcn.00403ae0
push eax
push str.INVALID_HANDLE_VALUE_at__s
mov esi, 0x430110
push esi
call fcn.004010ed
add esp, 0x10
mov edx, esi
mov ecx, 0x4299e8
call fcn.00405050
xor bl, bl
jmp 0x4017ba