Function at 0x4ae630
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62035e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b0
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
mov eax, dword [ebx + 8]
mov byte [ebp - 4], 1
cmp eax, esi
jne 0x4ae678
lea eax, [ebx + 0xc]
mov edx, str._s.gsd
test edx, edx
je 0x4ae739
cmp eax, esi
je 0x4ae739
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e580
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401070
push str._s.gsd
lea ecx, [ebp - 0x3c]
call fcn.00402380
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
cmp eax, esi
jne 0x4ae6bd
lea eax, [ebp - 0x18]
mov esi, dword [ebp - 0x34]
push eax
call fcn.005e71bf
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005ffe3f
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x28], edx
je 0x4ae71e
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x1c]
call fcn.00402400
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x28]
push esi
push eax
call fcn.005e714f
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005e71bf
add esp, 0x14
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401070
mov ecx, dword [ebp - 0x28]
xor edi, edi
mov eax, ecx
cmp ecx, edi
jne 0x4ae744
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x2ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
jne 0x4ae777
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x18], di
mov eax, dword [ebx + 8]
mov byte [ebp - 4], 4
cmp eax, edi
mov esi, eax
jne 0x4ae791
lea esi, [ebx + 0xc]
mov eax, 0x6a112c
test eax, eax
je 0x4ae894
cmp esi, edi
je 0x4ae894
lea ecx, [ebp - 0x280]
test ecx, ecx
je 0x4ae894
push eax
lea ecx, [ebp - 0x58]
call fcn.00402380
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0040e580
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x3c]
push edx
mov byte [ebp - 4], 6
call fcn.0040e580
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401070
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x3c]
call fcn.00402400
push eax
call fcn.005e71bf
add esp, 4
lea ecx, [ebp - 0x4c]
mov edi, eax
call fcn.00402400
push eax
call fcn.005e71bf
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.005ffe3f
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x4ae870
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x3c]
call fcn.00402400
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402400
push eax
lea ecx, [ebp - 0x58]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e714f
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e71bf
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00401070
push 0x44
call fcn.005ffe3f
mov ecx, eax
add esp, 4
mov dword [ebp - 0x5c], ecx
test ecx, ecx
mov byte [ebp - 4], 8
je 0x4ae8b4
call fcn.00517ab0
mov ecx, eax
jmp 0x4ae8b6
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
test eax, eax
mov dword [ebp - 0x2c], ecx
jne 0x4ae8c7
lea eax, [ebp - 0x18]
push eax
call fcn.00517b60
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x6d22c0]
mov esi, dword [0x6d22c4]
xor bl, bl
xor eax, eax
cmp eax, esi
jge 0x4ae8f2
lea edi, [eax + eax*2]
mov edi, dword [edx + edi*4]
cmp edi, dword [ecx + 0x2c]
je 0x4ae8f6
inc eax
jmp 0x4ae8e0
test bl, bl
je 0x4ae925
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
jne 0x4ae902
lea eax, [ebp - 0x18]
push eax
push 0x6a10a0
add ecx, 0x30
call fcn.0041aed0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
lea ecx, [edx + 0x14]
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.004aed00
jmp 0x4ae931
xor edi, edi
cmp ecx, edi
je 0x4ae931
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x2ac]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jne 0x4ae95e
call fcn.00401070
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4ae75a
call fcn.00401070
mov ebx, dword [ebp - 0x30]
jmp 0x4ae777