Function at 0x4ba510
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8833c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov dword [ebp - 0x1d8], ecx
cmp dword [ebp + 8], 0
jne 0x4ba541
mov dword [ebp + 8], 0x9183eb
cmp dword [ebp + 0xc], 0
jne 0x4ba54e
mov dword [ebp + 0xc], 0x9183ee
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x1dc]
add ecx, 1
mov dword [ebp - 0x1e0], ecx
mov edx, dword [ebp - 0x1dc]
mov al, byte [edx]
mov byte [ebp - 0x1e1], al
add dword [ebp - 0x1dc], 1
cmp byte [ebp - 0x1e1], 0
jne 0x4ba566
mov ecx, dword [ebp - 0x1dc]
sub ecx, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e8], ecx
mov edx, dword [ebp - 0x1e8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1d8]
add ecx, 4
call fcn.0041cda0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1ec], ecx
mov edx, dword [ebp - 0x1ec]
add edx, 1
mov dword [ebp - 0x1f0], edx
mov eax, dword [ebp - 0x1ec]
mov cl, byte [eax]
mov byte [ebp - 0x1f1], cl
add dword [ebp - 0x1ec], 1
cmp byte [ebp - 0x1f1], 0
jne 0x4ba5c7
mov edx, dword [ebp - 0x1ec]
sub edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f8], edx
mov eax, dword [ebp - 0x1f8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x1d8]
add ecx, 0x20
call fcn.0041cda0
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x3c], eax
mov ecx, dword [ebp - 0x1d8]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x1d8]
call fcn.004ba9a0
mov edx, dword [ebp - 0x1d8]
add edx, 0x20
push edx
mov ecx, dword [ebp - 0x1d8]
call fcn.004ba9a0
cmp dword [ebp + 0x10], 2
jne 0x4ba982
mov eax, dword [ebp - 0x1d8]
add eax, 4
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
cmp dword [ecx + 0x18], 0x10
jb 0x4ba67c
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1fc], eax
jmp 0x4ba68b
mov ecx, dword [ebp - 0x198]
add ecx, 4
mov dword [ebp - 0x1fc], ecx
mov edx, dword [ebp - 0x1fc]
push edx
lea ecx, [ebp - 0x28]
call fcn.0046fb80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x18c], ecx
cmp dword [ebp - 0x18c], 0
jle 0x4ba771
mov edx, dword [ebp - 0x18c]
sub edx, 1
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1ac]
cmp eax, dword [ebp - 0x14]
jbe 0x4ba6e2
call fcn.0083d831
xor ecx, ecx
jne 0x4ba6e2
cmp dword [ebp - 0x10], 0x10
jb 0x4ba6f7
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x200], edx
jmp 0x4ba700
lea eax, [ebp - 0x24]
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
add ecx, dword [ebp - 0x1ac]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x4ba771
mov dword [ebp - 0x204], 0x9183f0
mov eax, dword [ebp - 0x204]
add eax, 1
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x204]
mov dl, byte [ecx]
mov byte [ebp - 0x209], dl
add dword [ebp - 0x204], 1
cmp byte [ebp - 0x209], 0
jne 0x4ba72d
mov eax, dword [ebp - 0x204]
sub eax, dword [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
push 0x9183f0
lea ecx, [ebp - 0x28]
call fcn.00449bf0
mov edx, dword [0x892260]
push edx
push 0
mov eax, dword [ebp - 0x1d8]
add eax, 0x20
push eax
lea ecx, [ebp - 0x28]
call fcn.00449d90
push 0
push 0
lea ecx, [ebp - 0x188]
call fcn.0041ccf0
mov ecx, dword [0x892260]
push ecx
push 0
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x188]
call fcn.0041cbc0
mov byte [ebp - 4], 1
mov dword [ebp - 0x214], 0x9183f4
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x214]
mov dl, byte [ecx]
mov byte [ebp - 0x219], dl
add dword [ebp - 0x214], 1
cmp byte [ebp - 0x219], 0
jne 0x4ba7d0
mov eax, dword [ebp - 0x214]
sub eax, dword [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
push ecx
push 0x9183f4
lea ecx, [ebp - 0x188]
call fcn.00449bf0
cmp dword [ebp - 0x170], 0x10
jb 0x4ba82e
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x224], edx
jmp 0x4ba83a
lea eax, [ebp - 0x184]
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x16c]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x190], eax
xor eax, eax
cmp dword [ebp - 0x190], 0xffffffff
setne al
mov byte [ebp - 0x191], al
movzx ecx, byte [ebp - 0x191]
test ecx, ecx
je 0x4ba946
movsx edx, byte [ebp - 0x140]
cmp edx, 0x2e
je 0x4ba921
mov eax, dword [ebp - 0x16c]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x192], al
movzx ecx, byte [ebp - 0x192]
test ecx, ecx
je 0x4ba8e4
cmp dword [ebp - 0x10], 0x10
jb 0x4ba8b6
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x228], edx
jmp 0x4ba8bf
lea eax, [ebp - 0x24]
mov dword [ebp - 0x228], eax
push 2
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x1d8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1d8]
mov eax, dword [edx + 8]
call eax
jmp 0x4ba921
cmp dword [ebp - 0x10], 0x10
jb 0x4ba8f5
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x22c], ecx
jmp 0x4ba8fe
lea edx, [ebp - 0x24]
mov dword [ebp - 0x22c], edx
push 1
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [eax + 8]
call edx
lea eax, [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x191], al
jmp 0x4ba866
cmp dword [ebp - 0x190], 0xffffffff
je 0x4ba95c
mov edx, dword [ebp - 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x188]
call fcn.0041ccf0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041ccf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc