Function at 0x4a49e2
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x29c
mov dword [ebp - 0x27c], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x280], eax
sub eax, edx
sar eax, 2
cmp dword [ebp - 0x27c], eax
jae 0x4a4e1b
mov eax, dword [ebp - 0x27c]
lea edi, [ebp - 0x274]
mov dword [ebp - 0x274], 0
mov dword [esp + 0xc], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
shl eax, 2
mov dword [esp + 4], 0x105
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x25d]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x27c]
mov eax, dword [edx + eax*4]
add eax, 4
mov dword [esp], eax
call ebx
sub esp, 0x10
cmp dword [ebp - 0x274], 0
je 0x4a4e10
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov edx, dword [ebp - 0x27c]
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x284], eax
sub esp, 0x1c
inc eax
jne 0x4a4cc5
lea eax, [ebp - 0x25d]
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x280]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x105
mov eax, dword [eax]
mov eax, dword [eax + edx]
add eax, 4
mov dword [esp], eax
call ebx
sub esp, 0x10
cmp dword [ebp - 0x274], 0
je 0x4a4e10
lea ecx, [ebp - 0x268]
xor ebx, ebx
call fcn.004c731c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x280]
mov ecx, 0x5276fc
add eax, dword [edx]
mov edx, eax
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x270]
call fcn.004a303a
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x270]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
push edx
push edx
cmp eax, 0xffffffff
je 0x4a4c12
lea ebx, [ebp - 0x12c]
mov dword [esp + 4], 0x5276ff
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4a4be9
mov dword [esp + 4], 0x527701
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4a4be9
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x26c]
mov dword [esp], eax
call fcn.004c65c6
push ecx
lea ecx, [ebp - 0x26c]
mov dword [esp], 0x5c
call fcn.004c686a
lea ecx, [ebp - 0x26c]
push eax
mov dword [esp], ebx
call fcn.004c6800
lea ecx, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
mov dword [esp], eax
call fcn.0050cc5c
lea ecx, [ebp - 0x26c]
push eax
call fcn.004c641a
lea eax, [ebp - 0x158]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edx
push edx
test eax, eax
jne 0x4a4b64
mov dword [esp], edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
lea ecx, [ebp - 0x270]
call fcn.004c641a
test bl, bl
je 0x4a4cb5
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x158]
lea ebx, [ebp - 0x26c]
mov dword [esp], eax
call fcn.004c664a
mov ecx, ebx
push eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004c65c6
mov ecx, ebx
push eax
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.004c67c8
lea ecx, [ebp - 0x158]
push edx
call fcn.004c641a
mov dword [esp], ebx
mov ecx, esi
call fcn.004a33be
mov edx, ebx
lea eax, [ebp - 0x158]
push ecx
mov ecx, 0x527704
call fcn.004a303a
lea eax, [ebp - 0x268]
mov ecx, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.004a49e2
lea ecx, [ebp - 0x158]
push edi
push edi
call fcn.004c641a
mov ecx, ebx
call fcn.004c641a
lea ecx, [ebp - 0x268]
call fcn.004a49bc
jmp 0x4a4e10
xor eax, eax
lea edi, [ebp - 0x158]
mov ecx, 4
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x158]
call fcn.004c6580
lea ecx, [ebp - 0x154]
call fcn.004c6580
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov dword [esp], eax
sub ebx, eax
sar ebx, 4
call fcn.004c9c73
shr eax, 4
cmp ebx, eax
jne 0x4a4d2f
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
mov edx, 1
lea ecx, [esi + 0x10]
sar eax, 4
mov dword [esp + 4], 0x10
add eax, eax
cmove eax, edx
shl eax, 4
mov dword [esp], eax
call fcn.004c735c
push eax
push eax
lea eax, [ebp - 0x158]
mov ebx, dword [esi + 0x14]
mov dword [esp], eax
mov ecx, ebx
call fcn.004c65c6
lea ecx, [ebx + 4]
push edi
lea edi, [ebp - 0x154]
mov dword [esp], edi
call fcn.004c65c6
mov ecx, edi
push eax
mov eax, dword [ebp - 0x150]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebx + 0xc], eax
add dword [esi + 0x14], 0x10
call fcn.004c641a
lea ecx, [ebp - 0x158]
call fcn.004c641a
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x158]
mov edi, dword [esi + 0x14]
call fcn.004a303a
lea eax, [ebp - 0x158]
mov dword [esp], eax
lea ecx, [edi - 0x10]
call fcn.004c69a8
lea ecx, [ebp - 0x158]
push eax
call fcn.004c641a
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x280]
lea ecx, [edi - 0xc]
add eax, dword [edx]
cmp ecx, eax
je 0x4a4dcc
mov dword [esp], eax
call fcn.004c690a
push ebx
mov eax, dword [ebp - 0x284]
mov dword [edi - 8], 0
mov dword [edi - 4], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x158], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ecx
push ecx
cmp eax, 0xffffffff
je 0x4a4e10
xor ecx, ecx
add ecx, eax
mov dword [edi - 8], ecx
add dword [esi + 0x1c], ecx
inc dword [ebp - 0x27c]
jmp 0x4a49fa
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x10], eax
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8