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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dbad
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2cc], edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c8], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebx], ax
jne 0x4d10b3
xor ecx, ecx
jmp 0x4d10cf
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x4d10c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d10c0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.00406c80
mov dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4d10fe
push 1
push 0x588408
lea ecx, [ebp - 0x40]
call fcn.00406760
push 3
push 0x588410
lea ecx, [ebp - 0x40]
call fcn.00406760
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x4d113b
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x2c0], ecx
cmp ecx, 0xffffffff
je 0x4d136b
mov ecx, dword [ebp - 0x2a8]
test cl, 0x10
je 0x4d127b
test cl, 2
jne 0x4d134d
lea eax, [ebp - 0x27c]
push 0x58823c
push eax
call fcn.00423b60
add esp, 8
test eax, eax
je 0x4d134d
lea eax, [ebp - 0x27c]
push 0x588418
push eax
call fcn.00423b60
add esp, 8
test eax, eax
je 0x4d134d
push ebx
lea ecx, [ebp - 0x28]
call fcn.004029a0
mov byte [ebp - 4], 2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4d11db
push 1
push 0x588408
lea ecx, [ebp - 0x28]
call fcn.00406760
cmp word [ebp - 0x27c], 0
jne 0x4d11e9
xor ecx, ecx
jmp 0x4d1201
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d11f2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406760
push 1
push 0x588408
lea ecx, [ebp - 0x28]
call fcn.00406760
lea eax, [ebp - 0x27c]
mov ecx, edi
push eax
push dword [ebp - 0x2c8]
call fcn.004cea50
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x4d1240
lea ecx, [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.004d1040
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4d1262
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x4d134d
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [ebp - 0x27c], ax
je 0x4d12bf
lea eax, [ebp - 0x27c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d12b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00406c80
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00408a40
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4d1339
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
ja 0x4d169a
add eax, eax
cmp eax, 0x1000
jb 0x4d1330
test cl, 0x1f
jne 0x4d169a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4d169a
sub ecx, eax
cmp ecx, 4
jb 0x4d169a
cmp ecx, 0x23
ja 0x4d169a
mov ecx, eax
push ecx
call fcn.0052bd72
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2c0]
call esi
test eax, eax
je 0x4d136b
mov ecx, dword [ebp - 0x2c0]
jmp 0x4d1157
mov esi, dword [ebp - 0x2b0]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x2b4]
mov ecx, esi
sub ecx, edi
mov dword [ebp - 0x2d0], 0
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2d8], eax
je 0x4d1645
mov esi, dword [ebp - 0x2cc]
add esi, 0xe8
mov dword [ebp - 0x2bc], edi
jmp 0x4d13c0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebx], ax
jne 0x4d13eb
xor ecx, ecx
jmp 0x4d13ff
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d13f0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00406c80
mov byte [ebp - 4], 4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4d142b
push 1
push 0x588408
lea ecx, [ebp - 0x28]
call fcn.00406760
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00406650
push 0x18
call fcn.0052bd3f
mov edi, eax
add esp, 4
mov dword [ebp - 0x2dc], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x4d1475
xor eax, eax
mov dword [edi + 0x14], 7
push 0xffffffffffffffff
mov dword [edi + 0x10], 0
mov ecx, edi
push eax
mov word [edi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00406ac0
jmp 0x4d1477
xor edi, edi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2b8]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2b8], edi
cmp eax, ecx
jae 0x4d151a
mov eax, dword [esi]
lea edx, [ebp - 0x2b8]
cmp eax, edx
ja 0x4d151a
mov ebx, edx
mov edx, dword [esi + 8]
sub ebx, eax
sar ebx, 2
cmp ecx, edx
jne 0x4d1504
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x4d1504
sub ecx, dword [esi]
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x4d169f
sub edx, dword [esi]
lea eax, [ecx + 1]
sar edx, 2
mov dword [ebp - 0x2c4], eax
mov ecx, edx
shr ecx, 1
mov eax, 0x3fffffff
sub eax, ecx
add ecx, edx
cmp eax, edx
sbb eax, eax
not eax
and eax, ecx
mov ecx, dword [ebp - 0x2c4]
cmp eax, ecx
jae 0x4d14fc
mov eax, ecx
push eax
mov ecx, esi
call fcn.004e3680
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x4d1512
mov eax, dword [eax + ebx*4]
mov dword [ecx], eax
mov ebx, dword [ebp - 0x2d4]
jmp 0x4d1582
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x4d1579
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x4d1579
sub ecx, dword [esi]
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x4d169f
sub edx, dword [esi]
lea eax, [ecx + 1]
sar edx, 2
mov dword [ebp - 0x2c4], eax
mov ecx, edx
shr ecx, 1
mov eax, 0x3fffffff
sub eax, ecx
add ecx, edx
cmp eax, edx
sbb eax, eax
not eax
and eax, ecx
mov ecx, dword [ebp - 0x2c4]
cmp eax, ecx
jae 0x4d1571
mov eax, ecx
push eax
mov ecx, esi
call fcn.004e3680
mov eax, dword [esi + 4]
test eax, eax
je 0x4d1582
mov dword [eax], edi
mov eax, dword [ebp - 0x2bc]
add dword [esi + 4], 4
cmp dword [eax + 0x14], 8
jb 0x4d1594
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2cc]
push edi
push 5
push dword [ebp - 0x2c8]
lea ecx, [ecx + 0x64]
push eax
call fcn.004f76b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4d1603
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
ja 0x4d169a
add eax, eax
cmp eax, 0x1000
jb 0x4d15fa
test cl, 0x1f
jne 0x4d169a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4d169a
sub ecx, eax
cmp ecx, 4
jb 0x4d169a
cmp ecx, 0x23
ja 0x4d169a
mov ecx, eax
push ecx
call fcn.0052bd72
add esp, 4
mov edi, dword [ebp - 0x2bc]
xor eax, eax
mov word [ebp - 0x28], ax
add edi, 0x18
mov eax, dword [ebp - 0x2d0]
inc eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2bc], edi
cmp eax, dword [ebp - 0x2d8]
jb 0x4d13c0
mov esi, dword [ebp - 0x2b0]
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov ebx, dword [ebp - 0x2b4]
test ebx, ebx
je 0x4d170b
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x2b4]
push ecx
push esi
push ebx
call fcn.00401f90
mov ecx, dword [ebp - 0x2ac]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x4d16a9
call fcn.00547c01
push str.vector_T__too_long
call fcn.00515a17
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x4d16e4
test bl, 0x1f
je 0x4d16c0
call fcn.00547c01
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4d16cc
call fcn.00547c01
sub ebx, eax
cmp ebx, 4
jae 0x4d16d8
call fcn.00547c01
cmp ebx, 0x23
jbe 0x4d16e2
call fcn.00547c01
mov ebx, eax
push ebx
call fcn.0052bd72
add esp, 4
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4d176b
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4d172a
call fcn.00547c01
add eax, eax
cmp eax, 0x1000
jb 0x4d1762
test byte [ebp - 0x40], 0x1f
je 0x4d173e
call fcn.00547c01
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4d174a
call fcn.00547c01
sub ecx, eax
cmp ecx, 4
jae 0x4d1756
call fcn.00547c01
cmp ecx, 0x23
jbe 0x4d1760
call fcn.00547c01
mov ecx, eax
push ecx
call fcn.0052bd72
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 8