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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x34
push 0
push 0
dec ecx
jne 0x500635
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ed0
xor eax, eax
push ebp
push 0x500dfe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x500e18
mov edx, dword [ebp - 4]
call fcn.00404d2c
mov eax, dword [ebp - 0x158]
call fcn.00404ee0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x500dad
mov bl, 1
jmp 0x500dad
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048d8b8
mov eax, dword [0x580cd8]
cmp byte [eax], 2
je 0x500db5
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404c90
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0x15c]
call fcn.00408fc0
mov eax, dword [ebp - 0x15c]
push eax
lea edx, [ebp - 0x164]
mov eax, 0x500e34
call fcn.00408fc0
mov eax, dword [ebp - 0x164]
pop edx
call fcn.00405024
test eax, eax
jg 0x500dbb
mov eax, dword [ebp - 0x154]
cmp eax, 0x10
je 0x500758
cmp eax, 2
je 0x500758
cmp eax, 4
je 0x500758
cmp eax, 0x80
je 0x500758
cmp eax, 0x100
je 0x500758
cmp eax, 0x13
je 0x500758
cmp eax, 0x20
je 0x500758
cmp eax, 0x16
jne 0x50081c
mov eax, dword [0x581058]
inc dword [eax]
mov eax, dword [0x581058]
mov eax, dword [eax]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x50079b
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404da0
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 0xc]
call fcn.0046cef4
call fcn.0057b47c
mov eax, dword [ebp - 0x10]
mov edx, 0x500e44
call fcn.00404e2c
je 0x50081c
mov eax, dword [ebp - 0x10]
mov edx, 0x500e50
call fcn.00404e2c
je 0x50081c
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x16c]
call fcn.004099c4
test al, al
je 0x50081c
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0050062c
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x10]
call fcn.00409c98
mov eax, dword [ebp - 0x174]
mov edx, 0x500e5c
call fcn.00404e2c
jne 0x500d9a
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x14]
call fcn.005003c8
cmp dword [ebp - 0x14], 0
je 0x500d9a
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 0x14]
call fcn.00408fc0
mov eax, dword [ebp - 0x17c]
push eax
lea edx, [ebp - 0x180]
mov eax, 0x500e6c
call fcn.00408fc0
mov eax, dword [ebp - 0x180]
pop edx
call fcn.00405024
test eax, eax
jne 0x500d9a
mov eax, dword [0x580a04]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.0057a5b8
test al, al
je 0x500d9a
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.00408fc0
mov eax, dword [ebp - 0x184]
push eax
lea edx, [ebp - 0x18c]
mov eax, 0x500e34
call fcn.00408fc0
mov eax, dword [ebp - 0x18c]
pop edx
call fcn.00405024
test eax, eax
jne 0x500d9a
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x14]
call fcn.00409c98
cmp dword [ebp - 0x190], 0
jne 0x500b6e
mov eax, dword [ebp - 0x14]
call fcn.004099c4
test al, al
jne 0x500d9a
mov edx, dword [ebp - 0x14]
mov eax, 0x500e78
call fcn.00405024
test eax, eax
jne 0x500d9a
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.00404da0
mov ecx, dword [ebp - 0x194]
mov eax, dword [0x5809f0]
mov eax, dword [eax]
mov edx, 0x500e84
call fcn.0057ac74
cmp al, 1
je 0x500dbb
mov eax, dword [ebp + 8]
call fcn.004f3024
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
mov byte [eax + 0xc], 1
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x12
mov edx, 3
call fcn.00404da0
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x16
mov edx, 3
call fcn.00404da0
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x1a
mov edx, dword [ebp - 0x14]
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x1e
call fcn.00404a20
push 0x500ea0
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x2e
mov edx, 4
call fcn.00404da0
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x32
mov ecx, dword [ebp - 0x14]
mov edx, 0x500eb4
call fcn.00404d2c
push 0x500ec8
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x36
mov edx, 4
call fcn.00404da0
push 0x500ed8
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
push 0x500ef0
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x3a
mov edx, 5
call fcn.00404da0
mov eax, dword [0x5810e0]
inc dword [eax]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
mov edx, dword [0x5810e0]
mov edx, dword [edx]
mov dword [eax + 0x2a], edx
push 0x500f08
push dword [ebp - 0x10]
push 0x500f20
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
push 0x500f38
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x42
mov edx, 7
call fcn.00404da0
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x46
mov edx, 0x500f60
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x3e
mov edx, 0x500f7c
call fcn.00404a74
lea eax, [ebp - 0x198]
push eax
mov eax, dword [ebp + 8]
call fcn.0041bd60
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 0x19c], 0
lea edx, [ebp - 0x1a0]
xor ecx, ecx
mov eax, 0x500f88
call fcn.0040a520
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp + 0xc]
call fcn.0046cef4
jmp 0x500d9a
mov edx, dword [ebp - 0x14]
mov eax, 0x500e78
call fcn.00405024
test eax, eax
jne 0x500d9a
mov eax, dword [ebp - 0x14]
call fcn.00500280
test al, al
jne 0x500d9a
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.00404da0
mov ecx, dword [ebp - 0x1a4]
mov edx, 0x500e84
mov eax, dword [0x5809f0]
mov eax, dword [eax]
call fcn.0057ac74
cmp al, 1
je 0x500dbb
mov eax, dword [ebp + 8]
call fcn.004f3024
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
mov byte [eax + 0xc], 1
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x12
mov edx, 3
call fcn.00404da0
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x16
mov edx, 3
call fcn.00404da0
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x1a
mov edx, dword [ebp - 0x14]
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x1e
call fcn.00404a20
push 0x500ea0
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x2e
mov edx, 4
call fcn.00404da0
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x32
mov ecx, dword [ebp - 0x14]
mov edx, 0x500eb4
call fcn.00404d2c
push 0x500ec8
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x36
mov edx, 4
call fcn.00404da0
push 0x500f94
push dword [ebp - 0x14]
push 0x500fa8
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x3a
mov edx, 3
call fcn.00404da0
mov eax, dword [0x5810e0]
inc dword [eax]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
mov edx, dword [0x5810e0]
mov edx, dword [edx]
mov dword [eax + 0x2a], edx
push 0x500f08
push dword [ebp - 0x10]
push 0x500f20
push dword [ebp - 4]
push 0x500e28
push dword [ebp - 0x10]
push 0x500f38
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x42
mov edx, 7
call fcn.00404da0
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x46
mov edx, 0x500f60
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004f3038
add eax, 0x3e
mov edx, 0x500f7c
call fcn.00404a74
lea eax, [ebp - 0x1a8]
push eax
mov eax, dword [ebp + 8]
call fcn.0041bd60
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 0x19c], 0
lea edx, [ebp - 0x1a0]
xor ecx, ecx
mov eax, 0x500f88
call fcn.0040a520
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ebp + 0xc]
call fcn.0046cef4
lea eax, [ebp - 0x154]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x50069e
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500e05
lea eax, [ebp - 0x1a8]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x198]
mov edx, 0x11
call fcn.00404a44
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 4]
call fcn.00404a20
ret