Function at 0x40e870
Capabilities:
Enumerate files on windows

Disassembly:
enter 0xe68, 0
push ebx
push ecx
push edx
mov eax, 0
mov dword [0x42e9e3], eax
lea edi, [ebp - 0x108]
mov esi, 0x415f9b
call fcn.00401940
lea eax, [ebp - 0x9fa]
push eax
push 0x417e72
call fcn.00401e60
lea eax, [ebp - 0x9fa]
push eax
call fcn.00401210
lea eax, [ebp - 0x9fa]
push eax
push 0x23
push 0x417d87
push 0
call fcn.00402d20
call fcn.00402d00
lea eax, [ebp - 0x9fa]
push eax
push 0x15
push 0x417daa
push 0
call fcn.00402d20
call fcn.00402d00
inc dword [0x42e9e3]
imul eax, dword [0x42e9e3], 0x100
lea edi, [eax + 0x4296e0]
mov esi, 0x417dbf
call fcn.00401940
lea eax, [ebp - 0x9fa]
push eax
push 0x26
push 0x417dc1
push 0
call fcn.00402d20
call fcn.00402d00
lea eax, [ebp - 0x9fa]
push eax
push 0x16
push 0x417de7
push 0
call fcn.00402d20
call fcn.00402d00
lea edi, [ebp - 0x208]
lea esi, [ebp - 0x108]
call fcn.00401940
push 0x41974c
push 0x12
push 0x417dfd
push 0
call fcn.00402d20
push 0x415f9b
push 0
call fcn.00402790
call fcn.00402d00
lea esi, [ebp - 0x108]
lea edi, [ebp - 0xd68]
call fcn.00401b30
mov esi, 0x417e0f
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0xc68]
call fcn.00401b30
mov esi, 0x417e19
call fcn.00401af0
lea edi, [ebp - 0x58c]
lea esi, [ebp - 0xc68]
call fcn.00401940
push 0x41974c
push 0xe
push 0x417e1b
push 0
call fcn.00402d20
lea eax, [ebp - 0x58c]
push eax
push 0
call fcn.00402790
call fcn.00402d00
lea ebx, [ebp - 0x348]
push ebx
lea eax, [ebp - 0x58b]
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0xc68]
push eax
lea ebx, [ebp - 0x31c]
push ebx
call fcn.00402b90
lea edi, [ebp - 0x78c]
lea esi, [ebp - 0xc68]
call fcn.00401940
push 0x417e29
mov eax, edi
push eax
call fcn.00404e80
test eax, eax
jle 0x40ea28
jmp 0x40ec93
mov eax, dword [ebp - 0x348]
and eax, 0x10
cmp eax, 0x10
je 0x40ec93
mov esi, 0x415f9b
lea edi, [ebp - 0xe68]
call fcn.00401b30
mov esi, 0x417e2c
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0xd68]
call fcn.00401b30
lea esi, [ebp - 0x78c]
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0xc68]
call fcn.00401b30
mov esi, 0x417e2e
call fcn.00401af0
lea edi, [ebp - 0x68c]
lea esi, [ebp - 0xc68]
call fcn.00401940
mov esi, edi
lea edi, [ebp - 0x208]
call fcn.00408a40
test al, al
je 0x40eaaa
jmp 0x40ec93
cmp dword [0x42e9e3], 0x20
jge 0x40ec93
inc dword [0x42e9e3]
imul eax, dword [0x42e9e3], 0x100
lea edi, [eax + 0x4296e0]
lea esi, [ebp - 0x68c]
call fcn.00401940
lea eax, [ebp - 0x9fa]
push eax
push dword [0x42e9e3]
push 0
call fcn.00403d20
push 1
push 0x417e30
push 0
call fcn.00402d20
lea eax, [ebp - 0x78c]
push eax
push 0
call fcn.00402790
call fcn.00402d00
push 0x41974c
push 0xe
push 0x417e31
push 0
call fcn.00402d20
lea eax, [ebp - 0x68c]
push eax
push 0
call fcn.00402790
call fcn.00402d00
lea ebx, [ebp - 0xb68]
push ebx
lea eax, [ebp - 0x68c]
push eax
call fcn.00401e60
lea ecx, [ebp - 0xb68]
push ecx
call fcn.00401ee0
call fcn.00402770
test eax, eax
je 0x40eb63
push 0
call fcn.00403170
lea edi, [ebp - 0x78c]
mov esi, 0x417e3f
call fcn.00401940
lea eax, [ebp - 0xb68]
push eax
push 0xff
lea ebx, [ebp - 0x88c]
push ebx
call fcn.00405fc0
call fcn.00405aa0
push 0x417e45
lea eax, [ebp - 0x88c]
push eax
call fcn.00404e80
cmp eax, 1
jne 0x40eb73
lea eax, [ebp - 0xb68]
push eax
push 0xff
lea ebx, [ebp - 0x88c]
push ebx
call fcn.00405fc0
call fcn.00405aa0
push 0xff
lea eax, [ebp - 0x88c]
push eax
push 0x417e49
push eax
call fcn.00404e80
push eax
push 0xff
call fcn.00404550
lea esi, [ebp - 0x88c]
lea edi, [ebp - 0xc68]
call fcn.00401b30
mov esi, 0x417e4b
call fcn.00401af0
lea edi, [ebp - 0x88c]
lea esi, [ebp - 0xc68]
call fcn.00401940
lea esi, [ebp - 0x78c]
lea edi, [ebp - 0xc68]
call fcn.00401b30
lea esi, [ebp - 0x88c]
call fcn.00401af0
lea edi, [ebp - 0x78c]
lea esi, [ebp - 0xc68]
call fcn.00401940
lea eax, [ebp - 0xb68]
push eax
call fcn.00405b40
test al, al
je 0x40eba6
lea eax, [ebp - 0xb68]
push eax
call fcn.00401d90
lea ebx, [ebp - 0x9fa]
push ebx
push dword [0x42e9e3]
push 0
call fcn.00403d20
push 1
push 0x417e4d
push 0
call fcn.00402d20
lea eax, [ebp - 0x78c]
push eax
push 0
call fcn.00402790
call fcn.00402d00
lea eax, [ebp - 0x348]
push eax
push dword [ebp - 0x48c]
call sub.kernel32.dll_FindNextFileA
test al, al
jne 0x40e9ee
push dword [ebp - 0x48c]
call sub.kernel32.dll_FindClose
lea eax, [ebp - 0x9fa]
push eax
call fcn.00401d90
push 0x417e4e
mov esi, 0x417e72
lea edi, [ebp - 0xc68]
call fcn.00401b30
mov esi, 0x417e58
call fcn.00401af0
mov eax, edi
push eax
call fcn.00406850
mov dword [0x4163b5], eax
mov edi, dword [0x417e5b]
mov eax, dword [0x4163b5]
inc eax
cdq
idiv edi
mov dword [0x4163b5], eax
push 0x41974c
push 0x12
push 0x417e5f
push 0
call fcn.00402d20
push dword [0x4163b5]
push 0
call fcn.00403d20
push 1
push 0x417e71
push 0
call fcn.00402d20
imul eax, dword [0x4163b5], 0x100
lea eax, [eax + 0x4296e0]
push eax
push 0
call fcn.00402790
call fcn.00402d00
pop edx
pop ecx
pop ebx
leave
ret