Function at 0x4afc8c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x1a
add esp, 0xfffff004
push eax
dec eax
jne 0x4afc95
add esp, 0xfffffe94
mov eax, dword [ebp - 4]
xor eax, eax
xor edx, edx
push ebx
push esi
push edi
xor ecx, ecx
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor edx, edx
mov dword [ebp - 0x20], edx
xor eax, eax
mov ecx, dword [ebp + 0xc]
push esi
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0xc020]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0xc020]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push eax
call fcn.004cdfec
pop ecx
movsx edx, byte [ebp + eax - 0xc021]
cmp edx, 0x5c
je 0x4afd22
push 0x5e023f
lea ecx, [ebp - 0xc020]
push ecx
call fcn.004cdf10
add esp, 8
test bl, 0x10
jne 0x4afd5a
test bh, 1
jne 0x4afd5a
push 0x1001
lea eax, [ebp - 0xc020]
push eax
call fcn.00410928
add esp, 8
mov dword [ebp - 0x20], eax
push 0x1000
lea edx, [ebp - 0xc020]
push edx
call fcn.00410928
add esp, 8
mov dword [ebp - 0x1c], eax
xor eax, eax
push esi
lea edi, [ebp - 0xc020]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x8020]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x8020]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0x5e0241
push eax
call fcn.004cdf10
add esp, 8
lea edx, [ebp - 0x1a160]
push edx
lea ecx, [ebp - 0x8020]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x4afdbe
xor eax, eax
jmp 0x4b07b2
test bh, 2
je 0x4afe6f
push 0
push 0
push 0
push 0xc8
push 0
push 0x5e0245
mov edx, dword [ebp + 8]
push edx
call fcn.004214d4
add esp, 0x1c
push 3
push 0
push 0
push 0x5e0255
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042089c
add esp, 0x14
push 3
push 0
push 0
push 0x5e025c
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
push 3
push 0
push 0
push 0x5e0263
mov edx, dword [ebp + 8]
push edx
call fcn.0042089c
add esp, 0x14
push 3
push 0
push 0
push 0x5e0291
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042089c
add esp, 0x14
push 3
push 0
push 0
push 0x5e02c6
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
push 3
push 0
push 0
push 0x5e02ee
mov edx, dword [ebp + 8]
push edx
call fcn.0042089c
add esp, 0x14
test bh, 1
je 0x4afe8b
push esi
push 0x5e02f6
lea ecx, [ebp - 0x4020]
push ecx
call fcn.004d26c8
add esp, 0xc
jmp 0x4afea6
lea eax, [ebp - 0xc020]
lea edx, [ebp - 0x4020]
push eax
push 0x5e0333
push edx
call fcn.004d26c8
add esp, 0xc
push 3
push 0
push 0
lea ecx, [ebp - 0x4020]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
test bh, 1
je 0x4afeeb
xor eax, eax
push esi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0xc020]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x1a14c]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
lea ecx, [ebp - 0x1a170]
push ecx
lea eax, [ebp - 0xc]
push eax
call sub.KERNEL32.dll_FileTimeToSystemTime
test bh, 1
je 0x4aff36
lea edx, [ebp - 0x1a134]
lea ecx, [ebp - 0xc020]
push edx
push 0x2f
push ecx
lea eax, [ebp - 0x8020]
push 0x5e0370
push eax
call fcn.004d26c8
add esp, 0x14
jmp 0x4aff58
lea edx, [ebp - 0x1a134]
lea ecx, [ebp - 0xc020]
push edx
push ecx
lea eax, [ebp - 0x8020]
push 0x5e0377
push eax
call fcn.004d26c8
add esp, 0x10
lea edx, [ebp - 0x8020]
push edx
call fcn.0041cc88
pop ecx
test eax, eax
je 0x4aff81
lea ecx, [ebp - 0x16020]
push ecx
lea eax, [ebp - 0x8020]
push eax
call fcn.0041ce5c
add esp, 8
jmp 0x4affac
xor eax, eax
push esi
lea edi, [ebp - 0x8020]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x16020]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0x14020]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041ce5c
add esp, 8
lea ecx, [ebp - 0x14020]
mov byte [ebp - 0x10020], 0
push esi
push ecx
lea eax, [ebp - 0x16020]
lea edx, [ebp - 0x14020]
push eax
push esi
push edx
lea ecx, [ebp - 0x16020]
push ecx
push esi
lea eax, [ebp - 0x14020]
lea edx, [ebp - 0x16020]
push eax
push edx
push esi
lea ecx, [ebp - 0x14020]
push ecx
lea eax, [ebp - 0x16020]
push eax
lea edx, [ebp - 0x10020]
push 0x5e037c
push edx
call fcn.004d26c8
add esp, 0x38
movsx ecx, byte [ebp - 0x1a134]
cmp ecx, 0x2e
jne 0x4b0052
mov al, byte [ebp - 0x1a133]
test al, al
jne 0x4b0035
mov byte [ebp - 0x10020], 0
jmp 0x4b0052
movsx edx, byte [ebp - 0x1a133]
cmp edx, 0x2e
jne 0x4b0052
mov cl, byte [ebp - 0x1a132]
test cl, cl
jne 0x4b0052
mov byte [ebp - 0x10020], 0
test bl, 0x10
je 0x4b005e
mov byte [ebp - 0x10020], 0
test bh, 1
je 0x4b006a
mov byte [ebp - 0x10020], 0
lea eax, [ebp - 0x1a134]
mov edx, 0x5e0496
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4b0091
test cl, cl
je 0x4b0097
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4b0091
add eax, 2
add edx, 2
test cl, cl
jne 0x4b0075
jne 0x4b013a
xor eax, eax
push esi
lea edi, [ebp - 0xc020]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x16020]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x16020]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push eax
call fcn.004cdfec
pop ecx
mov edx, eax
test edx, edx
je 0x4b00ea
movsx ecx, byte [ebp + edx - 0x16021]
cmp ecx, 0x5c
jne 0x4b00ea
mov byte [ebp + edx - 0x16021], 0
test edx, edx
je 0x4b0103
movsx eax, byte [ebp + edx - 0x16021]
cmp eax, 0x2f
jne 0x4b0103
mov byte [ebp + edx - 0x16021], 0
test edx, edx
je 0x4b013a
lea eax, [ebp + edx - 0x16020]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x4b011b
mov byte [eax], 0
jmp 0x4b013a
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x4b0128
mov byte [eax], 0
jmp 0x4b013a
test edx, edx
jne 0x4b0136
test bh, 1
je 0x4b013a
mov byte [eax], 0
jmp 0x4b013a
dec edx
dec eax
jmp 0x4b010e
lea eax, [ebp - 0x16020]
mov dl, byte [eax]
test dl, dl
je 0x4b0154
movsx edx, dl
cmp edx, 0x5c
jne 0x4b0151
mov byte [eax], 0x2f
inc eax
jmp 0x4b0140
test byte [ebp - 0x1a160], 0x10
je 0x4b020a
test bl, 0x10
je 0x4b0183
lea eax, [ebp - 0x1a134]
lea ecx, [ebp - 0x8020]
push eax
push 0x5e0499
push ecx
call fcn.004d26c8
add esp, 0xc
jmp 0x4b01a5
lea eax, [ebp - 0x1a134]
lea edx, [ebp - 0x16020]
push eax
push edx
lea ecx, [ebp - 0x8020]
push 0x5e04e9
push ecx
call fcn.004d26c8
add esp, 0x10
test bh, 1
je 0x4b02ae
movsx eax, byte [ebp - 0x16020]
cmp eax, 0x2f
jne 0x4b01e1
lea edx, [ebp - 0x1a134]
lea ecx, [ebp - 0x16020]
push edx
push ecx
lea eax, [ebp - 0x8020]
push 0x5e0553
push eax
call fcn.004d26c8
add esp, 0x10
jmp 0x4b02ae
lea edx, [ebp - 0x1a134]
push edx
lea ecx, [ebp - 0x16020]
push ecx
push 0x2f
push 0x5e05b4
lea eax, [ebp - 0x8020]
push eax
call fcn.004d26c8
add esp, 0x14
jmp 0x4b02ae
test bl, 0x10
je 0x4b022c
lea edx, [ebp - 0x1a134]
lea ecx, [ebp - 0x8020]
push edx
push 0x5e0617
push ecx
call fcn.004d26c8
add esp, 0xc
jmp 0x4b0255
lea eax, [ebp - 0x1a134]
lea edx, [ebp - 0x16020]
push eax
push edx
lea ecx, [ebp - 0x1a134]
lea eax, [ebp - 0x8020]
push ecx
push 0x5e0667
push eax
call fcn.004d26c8
add esp, 0x14
test bh, 1
je 0x4b02ae
movsx edx, byte [ebp - 0x16020]
cmp edx, 0x2f
jne 0x4b028a
lea ecx, [ebp - 0x1a134]
lea eax, [ebp - 0x16020]
push ecx
push eax
lea edx, [ebp - 0x8020]
push 0x5e06dc
push edx
call fcn.004d26c8
add esp, 0x10
jmp 0x4b02ae
lea ecx, [ebp - 0x1a134]
push ecx
lea eax, [ebp - 0x16020]
push eax
push 0x2f
push 0x5e073d
lea edx, [ebp - 0x8020]
push edx
call fcn.004d26c8
add esp, 0x14
mov eax, dword [ebp - 0x1a160]
test al, 0x20
je 0x4b02d0
test al, 0x10
jne 0x4b02d0
push 0x5e07a0
lea edx, [ebp - 0x8020]
push edx
call fcn.004cdf10
add esp, 8
test byte [ebp - 0x1a15f], 8
je 0x4b02ed
push 0x5e07a9
lea ecx, [ebp - 0x8020]
push ecx
call fcn.004cdf10
add esp, 8
test byte [ebp - 0x1a160], 0x10
je 0x4b030a
push 0x5e07b5
lea eax, [ebp - 0x8020]
push eax
call fcn.004cdf10
add esp, 8
test byte [ebp - 0x1a160], 2
je 0x4b0327
push 0x5e07c1
lea edx, [ebp - 0x8020]
push edx
call fcn.004cdf10
add esp, 8
test byte [ebp - 0x1a160], 0x80
je 0x4b0344
push 0x5e07c9
lea ecx, [ebp - 0x8020]
push ecx
call fcn.004cdf10
add esp, 8
test byte [ebp - 0x1a160], 1
je 0x4b0361
push 0x5e07d1
lea eax, [ebp - 0x8020]
push eax
call fcn.004cdf10
add esp, 8
test byte [ebp - 0x1a160], 4
je 0x4b037e
push 0x5e07da
lea edx, [ebp - 0x8020]
push edx
call fcn.004cdf10
add esp, 8
test byte [ebp - 0x1a15f], 1
je 0x4b039b
push 0x5e07e3
lea ecx, [ebp - 0x8020]
push ecx
call fcn.004cdf10
add esp, 8
movzx eax, word [ebp - 0x1a164]
push eax
movzx edx, word [ebp - 0x1a166]
push edx
movzx ecx, word [ebp - 0x1a168]
push ecx
movzx eax, word [ebp - 0x1a170]
push eax
lea eax, [ebp - 0x8020]
movzx edx, word [ebp - 0x1a16e]
push edx
movzx ecx, word [ebp - 0x1a16a]
push ecx
push 0x5e07ed
push eax
call fcn.004cdfec
pop ecx
lea edx, [ebp - 0x8020]
add eax, edx
push eax
call fcn.004d26c8
add esp, 0x20
mov eax, dword [ebp - 0x1a140]
cmp eax, 0x2800
jbe 0x4b0423
lea edx, [ebp - 0x10020]
lea ecx, [ebp - 0x8020]
shr eax, 0xa
push edx
push eax
push ecx
lea eax, [ebp - 0x4020]
push 0x5e087f
push eax
call fcn.004d26c8
add esp, 0x14
jmp 0x4b044c
lea edx, [ebp - 0x10020]
lea eax, [ebp - 0x8020]
push edx
lea edx, [ebp - 0x4020]
mov ecx, dword [ebp - 0x1a140]
push ecx
push eax
push 0x5e08c4
push edx
call fcn.004d26c8
add esp, 0x14
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1a140]
add ecx, eax
mov dword [ebp - 0x14], ecx
movsx edx, byte [ebp - 0x1a134]
cmp edx, 0x2e
jne 0x4b048b
mov al, byte [ebp - 0x1a133]
test al, al
jne 0x4b0476
dec dword [ebp - 0x10]
movsx edx, al
cmp edx, 0x2e
jne 0x4b048b
mov cl, byte [ebp - 0x1a132]
test cl, cl
jne 0x4b048b
dec dword [ebp - 0x10]
movsx eax, byte [ebp - 0x1a134]
cmp eax, 0x2e
jne 0x4b04a1
mov dl, byte [ebp - 0x1a133]
test dl, dl
je 0x4b04bf
push ebx
lea ecx, [ebp - 0x1a160]
push ecx
lea eax, [ebp - 0x4020]
push eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.004afa60
add esp, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1a160]
push ecx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_FindNextFileA
cmp eax, 0x12
je 0x4b04dd
test eax, eax
je 0x4b04dd
jmp 0x4afeeb
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x16020]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
push 0x5e090c
push eax
call fcn.004d26c8
add esp, 0x10
lea edx, [ebp - 0x16020]
push 3
push 0
push 0
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042089c
add esp, 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b0520
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4b0555
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x16020]
push ecx
mov eax, dword [ebp - 0x20]
push eax
push 0x5e0946
push edx
call fcn.004d26c8
add esp, 0x10
lea ecx, [ebp - 0x16020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
push 0x5e095e
lea edx, [ebp - 0x16020]
push edx
call fcn.004d26c8
add esp, 8
lea ecx, [ebp - 0x16020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
test bl, 0x10
je 0x4b05a4
lea edx, [ebp - 0xc020]
lea ecx, [ebp - 0x16020]
push edx
push 0x5e0974
push ecx
call fcn.004d26c8
add esp, 0xc
jmp 0x4b05bf
lea eax, [ebp - 0xc020]
lea edx, [ebp - 0x16020]
push eax
push 0x5e098e
push edx
call fcn.004d26c8
add esp, 0xc
test bl, 0x10
je 0x4b05e1
lea ecx, [ebp - 0xc020]
lea eax, [ebp - 0x1a020]
push ecx
push 0x5e09a5
push eax
call fcn.004d26c8
add esp, 0xc
jmp 0x4b05fc
lea edx, [ebp - 0xc020]
lea ecx, [ebp - 0x1a020]
push edx
push 0x5e09bf
push ecx
call fcn.004d26c8
add esp, 0xc
test bl, 0x10
je 0x4b061e
lea eax, [ebp - 0xc020]
lea edx, [ebp - 0x18020]
push eax
push 0x5e09d6
push edx
call fcn.004d26c8
add esp, 0xc
jmp 0x4b0639
lea ecx, [ebp - 0xc020]
lea eax, [ebp - 0x18020]
push ecx
push 0x5e09f0
push eax
call fcn.004d26c8
add esp, 0xc
mov edx, dword [ebp + 0x1c]
push edx
mov ecx, dword [ebp + 0x18]
push ecx
mov eax, dword [ebp + 0x14]
push eax
lea edx, [ebp - 0x16020]
push edx
call fcn.004222cc
add esp, 0x10
mov ecx, dword [ebp + 0x1c]
push ecx
mov eax, dword [ebp + 0x18]
push eax
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x1a020]
push ecx
call fcn.004222cc
add esp, 0x10
mov eax, dword [ebp + 0x1c]
push eax
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
lea eax, [ebp - 0x18020]
push eax
call fcn.004222cc
add esp, 0x10
test bh, 1
je 0x4b06ef
push 0x25
push 0x5e0a07
lea edx, [ebp - 0x4020]
push edx
call fcn.004d26c8
add esp, 0xc
lea ecx, [ebp - 0x4020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
lea edx, [ebp - 0x4020]
push 0x25
push 0x5e0b1b
push edx
call fcn.004d26c8
add esp, 0xc
lea ecx, [ebp - 0x4020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
jmp 0x4b0762
lea edx, [ebp - 0x18020]
push edx
lea ecx, [ebp - 0x1a020]
push ecx
lea eax, [ebp - 0x16020]
push eax
push 0x25
push 0x5e0b94
lea edx, [ebp - 0x4020]
push edx
call fcn.004d26c8
add esp, 0x18
lea ecx, [ebp - 0x4020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
lea edx, [ebp - 0x4020]
push 0x25
push 0x5e0cdb
push edx
call fcn.004d26c8
add esp, 0xc
lea ecx, [ebp - 0x4020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4b078d
push 3
push 0
push 0
push ebx
mov eax, dword [ebp + 8]
push eax
call fcn.0042089c
add esp, 0x14
mov eax, ebx
mov ebx, dword [ebx + 0x4105]
push eax
call fcn.004d8328
pop ecx
jmp 0x4b0765
push 3
push 0
push 0
push 0x5e0d54
mov edx, dword [ebp + 8]
push edx
call fcn.0042089c
add esp, 0x14
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_FindClose
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret