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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x5c5bad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
xor esi, esi
mov dword [ebp + 0x58], 0
xor eax, eax
mov dword [ebp + 0x30], esi
push edi
mov edi, edx
mov dword [ebp + 0x60], esi
mov ebx, ecx
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov dword [ebp - 4], eax
mov eax, SysReAllocString
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 2
jb 0x52ec87
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x52e8a9
mov eax, dword [ebx]
push 2
push 0x5f37d4
push ecx
push eax
push ecx
push dword [ebp + 0x60]
lea ecx, [ebp + 0x18]
call fcn.0044f200
cmp dword [ebp + 0x2c], 8
lea ecx, [ebp - 0x274]
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x5c], eax
cmp ecx, 8
jb 0x52e917
mov edx, dword [ebp + 0x18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52e90a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52ec8c
push ecx
push edx
call fcn.00583877
mov eax, dword [ebp + 0x5c]
add esp, 8
xor ecx, ecx
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], cx
cmp eax, 0xffffffff
jne 0x52e98d
mov esi, dword [edi + 4]
mov dword [ebp + 0x4c], eax
lea eax, [ebp + 0x30]
mov dword [ebp + 0x48], 0xfffffffe
push eax
cmp esi, dword [edi + 8]
je 0x52e977
mov ecx, esi
call fcn.00446f20
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x4c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0x54]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
add dword [edi + 4], 0x28
xor esi, esi
mov dword [ebp + 0x58], 0
jmp 0x52ec68
push esi
mov ecx, edi
call fcn.0052f080
mov dword [ebp + 0x58], 0
xor esi, esi
jmp 0x52ec68
mov esi, dword [ebp + 0x5c]
mov ecx, 0x5de7d8
lea eax, [ebp - 0x248]
jmp 0x52e9a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x52e9c6
test dx, dx
je 0x52e9c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x52e9c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x52e9a0
xor eax, eax
jmp 0x52e9cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x52ebea
mov ecx, 0x5ee42c
lea eax, [ebp - 0x248]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x52ea06
test dx, dx
je 0x52ea02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x52ea06
add eax, 4
add ecx, 4
test dx, dx
jne 0x52e9e0
xor eax, eax
jmp 0x52ea0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x52ebea
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52ea20
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.004496e0
test byte [ebp - 0x274], 0x10
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x25c]
mov esi, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], ecx
je 0x52eb9a
mov dword [ebp + 0x48], 0xffffffff
lea eax, [ebp + 0x30]
mov dword [ebp + 0x4c], 0xffffffff
push eax
cmp esi, edx
je 0x52ea9f
mov ecx, esi
call fcn.00446f20
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x4c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0x54]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
add dword [edi + 4], 0x28
jmp 0x52eaa7
push esi
mov ecx, edi
call fcn.0052f080
mov ecx, dword [ebx + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x52ec87
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x52eac4
mov eax, dword [ebx]
push 1
push 0x5ed894
push ecx
push eax
push ecx
push dword [ebp + 0x60]
lea ecx, [ebp - 0x24]
call fcn.0044f200
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp]
call fcn.0044cdc0
add esp, 4
mov edx, edi
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.0052e840
add dword [ebp + 0x58], eax
mov byte [ebp - 4], 1
adc dword [ebp + 0x60], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, 8
jb 0x52eb43
mov edx, dword [ebp]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52eb39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52ec8c
push ecx
push edx
call fcn.00583877
add esp, 8
xor eax, eax
mov dword [ebp + 0x10], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0x14], 7
mov word [ebp], ax
cmp ecx, 8
jb 0x52ebe7
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x52eb8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52ec8c
push ecx
push edx
call fcn.00583877
add esp, 8
jmp 0x52ebe7
mov eax, dword [ebp - 0x254]
add dword [ebp + 0x58], eax
mov ecx, dword [ebp - 0x258]
adc dword [ebp + 0x60], ecx
mov dword [ebp + 0x48], eax
lea eax, [ebp + 0x30]
mov dword [ebp + 0x4c], ecx
push eax
cmp esi, edx
je 0x52ebdf
mov ecx, esi
call fcn.00446f20
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x4c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0x54]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
add dword [edi + 4], 0x28
jmp 0x52ebe7
push esi
mov ecx, edi
call fcn.0052f080
mov esi, dword [ebp + 0x5c]
lea eax, [ebp - 0x274]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x52e990
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
mov dword [ebp + 0x40], 0
cmovae eax, dword [ebp + 0x30]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x30]
mov esi, dword [edi + 4]
mov dword [ebp + 0x48], 0xfffffffe
mov dword [ebp + 0x4c], 0xffffffff
push eax
cmp esi, dword [edi + 8]
je 0x52ec5d
mov ecx, esi
call fcn.00446f20
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x4c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0x54]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
add dword [edi + 4], 0x28
jmp 0x52ec65
push esi
mov ecx, edi
call fcn.0052f080
mov esi, dword [ebp + 0x60]
lea ecx, [ebp + 0x30]
call fcn.00449550
mov ecx, dword [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp + 0x58]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x64]
pop ebp
ret
call fcn.004353d0
call fcn.00591c98
int3