Function at 0x4c9d4c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4c9d55
add esp, 0xfffffbf0
mov eax, dword [ebp - 4]
mov eax, 0x5caeb4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.004d08c0
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x39], 0
mov byte [ebp - 0x3a], 0
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
mov word [ebp - 0x14], 8
test edi, edi
je 0x4c9db8
push 0x1770
push 0
push edi
call fcn.004cde6c
add esp, 0xc
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4c9dde
test byte [0x516435], 4
je 0x4c9dde
mov ecx, dword [ebp + 0x14]
push ecx
push 0x5e8ed9
push 0x516438
call fcn.00451598
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c9e04
test byte [0x516435], 4
je 0x4c9e04
mov edx, dword [ebp + 0x10]
push edx
push 0x5e8eef
push 0x516438
call fcn.00451598
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4c9e31
xor esi, esi
mov eax, dword [ebp + 0x14]
mov dl, byte [eax]
test dl, dl
je 0x4c9e31
movsx ecx, dl
cmp ecx, 0x2a
jne 0x4c9e2d
mov dl, byte [eax + 1]
test dl, dl
jne 0x4c9e2d
mov byte [eax], 0
mov dword [ebp - 0x44], esi
jmp 0x4c9e31
inc esi
inc eax
jmp 0x4c9e10
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c9e5e
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dl, byte [eax]
test dl, dl
je 0x4c9e5e
movsx ecx, dl
cmp ecx, 0x2a
jne 0x4c9e5a
mov dl, byte [eax + 1]
test dl, dl
jne 0x4c9e5a
mov byte [eax], 0
mov dword [ebp - 0x40], esi
jmp 0x4c9e5e
inc esi
inc eax
jmp 0x4c9e3d
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4c9e83
push 0x5e8f07
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004ce170
add esp, 8
test eax, eax
jne 0x4c9e83
mov byte [ebp - 0x39], 1
xor eax, eax
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4c9ea8
push 0x5e8f0e
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004ce170
add esp, 8
test eax, eax
jne 0x4c9ea8
mov byte [ebp - 0x3a], 1
xor eax, eax
mov dword [ebp + 0x14], eax
lea edx, [ebp - 0xc4]
push edx
call fcn.0040834c
pop ecx
push 1
call fcn.004c9cf4
pop ecx
push 0x5fa896
push 0x5e8f15
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.004d26c8
add esp, 0xc
lea eax, [ebp - 0x4414]
push eax
lea edx, [ebp - 0x20c4]
push edx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xffffffff
je 0x4ca3e2
movsx eax, byte [ebp - 0x43e8]
cmp eax, 0x2e
je 0x4ca3b9
lea edx, [ebp - 0x43e8]
push edx
push 0x5fa896
push 0x5e8f1a
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.004d26c8
add esp, 0x10
lea eax, [ebp - 0x20c4]
push eax
push 0x5e8f1f
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d26c8
add esp, 0xc
mov cl, byte [ebp - 0x39]
test cl, cl
je 0x4c9f69
lea eax, [ebp - 0x20c4]
push eax
call fcn.004d21a8
pop ecx
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d21a8
pop ecx
jmp 0x4ca3b9
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4c9f7a
lea eax, [ebp - 0x2c]
push eax
call fcn.00403e78
pop ecx
push 0x17
lea edx, [ebp - 0x20c4]
push edx
call fcn.00403da4
add esp, 8
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403e40
pop ecx
test eax, eax
jne 0x4c9fb0
push 0x13
lea eax, [ebp - 0x20c4]
push eax
call fcn.00403da4
add esp, 8
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00403e40
pop ecx
test eax, eax
je 0x4ca3b9
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404038
pop ecx
lea eax, [ebp - 0x41cc]
push 0x108
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040419c
add esp, 0xc
mov ecx, dword [ebp - 0x41cc]
cmp ecx, 0x108
jne 0x4ca3b9
movsx eax, byte [ebp - 0x41c8]
cmp eax, 0x76
je 0x4ca009
mov byte [ebp - 0x41c8], 0x20
mov byte [ebp - 0x41c7], 0x20
inc dword [ebp - 0x34]
mov edx, dword [ebp + 8]
dec edx
je 0x4ca01e
dec edx
je 0x4ca040
jmp 0x4ca030
movsx ecx, byte [ebp - 0x41c8]
cmp ecx, 0x76
jne 0x4ca3b9
jmp 0x4ca040
movsx eax, byte [ebp - 0x41c8]
cmp eax, 0x76
je 0x4ca3b9
inc dword [ebp - 0x30]
mov ebx, 1
mov eax, 1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4ca087
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4ca074
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x41c6]
push eax
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004ce208
add esp, 0xc
jmp 0x4ca087
lea eax, [ebp - 0x41c6]
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.004ce170
add esp, 8
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4ca09f
movsx edx, byte [ebp - 0x41c8]
cmp edx, 0x76
jne 0x4ca09f
mov eax, 1
test eax, eax
jne 0x4ca152
mov byte [ebp - 0x41c8], 0x76
mov byte [ebp - 0x41c7], 0x20
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404038
pop ecx
lea eax, [ebp - 0x41cc]
push 0x108
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004042b4
add esp, 0xc
test byte [0x516435], 4
je 0x4ca12f
mov cl, byte [ebp - 0x4100]
test cl, cl
jne 0x4ca10d
test byte [0x516435], 4
je 0x4ca12f
call fcn.004c64ac
push eax
push 0x5e8f26
push 0x516438
call fcn.00451598
add esp, 0xc
jmp 0x4ca12f
test byte [0x516435], 4
je 0x4ca12f
lea eax, [ebp - 0x4100]
push eax
push 0x5e8f38
push 0x516438
call fcn.00451598
add esp, 0xc
lea edx, [ebp - 0x40c4]
push edx
lea ecx, [ebp - 0x41c6]
push ecx
call fcn.004c64ac
push eax
lea eax, [ebp - 0x4100]
push eax
call fcn.004c8360
add esp, 0x10
mov eax, 1
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4ca191
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4ca17e
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x41c6]
push eax
push edx
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004ce208
add esp, 0xc
jmp 0x4ca191
lea eax, [ebp - 0x41c6]
push eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.004ce170
add esp, 8
test eax, eax
jne 0x4ca1e6
test byte [0x516435], 4
je 0x4ca1b7
lea ecx, [ebp - 0x20c4]
push ecx
push 0x5e8f4b
push 0x516438
call fcn.00451598
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call fcn.00403e78
pop ecx
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x20c4]
push edx
call fcn.004d21a8
pop ecx
lea ecx, [ebp - 0x40c4]
push ecx
call fcn.004d21a8
pop ecx
dec dword [ebp - 0x30]
dec dword [ebp - 0x34]
xor ebx, ebx
mov al, byte [ebp - 0x3a]
test al, al
je 0x4ca2a4
test byte [0x516435], 4
je 0x4ca211
push 0x5e8f6e
push 0x5e8f59
push 0x516438
call fcn.00451598
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404530
add esp, 8
test eax, eax
je 0x4ca2a4
lea eax, [ebp - 0xc4]
push eax
lea edx, [ebp - 0x84]
push edx
call fcn.004ce170
add esp, 8
test eax, eax
je 0x4ca2a4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403e78
pop ecx
lea eax, [ebp - 0x20c4]
push eax
call fcn.004d21a8
pop ecx
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d21a8
pop ecx
dec dword [ebp - 0x30]
dec dword [ebp - 0x34]
push pe_nt_image_headers32
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.00405b9c
add esp, 8
test eax, eax
je 0x4ca2a2
push pe_nt_image_headers32
lea eax, [ebp - 0x40c4]
push eax
call fcn.00405b9c
add esp, 8
test eax, eax
je 0x4ca2a2
inc dword [ebp - 0x30]
inc dword [ebp - 0x34]
xor ebx, ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0x16
jge 0x4ca3b9
test ebx, ebx
je 0x4ca3b9
test edi, edi
je 0x4ca3b9
inc dword [ebp - 0x38]
xor esi, esi
mov ebx, esi
shl ebx, 5
add ebx, esi
shl ebx, 3
add ebx, edi
mov eax, dword [ebx]
cmp eax, 0x108
jne 0x4ca398
lea edx, [ebp - 0x41c8]
push edx
lea ecx, [ebx + 4]
push ecx
call fcn.004ce170
add esp, 8
test eax, eax
jle 0x4ca3af
push 0x108
push ebx
lea eax, [ebp - 0x42d4]
push eax
call fcn.004cddfc
add esp, 0xc
lea edx, [ebp - 0x41cc]
push 0x108
push edx
push ebx
call fcn.004cddfc
add esp, 0xc
inc esi
mov ebx, esi
shl ebx, 5
add ebx, esi
shl ebx, 3
add ebx, edi
mov eax, dword [ebx]
cmp eax, 0x108
je 0x4ca350
push 0x108
lea edx, [ebp - 0x42d4]
push edx
push ebx
call fcn.004cddfc
add esp, 0xc
jmp 0x4ca3b9
push 0x108
push ebx
lea ecx, [ebp - 0x41cc]
push ecx
call fcn.004cddfc
add esp, 0xc
lea eax, [ebp - 0x42d4]
push 0x108
push eax
push ebx
call fcn.004cddfc
add esp, 0xc
push 0x108
lea edx, [ebp - 0x41cc]
push edx
lea ecx, [ebp - 0x42d4]
push ecx
call fcn.004cddfc
add esp, 0xc
inc esi
jmp 0x4ca324
push 0x108
lea eax, [ebp - 0x41cc]
push eax
push ebx
call fcn.004cddfc
add esp, 0xc
jmp 0x4ca3b9
inc esi
cmp esi, 0x16
jle 0x4ca2c5
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4ca3ca
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403e78
pop ecx
lea eax, [ebp - 0x4414]
push eax
mov edx, dword [ebp - 0x28]
push edx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4c9ef8
mov ecx, dword [ebp - 0x28]
push ecx
call sub.KERNEL32.dll_FindClose
mov word [ebp - 0x14], 0
jmp 0x4ca412
mov edx, dword [0x516894]
mov ecx, dword [ebp - 0x34]
cmp edx, ecx
je 0x4ca459
test byte [0x516435], 4
je 0x4ca43f
push 0x5e8f8f
push 0x5e8f7b
push 0x516438
call fcn.00451598
add esp, 0xc
mov eax, dword [ebp - 0x34]
push 0
mov dword [0x516894], eax
call fcn.004c9cf4
pop ecx
push 1
call fcn.004a1144
pop ecx
jmp 0x4ca48a
test byte [0x516435], 4
je 0x4ca479
push 0x5e8fa1
push 0x5e8f90
push 0x516438
call fcn.00451598
add esp, 0xc
mov edx, dword [ebp - 0x34]
push 0
mov dword [0x516894], edx
call fcn.004c9cf4
pop ecx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x4420]
mov esi, dword [ebp - 0x441c]
mov ebx, dword [ebp - 0x4418]
pop ebp
ret