Function at 0x49fd90
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 0x4a03ca
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 0x49fdf0
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.0040947c
test al, al
je 0x49fe35
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406841
call fcn.00402854
jmp 0x49fe4a
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406858
call fcn.00402854
lea eax, [ebp - 0x2bc]
call fcn.0040657c
call fcn.00402854
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.00406878
call fcn.00402854
cmp dword [ebp - 0xc], 0
je 0x49ff8c
mov byte [ebp - 0x23], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00409594
mov eax, dword [ebp - 0x14]
call fcn.00403e64
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x49feb0
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 0x49fea2
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.004c8560
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 + 0xa5b8]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa5b8]
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.00409688
mov eax, dword [ebp - 0x18]
call fcn.00403e64
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404198
xor eax, eax
push ebp
push 0x49ffcf
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 0x4a0003
lea eax, [ebp - 0x170]
push eax
push 0x4a03dc
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 0x4a003d
mov eax, dword [ebp + 8]
cmp byte [eax + ebx - 1], 0x5c
je 0x4a003d
dec ebx
test ebx, ebx
jne 0x4a002e
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 0x4a0081
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 0x4a0073
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 0x4a034b
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x144]
mov ecx, 0x104
call fcn.00403e14
mov eax, dword [ebp - 0x14]
mov edx, 0x4a03e8
call fcn.00403f74
je 0x4a012a
mov eax, dword [ebp - 0x14]
mov edx, 0x4a03f4
call fcn.00403f74
jne 0x4a013e
cmp byte [ebp - 0x19], 0
jne 0x4a0134
xor eax, eax
jmp 0x4a0136
mov al, 1
mov byte [ebp - 0x19], al
jmp 0x4a032b
mov byte [ebp - 0x19], 0
cmp dword [ebp - 0x170], 0x10
jne 0x4a01c1
mov eax, dword [ebp + 8]
call fcn.00403e64
mov edx, dword [ebp + 8]
cmp byte [edx + eax - 1], 0x5c
je 0x4a0194
push dword [ebp + 8]
push 0x4a0400
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.0049fd90
add dword [ebp - 0x30], eax
jmp 0x4a032b
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.0049fd90
add dword [ebp - 0x30], eax
jmp 0x4a032b
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 0x4a01f0
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 0x4a01e2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040633e
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406841
call fcn.00402854
lea eax, [ebp - 0x2bc]
call fcn.0040657c
call fcn.00402854
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.00406878
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 0x4a0400
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.004c8560
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 + 0xa5b8]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa5b8]
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 0x4a00f9
jmp 0x4a035d
mov eax, dword [ebp - 0x18]
call fcn.00402890
call fcn.00402854
mov ebx, dword [ebp - 0x30]
jmp 0x4a0382
cmp byte [ebp - 0x19], 0
je 0x4a0372
mov eax, 0x4a03f4
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 0x4a03d1
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