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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x1003867c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
mov esi, edx
mov edi, ecx
push eax
mov dword [ebp - 0x878], esi
mov dword [ebp - 0x87c], edi
call fcn.10019070
add esp, 0xc
test ebx, ebx
je 0x1001312c
push 4
push ecx
push 0
mov edx, ebx
mov ecx, edi
call fcn.10012f90
add esp, 0xc
lea edx, [ebp - 0x624]
mov ecx, esi
sub edx, esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10013136
lea ecx, [ebp - 0x624]
add ecx, 0xfffffffe
mov edi, edi
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10013150
mov eax, dword [0x10033b14]
mov dword [ecx], eax
mov ax, word [0x10033b18]
mov word [ecx + 4], ax
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x880], esi
cmp esi, 0xffffffff
je 0x10013535
lea eax, [ebp - 0x874]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10013507
mov ecx, 0x10033b1c
lea eax, [ebp - 0x848]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100131d9
test dx, dx
je 0x100131d5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100131d9
add eax, 4
add ecx, 4
test dx, dx
jne 0x100131b3
xor eax, eax
jmp 0x100131de
sbb eax, eax
or eax, 1
test eax, eax
je 0x10013192
mov ecx, 0x10033b20
lea eax, [ebp - 0x848]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10013216
test dx, dx
je 0x10013212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10013216
add eax, 4
add ecx, 4
test dx, dx
jne 0x100131f0
xor eax, eax
jmp 0x1001321b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10013192
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.10019070
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.10019070
add esp, 0xc
test byte [ebp - 0x874], 0x10
je 0x100133c8
mov edx, ebx
mov esi, ebx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10013270
lea edi, [ebp - 0x214]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10013286
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x214]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100132b0
mov eax, dword [0x1002e47c]
lea edx, [ebp - 0x848]
mov dword [edi], eax
mov esi, edx
jmp 0x100132d0
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100132d0
lea edi, [ebp - 0x214]
sub edx, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x100132e6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x878]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x10013310
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10013310
lea edi, [ebp - 0x41c]
sub edx, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10013326
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x41c]
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10013350
lea edx, [ebp - 0x848]
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10013366
lea edi, [ebp - 0x41c]
sub edx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10013380
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x87c]
push eax
lea edx, [ebp - 0x41c]
call fcn.100130d0
add esp, 4
test eax, eax
je 0x10013535
mov esi, dword [ebp - 0x880]
jmp 0x10013192
lea edx, [ebp - 0x214]
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100133d2
lea edi, [ebp - 0x214]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100133f0
mov eax, dword [0x1002e47c]
lea edx, [ebp - 0x848]
mov dword [edi], eax
mov esi, edx
jmp 0x10013410
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10013410
lea edi, [ebp - 0x214]
sub edx, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10013426
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x878]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x10013450
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10013450
lea edi, [ebp - 0x41c]
sub edx, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10013466
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x41c]
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10013490
lea edx, [ebp - 0x848]
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100134a6
lea edi, [ebp - 0x41c]
sub edx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100134c0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push ecx
mov ecx, dword [ebp - 0x87c]
lea eax, [ebp - 0x41c]
push eax
lea edx, [ebp - 0x214]
call fcn.10012f90
add esp, 0xc
test eax, eax
jne 0x10013535
mov esi, dword [ebp - 0x880]
jmp 0x10013192
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x1001352f
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001520a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1001520a
mov esp, ebp
pop ebp
ret