Function at 0x42c040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x670
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x69c]
push 0x103
lea eax, [esp + 0x274]
push edi
push eax
mov dword [esp + 0x24], ecx
call fcn.004cb3f1
add esp, 0xc
lea edx, [esp + 0x270]
xor ecx, ecx
push 0x5c
push edx
mov word [esp + 0x47e], cx
call fcn.004cb9fc
add esp, 8
test eax, eax
je 0x42c0d3
lea esi, [eax + 2]
lea edx, [esp + 0x478]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42c0a0
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x270]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c0c0
sub eax, edx
sar eax, 1
mov ebx, eax
jmp 0x42c104
xor eax, eax
jmp 0x42c0e0
movzx ecx, word [esp + eax + 0x270]
mov word [esp + eax + 0x478], cx
add eax, 2
test cx, cx
jne 0x42c0e0
xor ecx, ecx
mov word [esp + 0x270], cx
xor ebx, ebx
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 0x10], edi
mov esi, eax
test esi, esi
je 0x42c161
jmp 0x42c130
mov eax, dword [esp + 0x694]
lea ecx, [esp + 0x270]
push ecx
lea edx, [esp + 0x24]
call fcn.004423b0
add esp, 4
test al, al
je 0x42c161
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x42c130
mov ebp, dword [0x5165ec]
test esi, esi
je 0x42c285
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [ebp + 0x10], eax
mov ecx, dword [ecx + 0x18]
cmp word [ecx], 0x73
jne 0x42c1be
jmp 0x42c190
mov eax, dword [esp + 0x684]
mov ecx, dword [ecx + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
push 2
call fcn.00424e00
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
cmp eax, ecx
je 0x42c190
jmp 0x42c1dc
mov eax, dword [esp + 0x684]
lea edx, [esp + 0x1c]
push edx
push eax
push 3
call fcn.00424e00
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
test eax, eax
je 0x42c212
cmp edi, 6
jne 0x42c3f4
cmp eax, dword [esp + 0x18]
je 0x42c220
mov edx, dword [esp + 0x68c]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret 0x1c
cmp edi, 1
je 0x42c220
cmp edi, 6
jne 0x42c411
mov esi, dword [esp + 0x690]
test esi, esi
je 0x42c23c
lea edi, [esp + 0x14]
call fcn.0042baa0
test al, al
jne 0x42c40d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
je 0x42c271
lea eax, [esp + 0x270]
push eax
mov eax, dword [esp + 0x698]
lea edx, [esp + 0x24]
call fcn.004423b0
add esp, 4
test al, al
jne 0x42c23c
add dword [ebp + 8], 1
adc dword [ebp + 0xc], 0
test edi, edi
jne 0x42c16f
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x42c291
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x698], 0
je 0x42c436
cmp ebx, 0x100
ja 0x42c436
lea esi, [esp + ebx*2 + 0x270]
mov eax, 0x4f0a94
mov edx, esi
sub edx, eax
jmp 0x42c2c0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42c2c0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
je 0x42c436
lea eax, [esp + 0x478]
lea edx, [eax + 2]
jmp 0x42c300
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c300
mov ebp, dword [esp + 0x68c]
sub eax, edx
sar eax, 1
add eax, ebx
mov ebx, dword [esp + 0x688]
mov dword [esp + 0x14], eax
test byte [esp + 0x20], 0x10
je 0x42c3de
cmp word [esp + 0x4c], 0x2e
jne 0x42c356
mov ax, word [esp + 0x4e]
test ax, ax
je 0x42c3de
cmp ax, 0x2e
jne 0x42c356
cmp word [esp + 0x50], 0
je 0x42c3de
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c360
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x14]
cmp eax, 0x102
ja 0x42c3de
lea edx, [esp + 0x478]
push edx
lea eax, [esp + 0x50]
push eax
push 0x4f0a9c
push esi
call fcn.004c9fb7
mov edx, dword [esp + 0x6a8]
mov eax, dword [esp + 0x6a4]
add esp, 0x10
lea ecx, [esp + 0x270]
push ecx
mov ecx, dword [esp + 0x694]
push edx
mov edx, dword [esp + 0x68c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push ebp
push ebx
push edx
call fcn.0042c040
mov edi, eax
cmp edi, 1
jne 0x42c411
cmp byte [ebx], 0
jne 0x42c42b
cmp dword [ebp], 0
jne 0x42c42b
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42c323
jmp 0x42c42f
cmp eax, dword [esp + 0x18]
jne 0x42c1ef
mov ecx, dword [esp + 0x688]
mov byte [ecx], 1
jmp 0x42c1f8
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret 0x1c
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x670
ret 0x1c