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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x884
mov eax, dword [0x584c30]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x68a]
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov word [esp + 0x68c], ax
call fcn.00511ef0
add esp, 0xc
test ebx, ebx
je 0x40e7b9
test esi, esi
jne 0x40e796
mov dword [0x58dad8], 0x10000
jmp 0x40e7b9
cmp dword [esi], 2
je 0x40e7a7
mov dword [0x58dad8], 0x80000
jmp 0x40e7b9
mov edx, dword [esi + 4]
push 4
push ebx
xor ecx, ecx
call fcn.0040df70
mov dword [0x58dad8], eax
lea edx, [esp + 0x680]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e7c4
lea edi, [esp + 0x680]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e7e0
mov edx, dword [0x564294]
mov eax, ebx
mov dword [edi], edx
mov edx, eax
jmp 0x40e800
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e800
lea edi, [esp + 0x680]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40e820
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e820
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x680]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40e846
mov ecx, dword [0x564298]
mov dx, word [0x56429c]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x684]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0xffffffff
je 0x40ebef
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40ebdd
mov ecx, 0x5642a0
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e8ca
test dx, dx
je 0x40e8c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e8ca
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e8a4
xor eax, eax
jmp 0x40e8cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e887
mov ecx, 0x5642a4
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e906
test dx, dx
je 0x40e902
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e906
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e8e0
xor eax, eax
jmp 0x40e90b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e887
xor eax, eax
test byte [esp + 0x20], 0x10
push 0x206
push eax
je 0x40e9fb
lea ecx, [esp + 0x27a]
push ecx
mov word [esp + 0x27c], ax
call fcn.00511ef0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e944
lea edi, [esp + 0x270]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40e960
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e960
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x270]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e986
mov edx, dword [0x564294]
lea eax, [esp + 0x4c]
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e9a0
lea edi, [esp + 0x270]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40e9c0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e9c0
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x270]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0040e730
add esp, 0xc
jmp 0x40e887
lea ecx, [esp + 0x482]
push ecx
mov word [esp + 0x484], ax
call fcn.00511ef0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x286]
push eax
mov word [esp + 0x288], dx
call fcn.00511ef0
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x288]
add esp, 0x18
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40ea40
lea edi, [esp + 0x270]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ea60
mov ebx, dword [0x564294]
mov eax, dword [esp + 0x10]
mov dword [edi], ebx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ea80
lea edi, [esp + 0x270]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40eaa0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40eaa0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x270]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40eac6
lea eax, [esp + 0x4c]
mov dword [edi], ebx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eae0
lea edi, [esp + 0x270]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40eb00
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40eb00
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
lea edx, [esp + 0x478]
rep movsb byte es:[edi], byte [esi]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40eb30
lea edi, [esp + 0x478]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40eb50
lea eax, [esp + 0x4c]
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eb64
lea edi, [esp + 0x478]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40eb80
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40eb80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [esp + 0x478], 0x5c
lea eax, [esp + 0x478]
jne 0x40ebb5
lea eax, [esp + 0x47a]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, 2
lea esi, [esp + 0x274]
mov ebx, eax
call fcn.0040e640
add esp, 4
test eax, eax
jne 0x40ebef
mov ebx, dword [esp + 0x1c]
jmp 0x40e887
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
cmp eax, 0x12
je 0x40ec06
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.0050e062
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x88c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0050e062
mov esp, ebp
pop ebp
ret