Function at 0x4c9144
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4c914d
add esp, 0xfffffbf0
mov eax, dword [ebp - 4]
mov eax, 0x5c992c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.004cfcb8
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 0x4c91b0
push 0x1770
push 0
push edi
call fcn.004cd264
add esp, 0xc
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4c91d6
test byte [0x514ff1], 4
je 0x4c91d6
mov ecx, dword [ebp + 0x14]
push ecx
push 0x5e790d
push 0x514ff4
call fcn.00451068
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c91fc
test byte [0x514ff1], 4
je 0x4c91fc
mov edx, dword [ebp + 0x10]
push edx
push 0x5e7923
push 0x514ff4
call fcn.00451068
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4c9229
xor esi, esi
mov eax, dword [ebp + 0x14]
mov dl, byte [eax]
test dl, dl
je 0x4c9229
movsx ecx, dl
cmp ecx, 0x2a
jne 0x4c9225
mov dl, byte [eax + 1]
test dl, dl
jne 0x4c9225
mov byte [eax], 0
mov dword [ebp - 0x44], esi
jmp 0x4c9229
inc esi
inc eax
jmp 0x4c9208
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c9256
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dl, byte [eax]
test dl, dl
je 0x4c9256
movsx ecx, dl
cmp ecx, 0x2a
jne 0x4c9252
mov dl, byte [eax + 1]
test dl, dl
jne 0x4c9252
mov byte [eax], 0
mov dword [ebp - 0x40], esi
jmp 0x4c9256
inc esi
inc eax
jmp 0x4c9235
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4c927b
push 0x5e793b
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004cd568
add esp, 8
test eax, eax
jne 0x4c927b
mov byte [ebp - 0x39], 1
xor eax, eax
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4c92a0
push 0x5e7942
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004cd568
add esp, 8
test eax, eax
jne 0x4c92a0
mov byte [ebp - 0x3a], 1
xor eax, eax
mov dword [ebp + 0x14], eax
lea edx, [ebp - 0xc4]
push edx
call fcn.00408334
pop ecx
push 1
call fcn.004c90ec
pop ecx
push 0x5f927a
push 0x5e7949
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.004d1ac0
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 0x4c97da
movsx eax, byte [ebp - 0x43e8]
cmp eax, 0x2e
je 0x4c97b1
lea edx, [ebp - 0x43e8]
push edx
push 0x5f927a
push 0x5e794e
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.004d1ac0
add esp, 0x10
lea eax, [ebp - 0x20c4]
push eax
push 0x5e7953
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d1ac0
add esp, 0xc
mov cl, byte [ebp - 0x39]
test cl, cl
je 0x4c9361
lea eax, [ebp - 0x20c4]
push eax
call fcn.004d15a0
pop ecx
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d15a0
pop ecx
jmp 0x4c97b1
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4c9372
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 0x4c93a8
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 0x4c97b1
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 0x4c97b1
movsx eax, byte [ebp - 0x41c8]
cmp eax, 0x76
je 0x4c9401
mov byte [ebp - 0x41c8], 0x20
mov byte [ebp - 0x41c7], 0x20
inc dword [ebp - 0x34]
mov edx, dword [ebp + 8]
dec edx
je 0x4c9416
dec edx
je 0x4c9438
jmp 0x4c9428
movsx ecx, byte [ebp - 0x41c8]
cmp ecx, 0x76
jne 0x4c97b1
jmp 0x4c9438
movsx eax, byte [ebp - 0x41c8]
cmp eax, 0x76
je 0x4c97b1
inc dword [ebp - 0x30]
mov ebx, 1
mov eax, 1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4c947f
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4c946c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x41c6]
push eax
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004cd600
add esp, 0xc
jmp 0x4c947f
lea eax, [ebp - 0x41c6]
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.004cd568
add esp, 8
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4c9497
movsx edx, byte [ebp - 0x41c8]
cmp edx, 0x76
jne 0x4c9497
mov eax, 1
test eax, eax
jne 0x4c954a
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 [0x514ff1], 4
je 0x4c9527
mov cl, byte [ebp - 0x4100]
test cl, cl
jne 0x4c9505
test byte [0x514ff1], 4
je 0x4c9527
call fcn.004c58a4
push eax
push 0x5e795a
push 0x514ff4
call fcn.00451068
add esp, 0xc
jmp 0x4c9527
test byte [0x514ff1], 4
je 0x4c9527
lea eax, [ebp - 0x4100]
push eax
push 0x5e796c
push 0x514ff4
call fcn.00451068
add esp, 0xc
lea edx, [ebp - 0x40c4]
push edx
lea ecx, [ebp - 0x41c6]
push ecx
call fcn.004c58a4
push eax
lea eax, [ebp - 0x4100]
push eax
call fcn.004c7758
add esp, 0x10
mov eax, 1
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4c9589
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4c9576
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x41c6]
push eax
push edx
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004cd600
add esp, 0xc
jmp 0x4c9589
lea eax, [ebp - 0x41c6]
push eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.004cd568
add esp, 8
test eax, eax
jne 0x4c95de
test byte [0x514ff1], 4
je 0x4c95af
lea ecx, [ebp - 0x20c4]
push ecx
push 0x5e797f
push 0x514ff4
call fcn.00451068
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.004d15a0
pop ecx
lea ecx, [ebp - 0x40c4]
push ecx
call fcn.004d15a0
pop ecx
dec dword [ebp - 0x30]
dec dword [ebp - 0x34]
xor ebx, ebx
mov al, byte [ebp - 0x3a]
test al, al
je 0x4c969c
test byte [0x514ff1], 4
je 0x4c9609
push 0x5e79a2
push 0x5e798d
push 0x514ff4
call fcn.00451068
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 0x4c969c
lea eax, [ebp - 0xc4]
push eax
lea edx, [ebp - 0x84]
push edx
call fcn.004cd568
add esp, 8
test eax, eax
je 0x4c969c
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403e78
pop ecx
lea eax, [ebp - 0x20c4]
push eax
call fcn.004d15a0
pop ecx
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d15a0
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 0x4c969a
push pe_nt_image_headers32
lea eax, [ebp - 0x40c4]
push eax
call fcn.00405b9c
add esp, 8
test eax, eax
je 0x4c969a
inc dword [ebp - 0x30]
inc dword [ebp - 0x34]
xor ebx, ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0x16
jge 0x4c97b1
test ebx, ebx
je 0x4c97b1
test edi, edi
je 0x4c97b1
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 0x4c9790
lea edx, [ebp - 0x41c8]
push edx
lea ecx, [ebx + 4]
push ecx
call fcn.004cd568
add esp, 8
test eax, eax
jle 0x4c97a7
push 0x108
push ebx
lea eax, [ebp - 0x42d4]
push eax
call fcn.004cd1f4
add esp, 0xc
lea edx, [ebp - 0x41cc]
push 0x108
push edx
push ebx
call fcn.004cd1f4
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 0x4c9748
push 0x108
lea edx, [ebp - 0x42d4]
push edx
push ebx
call fcn.004cd1f4
add esp, 0xc
jmp 0x4c97b1
push 0x108
push ebx
lea ecx, [ebp - 0x41cc]
push ecx
call fcn.004cd1f4
add esp, 0xc
lea eax, [ebp - 0x42d4]
push 0x108
push eax
push ebx
call fcn.004cd1f4
add esp, 0xc
push 0x108
lea edx, [ebp - 0x41cc]
push edx
lea ecx, [ebp - 0x42d4]
push ecx
call fcn.004cd1f4
add esp, 0xc
inc esi
jmp 0x4c971c
push 0x108
lea eax, [ebp - 0x41cc]
push eax
push ebx
call fcn.004cd1f4
add esp, 0xc
jmp 0x4c97b1
inc esi
cmp esi, 0x16
jle 0x4c96bd
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4c97c2
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 0x4c92f0
mov ecx, dword [ebp - 0x28]
push ecx
call sub.KERNEL32.dll_FindClose
mov word [ebp - 0x14], 0
jmp 0x4c980a
mov edx, dword [0x51533c]
mov ecx, dword [ebp - 0x34]
cmp edx, ecx
je 0x4c9851
test byte [0x514ff1], 4
je 0x4c9837
push 0x5e79c3
push 0x5e79af
push 0x514ff4
call fcn.00451068
add esp, 0xc
mov eax, dword [ebp - 0x34]
push 0
mov dword [0x51533c], eax
call fcn.004c90ec
pop ecx
push 1
call fcn.004a06cc
pop ecx
jmp 0x4c9882
test byte [0x514ff1], 4
je 0x4c9871
push 0x5e79d5
push 0x5e79c4
push 0x514ff4
call fcn.00451068
add esp, 0xc
mov edx, dword [ebp - 0x34]
push 0
mov dword [0x51533c], edx
call fcn.004c90ec
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