Function at 0x4a473a
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 0x4a4b73
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 0x4a4b68
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 0x4a4a1d
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 0x4a4b68
lea ecx, [ebp - 0x268]
xor ebx, ebx
call fcn.004c706c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x280]
mov ecx, 0x5276f4
add eax, dword [edx]
mov edx, eax
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x270]
call fcn.004a2d92
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 0x4a496a
lea ebx, [ebp - 0x12c]
mov dword [esp + 4], 0x5276f7
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4a4941
mov dword [esp + 4], 0x5276f9
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4a4941
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x26c]
mov dword [esp], eax
call fcn.004c6316
push ecx
lea ecx, [ebp - 0x26c]
mov dword [esp], 0x5c
call fcn.004c65ba
lea ecx, [ebp - 0x26c]
push eax
mov dword [esp], ebx
call fcn.004c6550
lea ecx, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
mov dword [esp], eax
call fcn.0050c98c
lea ecx, [ebp - 0x26c]
push eax
call fcn.004c616a
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 0x4a48bc
mov dword [esp], edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
lea ecx, [ebp - 0x270]
call fcn.004c616a
test bl, bl
je 0x4a4a0d
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x158]
lea ebx, [ebp - 0x26c]
mov dword [esp], eax
call fcn.004c639a
mov ecx, ebx
push eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004c6316
mov ecx, ebx
push eax
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.004c6518
lea ecx, [ebp - 0x158]
push edx
call fcn.004c616a
mov dword [esp], ebx
mov ecx, esi
call fcn.004a3116
mov edx, ebx
lea eax, [ebp - 0x158]
push ecx
mov ecx, 0x5276fc
call fcn.004a2d92
lea eax, [ebp - 0x268]
mov ecx, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.004a473a
lea ecx, [ebp - 0x158]
push edi
push edi
call fcn.004c616a
mov ecx, ebx
call fcn.004c616a
lea ecx, [ebp - 0x268]
call fcn.004a4714
jmp 0x4a4b68
xor eax, eax
lea edi, [ebp - 0x158]
mov ecx, 4
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x158]
call fcn.004c62d0
lea ecx, [ebp - 0x154]
call fcn.004c62d0
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov dword [esp], eax
sub ebx, eax
sar ebx, 4
call fcn.004c99c3
shr eax, 4
cmp ebx, eax
jne 0x4a4a87
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.004c70ac
push eax
push eax
lea eax, [ebp - 0x158]
mov ebx, dword [esi + 0x14]
mov dword [esp], eax
mov ecx, ebx
call fcn.004c6316
lea ecx, [ebx + 4]
push edi
lea edi, [ebp - 0x154]
mov dword [esp], edi
call fcn.004c6316
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.004c616a
lea ecx, [ebp - 0x158]
call fcn.004c616a
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x158]
mov edi, dword [esi + 0x14]
call fcn.004a2d92
lea eax, [ebp - 0x158]
mov dword [esp], eax
lea ecx, [edi - 0x10]
call fcn.004c66f8
lea ecx, [ebp - 0x158]
push eax
call fcn.004c616a
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x280]
lea ecx, [edi - 0xc]
add eax, dword [edx]
cmp ecx, eax
je 0x4a4b24
mov dword [esp], eax
call fcn.004c665a
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 0x4a4b68
xor ecx, ecx
add ecx, eax
mov dword [edi - 8], ecx
add dword [esi + 0x1c], ecx
inc dword [ebp - 0x27c]
jmp 0x4a4752
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