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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc38
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404018
mov eax, dword [ebp - 0xc]
call fcn.00404018
mov eax, dword [ebp + 8]
call fcn.00404018
xor eax, eax
push ebp
push 0x4a02de
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0xa
lea eax, [ebp - 0x23]
mov byte [eax], 0
inc eax
dec ebx
jne 0x49fd04
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [0x4cf300]
mov byte [eax], 2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040633e
mov eax, dword [ebp - 8]
call fcn.004094a8
test al, al
je 0x49fd49
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406875
call fcn.00402854
jmp 0x49fd5e
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.0040688c
call fcn.00402854
lea eax, [ebp - 0x2bc]
call fcn.004065b0
call fcn.00402854
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.004068ac
call fcn.00402854
cmp dword [ebp - 0xc], 0
je 0x49fea0
mov byte [ebp - 0x23], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004095c0
mov eax, dword [ebp - 0x14]
call fcn.00403e64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x49fdc4
mov ebx, 1
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + ebx - 1]
mov byte [edx], cl
inc ebx
inc edx
dec eax
jne 0x49fdb6
push 0
lea edx, [ebp - 0x30]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 0x28]
add eax, 0xe
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004c8890
mov dword [ebp - 0x28], eax
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa5d0]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa5d0]
call fcn.0040279c
mov eax, dword [ebp - 0x30]
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x18]
call fcn.004096b4
mov eax, dword [ebp - 0x18]
call fcn.00403e64
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404198
xor eax, eax
push ebp
push 0x49fee3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00402890
call fcn.00402854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ff17
lea eax, [ebp - 0x170]
push eax
push 0x4a02f0
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x23], 1
mov eax, dword [ebp + 8]
call fcn.00403e64
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x28]
cmp ebx, 1
jl 0x49ff51
mov eax, dword [ebp + 8]
cmp byte [eax + ebx - 1], 0x5c
je 0x49ff51
dec ebx
test ebx, ebx
jne 0x49ff42
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
call fcn.00403e64
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp + 8]
call fcn.0040406c
mov eax, dword [ebp - 0x2c]
call fcn.00403e64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x49ff95
mov ebx, 1
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx + ebx - 1]
mov byte [edx], cl
inc ebx
inc edx
dec eax
jne 0x49ff87
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 0x30]
add eax, 0xa
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2bc]
call fcn.004064a8
call fcn.00402854
cmp dword [ebp - 0x10], 0xffffffff
je 0x4a025f
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x144]
mov ecx, 0x104
call fcn.00403e14
mov eax, dword [ebp - 0x14]
mov edx, 0x4a02fc
call fcn.00403f74
je 0x4a003e
mov eax, dword [ebp - 0x14]
mov edx, 0x4a0308
call fcn.00403f74
jne 0x4a0052
cmp byte [ebp - 0x19], 0
jne 0x4a0048
xor eax, eax
jmp 0x4a004a
mov al, 1
mov byte [ebp - 0x19], al
jmp 0x4a023f
mov byte [ebp - 0x19], 0
cmp dword [ebp - 0x170], 0x10
jne 0x4a00d5
mov eax, dword [ebp + 8]
call fcn.00403e64
mov edx, dword [ebp + 8]
cmp byte [edx + eax - 1], 0x5c
je 0x4a00a8
push dword [ebp + 8]
push 0x4a0314
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c0]
mov edx, 3
call fcn.00403f24
mov eax, dword [ebp - 0x3c0]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049fca4
add dword [ebp - 0x30], eax
jmp 0x4a023f
lea eax, [ebp - 0x3c4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
call fcn.00403eb0
mov eax, dword [ebp - 0x3c4]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049fca4
add dword [ebp - 0x30], eax
jmp 0x4a023f
mov byte [ebp - 0x23], 2
mov eax, dword [ebp - 0x14]
call fcn.00403e64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4a0104
mov ebx, 1
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + ebx - 1]
mov byte [edx], cl
inc ebx
inc edx
dec eax
jne 0x4a00f6
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040633e
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406875
call fcn.00402854
lea eax, [ebp - 0x2bc]
call fcn.004065b0
call fcn.00402854
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.004068ac
call fcn.00402854
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 0x30]
add eax, 0xa
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0x4a0314
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c8]
mov edx, 3
call fcn.00403f24
mov edx, dword [ebp - 0x3c8]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004c8890
mov dword [ebp - 0x28], eax
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
push 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa5d0]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa5d0]
call fcn.0040279c
lea eax, [ebp - 0x2bc]
call fcn.004064a8
call fcn.00402854
mov eax, dword [ebp - 0x30]
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x4a000d
jmp 0x4a0271
mov eax, dword [ebp - 0x18]
call fcn.00402890
call fcn.00402854
mov ebx, dword [ebp - 0x30]
jmp 0x4a0296
cmp byte [ebp - 0x19], 0
je 0x4a0286
mov eax, 0x4a0308
call fcn.00402890
call fcn.00402854
mov eax, dword [ebp - 0x18]
call fcn.00402890
call fcn.00402854
mov ebx, dword [ebp - 0x30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a02e5
lea eax, [ebp - 0x3c8]
mov edx, 3
call fcn.00403c08
lea eax, [ebp - 0x2c]
call fcn.00403be4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403c08
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403c08
lea eax, [ebp + 8]
call fcn.00403be4
ret