Function at 0x4cac40
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
test ebp, ebp
je 0x4caeae
cmp byte [ebp], 0
je 0x4caeae
mov eax, dword [0x5432f4]
push ebp
call dword [eax + 0x30]
test ah, 4
je 0x4cac89
push 0
push ebp
call fcn.004c1860
add esp, 8
test eax, eax
jne 0x4caca3
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
mov ecx, dword [0x5432f4]
push ebp
call dword [ecx + 0x58]
test eax, eax
je 0x4caca3
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
call fcn.004d6b60
add esp, 4
call fcn.00464230
cmp eax, 0xd
jne 0x4cae76
mov edx, dword [0x5432f4]
push ebp
call dword [edx + 0x30]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4cae76
test bl, 0x10
jne 0x4cace3
push 0x14
jmp 0x4caeb0
test bh, 4
je 0x4cacfb
push 1
push ebp
call fcn.004c1860
add esp, 8
test eax, eax
jne 0x4caeb8
test bl, 1
je 0x4cad48
mov eax, dword [0x5432f4]
and ebx, 0xfffffffe
push ebx
push ebp
call dword [eax + 0x64]
test eax, eax
je 0x4caeb8
mov ecx, dword [0x5432f4]
push ebp
call dword [ecx + 0x58]
test eax, eax
je 0x4cad2f
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
call esi
push eax
call fcn.004d6b60
mov edx, dword [0x5432f4]
add esp, 4
or ebx, 1
push ebx
push ebp
call dword [edx + 0x64]
call fcn.004aba60
cmp eax, 2
je 0x4cae76
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0046e130
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x14]
push esi
push ebp
push ecx
call fcn.0046e150
add esp, 0x10
test esi, esi
jle 0x4cad9d
cmp byte [eax + esi - 1], 0x5c
je 0x4cad9d
push 1
lea edx, [esp + 0x14]
push 0x52df60
push edx
call fcn.0046e150
add esp, 0xc
push 3
lea eax, [esp + 0x14]
push 0x539404
push eax
call fcn.0046e150
add esp, 0xc
lea ecx, [esp + 0xe4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4cae68
mov ebx, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov esi, 0x52e19c
lea eax, [esp + 0x110]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cae01
test cl, cl
je 0x4cadfd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cae01
add eax, 2
add esi, 2
test cl, cl
jne 0x4caddd
xor eax, eax
jmp 0x4cae06
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4cae43
mov esi, 0x524de4
lea eax, [esp + 0x110]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4cae3a
test cl, cl
je 0x4cae36
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4cae3a
add eax, 2
add esi, 2
test cl, cl
jne 0x4cae16
xor eax, eax
jmp 0x4cae3f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cae57
lea eax, [esp + 0xe4]
push eax
push edi
call ebx
test eax, eax
je 0x4cae61
jmp 0x4cadd1
push 0x11
call fcn.00464240
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x10]
push ecx
call fcn.0046e340
add esp, 4
pop edi
call fcn.00464230
cmp eax, 0x29
jne 0x4cae8a
push 0x11
call fcn.00464240
add esp, 4
mov eax, dword [esp + 0x228]
test eax, eax
je 0x4caeb8
call fcn.00464230
cmp eax, 0x11
jne 0x4caeb8
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
push 2
call fcn.00464240
add esp, 4
mov eax, dword [esp + 0x22c]
test eax, eax
je 0x4caecf
push eax
push 0xffffffffffffffff
push ebp
call fcn.004abf80
add esp, 0xc
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret