Function at 0x42e080
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4700b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x50], eax
nop dword [eax + eax]
mov al, byte [esi]
test al, al
jne 0x42e1dd
cmp dword [esi + 0x2a4], 0
je 0x42e33c
test al, al
jne 0x42e1dd
mov ecx, dword [esi + 0x2a4]
xor eax, eax
add ecx, dword [esi + 0x2a0]
mov edx, dword [esi + 0x294]
test edx, edx
je 0x42e0df
mov edx, dword [edx]
test edx, edx
je 0x42e0df
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x42e0f6
mov eax, dword [eax]
test eax, eax
je 0x42e0f6
mov eax, dword [eax]
test eax, eax
je 0x42e0f6
mov eax, dword [eax]
jmp 0x42e0f8
xor eax, eax
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
push dword [eax + ecx*4]
lea ecx, [esi + 0x258]
call fcn.00426040
mov eax, dword [esi + 0x2a4]
mov ecx, dword [esi + 0x2a0]
dec eax
add ecx, eax
mov eax, dword [esi + 0x29c]
dec eax
and ecx, eax
mov eax, dword [esi + 0x298]
mov ecx, dword [eax + ecx*4]
call fcn.004241b0
add dword [esi + 0x2a4], 0xffffffff
jne 0x42e148
mov dword [esi + 0x2a0], 0
mov eax, dword [esi + 0x290]
sub eax, 0
je 0x42e176
sub eax, 1
je 0x42e162
lea ecx, [ebp - 0x4c]
call fcn.00425f70
jmp 0x42e1ac
sub esp, 8
mov eax, esp
mov dword [eax], 0x45f008
mov dword [eax + 4], 1
jmp 0x42e19d
sub esp, 8
cmp dword [esi + 0x28c], 8
mov edx, esp
jb 0x42e18c
mov eax, dword [esi + 0x278]
jmp 0x42e192
lea eax, [esi + 0x278]
mov dword [edx], eax
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0x258]
call fcn.004260f0
cmp dword [ebp - 0x38], 8
lea ebx, [esi + 4]
push 2
push 0
push 0
push ebx
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
lea ecx, [ebp - 0x4c]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.004241b0
jmp 0x42e207
lea ebx, [esi + 4]
push ebx
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42e207
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x42e237
cmp dword [esi + 0x290], 0
mov byte [esi], 0
jne 0x42e0a0
push 1
push 0x45f008
lea ecx, [esi + 0x278]
call fcn.00422600
jmp 0x42e0a0
sub esp, 8
lea ecx, [esi + 0x30]
mov edx, esp
mov dword [edx], ecx
test ecx, ecx
je 0x42e261
cmp word [ecx], 0
jne 0x42e24f
xor ecx, ecx
jmp 0x42e261
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e252
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x1c]
call fcn.00425f10
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0042dce0
test al, al
je 0x42e288
lea ecx, [ebp - 0x1c]
call fcn.004241b0
jmp 0x42e0a0
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
shr ebx, 4
lea eax, [ebp - 0x34]
and bl, 1
lea ecx, [esi + 0x258]
push eax
mov byte [ebp - 0x54], bl
call fcn.004260c0
test bl, bl
je 0x42e2db
cmp byte [esi + 0x270], 0
je 0x42e2db
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x42e2db
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x294]
call fcn.0042e5a0
push dword [ebp - 0x54]
mov ecx, esi
call fcn.0042dcc0
test al, al
je 0x42e327
mov eax, dword [esi + 0x290]
sub eax, 0
je 0x42e346
sub eax, 1
jne 0x42e327
cmp dword [esi + 0x28c], 8
lea ecx, [esi + 0x278]
jb 0x42e30a
mov ecx, dword [ecx]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push ecx
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
sete al
test al, al
jne 0x42e346
lea ecx, [ebp - 0x34]
call fcn.004241b0
lea ecx, [ebp - 0x1c]
call fcn.004241b0
jmp 0x42e0a0
mov ecx, dword [ebp - 0x50]
call fcn.00425f70
jmp 0x42e362
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
push eax
call fcn.00425ee0
lea ecx, [ebp - 0x34]
call fcn.004241b0
lea ecx, [ebp - 0x1c]
call fcn.004241b0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x50]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043dbeb
mov esp, ebp
pop ebp
ret 4