Function at 0x4035a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f0d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
xor eax, eax
mov word [ebp - 0x30], ax
push 6
mov eax, 0x528d9c
lea esi, [ebp - 0x30]
call fcn.00412b10
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
mov eax, 0x528d74
lea ecx, [ebp - 0xc4]
call fcn.0040fae0
mov byte [ebp - 4], 3
push 0x528dac
push 0x572ba0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00413af0
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebp - 0x78], 8
mov eax, dword [ebp - 0x8c]
jae 0x403637
lea eax, [ebp - 0x8c]
lea edx, [ebp - 0x388]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], 0
xor eax, eax
mov word [ebp - 0xa8], ax
mov byte [ebp - 4], 5
push eax
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
mov esi, dword [ebp + 8]
lea eax, [esi + 0x64]
call fcn.0040fdc0
lea eax, [esi + 0x74]
call fcn.0040fdc0
cmp edi, 0xffffffff
je 0x40395f
mov eax, 0x528928
lea ecx, [ebp - 0xe0]
call fcn.0040fae0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xfc]
push ecx
call fcn.004187d0
add esp, 4
mov byte [ebp - 4], bl
mov edi, eax
mov esi, 0x572c10
call fcn.00411aa0
mov byte [ebp - 4], 6
lea esi, [ebp - 0xfc]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xe0]
call fcn.004150b0
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4036e9
lea eax, [ebp + 0xc]
push eax
call fcn.0050e900
add esp, 4
mov edi, eax
mov dword [ebp - 0x34], edi
jmp 0x403700
test byte [ebp - 0x388], 0xa0
je 0x4038e3
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x35c]
call fcn.0040fb40
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004f07a0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x30]
push edx
push 0x572ba0
lea eax, [ebp - 0xfc]
push eax
call fcn.00413c30
add esp, 0x14
mov byte [ebp - 4], 9
lea ecx, [ebp + 0xc]
call fcn.00413ce0
mov bl, al
mov byte [ebp - 4], 8
lea esi, [ebp - 0xfc]
call fcn.004150b0
test bl, bl
jne 0x4037e2
mov ecx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
jb 0x4037a9
lea ecx, [esi + 0x1c]
call fcn.004f1130
test al, al
je 0x4037a9
lea eax, [esi + 0x1c]
mov ecx, 0x572c10
call fcn.00413d00
test al, al
je 0x4037e2
lea edx, [ebp - 0x30]
push edx
push 0x572ba0
lea eax, [ebp - 0xe0]
push eax
call fcn.00413c30
add esp, 0xc
mov byte [ebp - 4], 0xa
push eax
call fcn.0043f1c0
add esp, 4
mov byte [ebp - 4], 8
lea esi, [ebp - 0xe0]
call fcn.004150b0
jmp 0x4038d7
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, 0x528d68
call fcn.0040fba0
cmp eax, 0xffffffff
jne 0x403810
push 0
lea edx, [ebp - 0x30]
push edx
mov edx, 0x528db4
call fcn.0040fba0
cmp eax, 0xffffffff
je 0x4038d7
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x64]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x4038d7
mov esi, dword [ebp + 8]
lea edi, [esi + 0x64]
lea ecx, [ebp - 0x30]
call fcn.0040fcf0
lea edi, [esi + 0x74]
lea ecx, [ebp - 0x30]
call fcn.0040fcf0
lea ecx, [ebp - 0x30]
push ecx
push 0x572ba0
lea edx, [ebp - 0x54]
push edx
call fcn.00413c30
add esp, 0xc
mov byte [ebp - 4], 0xb
mov eax, 8
cmp dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x54]
jae 0x403874
lea edx, [ebp - 0x54]
cmp dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
jae 0x40387f
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x403892
mov dword [0x1579ad4], 0x10000
jmp 0x4038b3
cmp dword [eax], 2
je 0x4038a3
mov dword [0x1579ad4], 0x80000
jmp 0x4038b3
mov eax, dword [eax + 4]
push edx
push ecx
push eax
call fcn.0050e0d0
mov dword [0x1579ad4], eax
inc dword [ebp - 0x14]
push 0xdbc18
mov ecx, 0x17
call fcn.004221a0
add esp, 4
mov byte [ebp - 4], 8
lea esi, [ebp - 0x54]
call fcn.004150b0
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 5
lea esi, [ebp - 0x64]
call fcn.0040fcb0
lea eax, [ebp - 0x388]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403700
lea edx, [ebp - 0x30]
push edx
mov eax, str._CloseZip_
call fcn.0040fb40
test edi, edi
jne 0x40391a
mov dword [0x1579ad4], 0x10000
jmp 0x40394b
cmp dword [edi], 2
je 0x40392b
mov dword [0x1579ad4], 0x80000
jmp 0x40394b
mov esi, dword [edi + 4]
call fcn.0050dbe0
mov dword [0x1579ad4], eax
test esi, esi
je 0x403941
call fcn.0050e9c0
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 0
jne 0x403a0d
mov eax, str.no_file_to_zip.
lea ecx, [ebp - 0x54]
call fcn.0040fae0
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x54]
push ecx
push 0x25c
push str.ActionManager::BuildZip
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 5
lea esi, [ebp - 0x54]
call fcn.004150b0
lea edx, [ebp - 0x30]
push edx
mov eax, str._FileDelete_
call fcn.0040fb40
lea eax, [ebp + 0xc]
push eax
call fcn.0043f1c0
add esp, 4
mov byte [ebp - 4], 4
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x30]
call fcn.004150b0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0xc]
call fcn.004150b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov byte [ebp - 4], 4
lea esi, [ebp - 0xa8]
call fcn.004150b0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x8c]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc4]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x30]
call fcn.004150b0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0xc]
call fcn.004150b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20