Function at 0x4af148
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x1a
add esp, 0xfffff004
push eax
dec eax
jne 0x4af151
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.004cd3e4
pop ecx
movsx edx, byte [ebp + eax - 0xc021]
cmp edx, 0x5c
je 0x4af1de
push 0x5dec81
lea ecx, [ebp - 0xc020]
push ecx
call fcn.004cd308
add esp, 8
test bl, 0x10
jne 0x4af216
test bh, 1
jne 0x4af216
push 0x1001
lea eax, [ebp - 0xc020]
push eax
call fcn.004107a8
add esp, 8
mov dword [ebp - 0x20], eax
push 0x1000
lea edx, [ebp - 0xc020]
push edx
call fcn.004107a8
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 0x5dec83
push eax
call fcn.004cd308
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 0x4af27a
xor eax, eax
jmp 0x4afc6e
test bh, 2
je 0x4af32b
push 0
push 0
push 0
push 0xc8
push 0
push 0x5dec87
mov edx, dword [ebp + 8]
push edx
call fcn.00421174
add esp, 0x1c
push 3
push 0
push 0
push 0x5dec97
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042053c
add esp, 0x14
push 3
push 0
push 0
push 0x5dec9e
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
push 3
push 0
push 0
push 0x5deca5
mov edx, dword [ebp + 8]
push edx
call fcn.0042053c
add esp, 0x14
push 3
push 0
push 0
push 0x5decd3
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042053c
add esp, 0x14
push 3
push 0
push 0
push 0x5ded08
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
push 3
push 0
push 0
push 0x5ded30
mov edx, dword [ebp + 8]
push edx
call fcn.0042053c
add esp, 0x14
test bh, 1
je 0x4af347
push esi
push 0x5ded38
lea ecx, [ebp - 0x4020]
push ecx
call fcn.004d1ac0
add esp, 0xc
jmp 0x4af362
lea eax, [ebp - 0xc020]
lea edx, [ebp - 0x4020]
push eax
push 0x5ded75
push edx
call fcn.004d1ac0
add esp, 0xc
push 3
push 0
push 0
lea ecx, [ebp - 0x4020]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
test bh, 1
je 0x4af3a7
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 0x4af3f2
lea edx, [ebp - 0x1a134]
lea ecx, [ebp - 0xc020]
push edx
push 0x2f
push ecx
lea eax, [ebp - 0x8020]
push 0x5dedb2
push eax
call fcn.004d1ac0
add esp, 0x14
jmp 0x4af414
lea edx, [ebp - 0x1a134]
lea ecx, [ebp - 0xc020]
push edx
push ecx
lea eax, [ebp - 0x8020]
push 0x5dedb9
push eax
call fcn.004d1ac0
add esp, 0x10
lea edx, [ebp - 0x8020]
push edx
call fcn.0041cacc
pop ecx
test eax, eax
je 0x4af43d
lea ecx, [ebp - 0x16020]
push ecx
lea eax, [ebp - 0x8020]
push eax
call fcn.0041cca0
add esp, 8
jmp 0x4af468
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.0041cca0
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 0x5dedbe
push edx
call fcn.004d1ac0
add esp, 0x38
movsx ecx, byte [ebp - 0x1a134]
cmp ecx, 0x2e
jne 0x4af50e
mov al, byte [ebp - 0x1a133]
test al, al
jne 0x4af4f1
mov byte [ebp - 0x10020], 0
jmp 0x4af50e
movsx edx, byte [ebp - 0x1a133]
cmp edx, 0x2e
jne 0x4af50e
mov cl, byte [ebp - 0x1a132]
test cl, cl
jne 0x4af50e
mov byte [ebp - 0x10020], 0
test bl, 0x10
je 0x4af51a
mov byte [ebp - 0x10020], 0
test bh, 1
je 0x4af526
mov byte [ebp - 0x10020], 0
lea eax, [ebp - 0x1a134]
mov edx, 0x5deed8
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4af54d
test cl, cl
je 0x4af553
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4af54d
add eax, 2
add edx, 2
test cl, cl
jne 0x4af531
jne 0x4af5f6
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.004cd3e4
pop ecx
mov edx, eax
test edx, edx
je 0x4af5a6
movsx ecx, byte [ebp + edx - 0x16021]
cmp ecx, 0x5c
jne 0x4af5a6
mov byte [ebp + edx - 0x16021], 0
test edx, edx
je 0x4af5bf
movsx eax, byte [ebp + edx - 0x16021]
cmp eax, 0x2f
jne 0x4af5bf
mov byte [ebp + edx - 0x16021], 0
test edx, edx
je 0x4af5f6
lea eax, [ebp + edx - 0x16020]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x4af5d7
mov byte [eax], 0
jmp 0x4af5f6
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x4af5e4
mov byte [eax], 0
jmp 0x4af5f6
test edx, edx
jne 0x4af5f2
test bh, 1
je 0x4af5f6
mov byte [eax], 0
jmp 0x4af5f6
dec edx
dec eax
jmp 0x4af5ca
lea eax, [ebp - 0x16020]
mov dl, byte [eax]
test dl, dl
je 0x4af610
movsx edx, dl
cmp edx, 0x5c
jne 0x4af60d
mov byte [eax], 0x2f
inc eax
jmp 0x4af5fc
test byte [ebp - 0x1a160], 0x10
je 0x4af6c6
test bl, 0x10
je 0x4af63f
lea eax, [ebp - 0x1a134]
lea ecx, [ebp - 0x8020]
push eax
push 0x5deedb
push ecx
call fcn.004d1ac0
add esp, 0xc
jmp 0x4af661
lea eax, [ebp - 0x1a134]
lea edx, [ebp - 0x16020]
push eax
push edx
lea ecx, [ebp - 0x8020]
push 0x5def2b
push ecx
call fcn.004d1ac0
add esp, 0x10
test bh, 1
je 0x4af76a
movsx eax, byte [ebp - 0x16020]
cmp eax, 0x2f
jne 0x4af69d
lea edx, [ebp - 0x1a134]
lea ecx, [ebp - 0x16020]
push edx
push ecx
lea eax, [ebp - 0x8020]
push 0x5def95
push eax
call fcn.004d1ac0
add esp, 0x10
jmp 0x4af76a
lea edx, [ebp - 0x1a134]
push edx
lea ecx, [ebp - 0x16020]
push ecx
push 0x2f
push 0x5deff6
lea eax, [ebp - 0x8020]
push eax
call fcn.004d1ac0
add esp, 0x14
jmp 0x4af76a
test bl, 0x10
je 0x4af6e8
lea edx, [ebp - 0x1a134]
lea ecx, [ebp - 0x8020]
push edx
push 0x5df059
push ecx
call fcn.004d1ac0
add esp, 0xc
jmp 0x4af711
lea eax, [ebp - 0x1a134]
lea edx, [ebp - 0x16020]
push eax
push edx
lea ecx, [ebp - 0x1a134]
lea eax, [ebp - 0x8020]
push ecx
push 0x5df0a9
push eax
call fcn.004d1ac0
add esp, 0x14
test bh, 1
je 0x4af76a
movsx edx, byte [ebp - 0x16020]
cmp edx, 0x2f
jne 0x4af746
lea ecx, [ebp - 0x1a134]
lea eax, [ebp - 0x16020]
push ecx
push eax
lea edx, [ebp - 0x8020]
push 0x5df11e
push edx
call fcn.004d1ac0
add esp, 0x10
jmp 0x4af76a
lea ecx, [ebp - 0x1a134]
push ecx
lea eax, [ebp - 0x16020]
push eax
push 0x2f
push 0x5df17f
lea edx, [ebp - 0x8020]
push edx
call fcn.004d1ac0
add esp, 0x14
mov eax, dword [ebp - 0x1a160]
test al, 0x20
je 0x4af78c
test al, 0x10
jne 0x4af78c
push 0x5df1e2
lea edx, [ebp - 0x8020]
push edx
call fcn.004cd308
add esp, 8
test byte [ebp - 0x1a15f], 8
je 0x4af7a9
push 0x5df1eb
lea ecx, [ebp - 0x8020]
push ecx
call fcn.004cd308
add esp, 8
test byte [ebp - 0x1a160], 0x10
je 0x4af7c6
push 0x5df1f7
lea eax, [ebp - 0x8020]
push eax
call fcn.004cd308
add esp, 8
test byte [ebp - 0x1a160], 2
je 0x4af7e3
push 0x5df203
lea edx, [ebp - 0x8020]
push edx
call fcn.004cd308
add esp, 8
test byte [ebp - 0x1a160], 0x80
je 0x4af800
push 0x5df20b
lea ecx, [ebp - 0x8020]
push ecx
call fcn.004cd308
add esp, 8
test byte [ebp - 0x1a160], 1
je 0x4af81d
push 0x5df213
lea eax, [ebp - 0x8020]
push eax
call fcn.004cd308
add esp, 8
test byte [ebp - 0x1a160], 4
je 0x4af83a
push 0x5df21c
lea edx, [ebp - 0x8020]
push edx
call fcn.004cd308
add esp, 8
test byte [ebp - 0x1a15f], 1
je 0x4af857
push 0x5df225
lea ecx, [ebp - 0x8020]
push ecx
call fcn.004cd308
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 0x5df22f
push eax
call fcn.004cd3e4
pop ecx
lea edx, [ebp - 0x8020]
add eax, edx
push eax
call fcn.004d1ac0
add esp, 0x20
mov eax, dword [ebp - 0x1a140]
cmp eax, 0x2800
jbe 0x4af8df
lea edx, [ebp - 0x10020]
lea ecx, [ebp - 0x8020]
shr eax, 0xa
push edx
push eax
push ecx
lea eax, [ebp - 0x4020]
push 0x5df2c1
push eax
call fcn.004d1ac0
add esp, 0x14
jmp 0x4af908
lea edx, [ebp - 0x10020]
lea eax, [ebp - 0x8020]
push edx
lea edx, [ebp - 0x4020]
mov ecx, dword [ebp - 0x1a140]
push ecx
push eax
push 0x5df306
push edx
call fcn.004d1ac0
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 0x4af947
mov al, byte [ebp - 0x1a133]
test al, al
jne 0x4af932
dec dword [ebp - 0x10]
movsx edx, al
cmp edx, 0x2e
jne 0x4af947
mov cl, byte [ebp - 0x1a132]
test cl, cl
jne 0x4af947
dec dword [ebp - 0x10]
movsx eax, byte [ebp - 0x1a134]
cmp eax, 0x2e
jne 0x4af95d
mov dl, byte [ebp - 0x1a133]
test dl, dl
je 0x4af97b
push ebx
lea ecx, [ebp - 0x1a160]
push ecx
lea eax, [ebp - 0x4020]
push eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.004aef1c
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 0x4af999
test eax, eax
je 0x4af999
jmp 0x4af3a7
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x16020]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
push 0x5df34e
push eax
call fcn.004d1ac0
add esp, 0x10
lea edx, [ebp - 0x16020]
push 3
push 0
push 0
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042053c
add esp, 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4af9dc
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4afa11
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x16020]
push ecx
mov eax, dword [ebp - 0x20]
push eax
push 0x5df388
push edx
call fcn.004d1ac0
add esp, 0x10
lea ecx, [ebp - 0x16020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
push 0x5df3a0
lea edx, [ebp - 0x16020]
push edx
call fcn.004d1ac0
add esp, 8
lea ecx, [ebp - 0x16020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
test bl, 0x10
je 0x4afa60
lea edx, [ebp - 0xc020]
lea ecx, [ebp - 0x16020]
push edx
push 0x5df3b6
push ecx
call fcn.004d1ac0
add esp, 0xc
jmp 0x4afa7b
lea eax, [ebp - 0xc020]
lea edx, [ebp - 0x16020]
push eax
push 0x5df3d0
push edx
call fcn.004d1ac0
add esp, 0xc
test bl, 0x10
je 0x4afa9d
lea ecx, [ebp - 0xc020]
lea eax, [ebp - 0x1a020]
push ecx
push 0x5df3e7
push eax
call fcn.004d1ac0
add esp, 0xc
jmp 0x4afab8
lea edx, [ebp - 0xc020]
lea ecx, [ebp - 0x1a020]
push edx
push 0x5df401
push ecx
call fcn.004d1ac0
add esp, 0xc
test bl, 0x10
je 0x4afada
lea eax, [ebp - 0xc020]
lea edx, [ebp - 0x18020]
push eax
push 0x5df418
push edx
call fcn.004d1ac0
add esp, 0xc
jmp 0x4afaf5
lea ecx, [ebp - 0xc020]
lea eax, [ebp - 0x18020]
push ecx
push 0x5df432
push eax
call fcn.004d1ac0
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.00421f6c
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.00421f6c
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.00421f6c
add esp, 0x10
test bh, 1
je 0x4afbab
push 0x25
push 0x5df449
lea edx, [ebp - 0x4020]
push edx
call fcn.004d1ac0
add esp, 0xc
lea ecx, [ebp - 0x4020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
lea edx, [ebp - 0x4020]
push 0x25
push 0x5df55d
push edx
call fcn.004d1ac0
add esp, 0xc
lea ecx, [ebp - 0x4020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
jmp 0x4afc1e
lea edx, [ebp - 0x18020]
push edx
lea ecx, [ebp - 0x1a020]
push ecx
lea eax, [ebp - 0x16020]
push eax
push 0x25
push 0x5df5d6
lea edx, [ebp - 0x4020]
push edx
call fcn.004d1ac0
add esp, 0x18
lea ecx, [ebp - 0x4020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
lea edx, [ebp - 0x4020]
push 0x25
push 0x5df71d
push edx
call fcn.004d1ac0
add esp, 0xc
lea ecx, [ebp - 0x4020]
push 3
push 0
push 0
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4afc49
push 3
push 0
push 0
push ebx
mov eax, dword [ebp + 8]
push eax
call fcn.0042053c
add esp, 0x14
mov eax, ebx
mov ebx, dword [ebx + 0x4105]
push eax
call fcn.004d7720
pop ecx
jmp 0x4afc21
push 3
push 0
push 0
push 0x5df796
mov edx, dword [ebp + 8]
push edx
call fcn.0042053c
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