Function at 0x42b570
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 + 0x28], ecx
call fcn.00488d24
add esp, 0xc
lea edx, [esp + 0x270]
xor ecx, ecx
push 0x5c
push edx
mov word [esp + 0x47e], cx
call fcn.00487df0
add esp, 8
test eax, eax
je 0x42b607
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 0x42b5d0
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 0x42b5f0
sub eax, edx
sar eax, 1
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x42b638
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x270]
mov word [esp + eax + 0x478], cx
add eax, 2
test cx, cx
jne 0x42b610
xor ecx, ecx
mov word [esp + 0x270], cx
mov dword [esp + 0x10], ecx
mov ebx, ecx
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 0x14], edi
mov esi, eax
test esi, esi
je 0x42b68d
mov edi, edi
mov eax, dword [esp + 0x694]
lea ecx, [esp + 0x270]
push ecx
lea edx, [esp + 0x24]
call fcn.00440340
add esp, 4
test al, al
je 0x42b68d
lea edx, [esp + 0x20]
push edx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x42b660
mov ebp, dword [0x4bd41c]
mov ebx, dword [esp + 0x684]
test esi, esi
je 0x42b8a6
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
mov dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x6e
jne 0x42b6d4
mov ecx, dword [ecx + 0x14]
lea edx, [esp + 0x18]
push edx
push ebx
push 2
call fcn.004253a0
mov ecx, dword [edi + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x42b6b5
jmp 0x42b6e7
lea eax, [esp + 0x18]
push eax
push ebx
push 3
call fcn.004253a0
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42b71b
cmp esi, 6
jne 0x42ba32
cmp eax, edi
je 0x42b725
mov ecx, dword [esp + 0x68c]
mov dword [ecx], eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret 0x1c
cmp esi, 1
je 0x42b725
cmp esi, 6
jne 0x42b796
cmp dword [esp + 0x690], 0
je 0x42b7d7
mov ecx, dword [esp + 0x690]
push 0
push 0xffffffffffffffff
push 0
push ecx
call fcn.00455000
mov esi, eax
cmp esi, 1
jne 0x42b796
mov eax, dword [0x4c0dc8]
movzx ecx, word [eax]
mov edi, eax
cmp ecx, 0x30
ja 0x42b796
test ecx, ecx
je 0x42b7d7
cmp ecx, 0x30
jne 0x42b76c
cmp word [eax + 2], 0
je 0x42b7d7
push 0
push 1
push 0
push 1
call fcn.0046b180
add esp, 0x10
dec eax
je 0x42b7b0
dec eax
jne 0x42b796
push edi
call fcn.00487dd2
fldz
fucompp
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x42b7d7
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret 0x1c
mov eax, edi
call fcn.0040c9b0
test al, al
je 0x42b7ca
push 0x10
push 0
push edi
call fcn.00487cf3
add esp, 0xc
jmp 0x42b7d3
push edi
call fcn.004875d1
add esp, 4
or eax, edx
jne 0x42b796
mov esi, dword [esp + 0x14]
jmp 0x42b7e0
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
je 0x42b896
test byte [esp + 0x20], 0x10
je 0x42b827
cmp dword [esp + 0x694], 1
je 0x42b7e0
cmp word [esp + 0x4c], 0x2e
jne 0x42b831
mov ax, word [esp + 0x4e]
test ax, ax
je 0x42b7e0
cmp ax, 0x2e
jne 0x42b831
cmp word [esp + 0x50], 0
jmp 0x42b82f
cmp dword [esp + 0x694], 3
je 0x42b7e0
cmp word [esp + 0x270], 0
je 0x42b896
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b843
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea edx, [eax + ecx]
cmp edx, 0x104
jae 0x42b7e0
mov esi, ecx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x50]
add esi, esi
push ecx
lea edx, [esp + esi + 0x54]
push edx
call fcn.00486da0
add esp, 0xc
push esi
lea eax, [esp + 0x274]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00489760
add esp, 0xc
add dword [ebp + 8], 1
adc dword [ebp + 0xc], 0
test edi, edi
jne 0x42b6a2
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42b8b6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x698], 0
je 0x42ba20
mov eax, dword [esp + 0x10]
cmp eax, 0x100
ja 0x42ba20
lea ebp, [esp + eax*2 + 0x270]
mov eax, 0x4a26b4
mov edx, ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42b8e3
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x42ba20
lea eax, [esp + 0x478]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b920
mov edi, dword [esp + 0x68c]
mov ebx, dword [esp + 0x688]
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
test byte [esp + 0x20], 0x10
je 0x42ba01
cmp word [esp + 0x4c], 0x2e
jne 0x42b978
mov ax, word [esp + 0x4e]
test ax, ax
je 0x42ba01
cmp ax, 0x2e
jne 0x42b978
cmp word [esp + 0x50], 0
je 0x42ba01
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b980
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x10]
cmp eax, 0x102
ja 0x42ba01
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0x49f3dc
push ebp
call fcn.00486743
mov eax, dword [esp + 0x6a8]
mov ecx, dword [esp + 0x6a4]
add esp, 0x10
lea edx, [esp + 0x270]
push edx
mov edx, dword [esp + 0x694]
push eax
mov eax, dword [esp + 0x68c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push edi
push ebx
push eax
call fcn.0042b570
mov esi, eax
cmp esi, 1
jne 0x42b701
cmp byte [ebx], 0
jne 0x42ba15
cmp dword [edi], 0
jne 0x42ba15
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42b945
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x670
ret 0x1c
cmp eax, edi
jne 0x42b6f8
mov edx, dword [esp + 0x688]
mov byte [edx], 1
jmp 0x42b701