Function at 0x40a785
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x44b3fc
call fcn.004191cc
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
push 1
xor ebx, ebx
cmp dword [ebp + 8], ebx
pop esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
je 0x40aabc
mov eax, dword [ebp + 0x10]
cmp dword [eax - 8], ebx
je 0x40aabc
push 0x4f
xor eax, eax
pop ecx
lea edi, [ebp - 0x168]
mov dword [ebp - 0x16c], ebx
mov esi, 0x477f94
rep stosd dword es:[edi], eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00436837
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00436837
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.0043653e
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
mov eax, dword [ecx - 8]
mov al, byte [eax + ecx - 1]
cmp al, 0x5c
je 0x40a818
push 0x462340
lea ecx, [ebp - 0x10]
call fcn.00436ba5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40a832
push 0x462340
lea ecx, [ebp + 0xc]
call fcn.00436ba5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
sub eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042dfe0
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.004369f8
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00436902
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004367c9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004367c9
push ebx
lea ecx, [ebp - 0x24]
call fcn.00436bf9
push eax
push dword [ebp + 8]
call fcn.00409e24
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x40a912
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push str.ZipAdd__s_to__s_error:
push eax
call fcn.0042e4d2
mov ecx, dword [ebp - 0x28]
add esp, 0x10
lea eax, [ebp + 8]
push esi
push eax
call fcn.0040b163
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00436be1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.004367c9
mov ecx, dword [ebp - 0x28]
push ebx
push 0x4626e4
push dword [ebp - 0x1c]
call fcn.00434176
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004367c9
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004367c9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004367c9
xor esi, esi
jmp 0x40aabc
lea eax, [ebp - 0x10]
push 0x462f0c
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00436a5e
mov eax, dword [eax]
lea ecx, [ebp - 0x16c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.004367c9
cmp dword [ebp - 0x18], 0xffffffff
je 0x40aa95
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [ebp - 0x16b], 0x41
jne 0x40aa71
test byte [ebp - 0x16c], 4
jne 0x40aa71
lea eax, [ebp - 0x140]
push 0x462f08
push eax
call fcn.004191eb
pop ecx
test eax, eax
pop ecx
je 0x40aa71
lea eax, [ebp - 0x140]
push 0x462f04
push eax
call fcn.004191eb
pop ecx
test eax, eax
pop ecx
je 0x40aa71
test byte [ebp - 0x16c], 0x10
je 0x40aa23
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00436a5e
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 8
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40a9da
push 0x462340
lea ecx, [ebp - 0x14]
call fcn.00436ba5
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0043653e
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 9
call fcn.0043653e
push dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0040a785
test eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
je 0x40aa87
call fcn.004367c9
jmp 0x40aa71
sub esp, 0x140
lea esi, [ebp - 0x16c]
lea eax, [ebp - 0x10]
push 0x50
pop ecx
mov edi, esp
push dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.0043653e
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.0043653e
push dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040aae7
test eax, eax
mov dword [ebp - 0x20], eax
je 0x40aa8c
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x40a94f
jmp 0x40aa8c
call fcn.004367c9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004367c9
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004367c9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004367c9
mov esi, dword [ebp - 0x20]
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004367c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004367c9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10