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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6fa9
mov eax, dword fs:[0]
push eax
sub esp, 0x5cc
mov eax, dword [0x524250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x490], ecx
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x478], edi
jle 0x413fb3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00490690
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebx]
push eax
call esi
push 0x4f63b0
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x474], eax
cmp eax, 0xffffffff
je 0x413ed2
test eax, eax
je 0x413ed2
or ebx, 0xffffffff
mov esi, eax
nop
cmp word [ebp - 0x43c], 0x2e
mov ax, word [ebp - 0x43a]
jne 0x413bca
test ax, ax
je 0x413eb0
cmp ax, 0x2e
jne 0x413bde
cmp word [ebp - 0x438], 0
je 0x413eb0
push 0x4f5d74
push dword [ebp - 0x488]
lea eax, [ebp - 0x48c]
push eax
call fcn.00413320
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.00413320
add esp, 0x18
mov edx, dword [ebp - 0x48c]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413c34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x468], 0x10
je 0x413c90
mov ecx, dword [ebp + 0x14]
test cl, cl
je 0x413c63
mov eax, dword [ebp + 0x18]
dec eax
push eax
push ecx
mov ecx, dword [ebp - 0x490]
lea eax, [ebp - 0x470]
push edi
push eax
push dword [ebp - 0x47c]
call fcn.00413af0
mov edx, dword [ebp - 0x470]
mov eax, ebx
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413eb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413eb0
mov ecx, dword [edi]
lea eax, [ebp - 0x43c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413cbe
test dx, dx
je 0x413cba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413cbe
add eax, 4
add ecx, 4
test dx, dx
jne 0x413c98
xor eax, eax
jmp 0x413cc3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x413da1
lea eax, [ebp - 0x498]
push eax
call fcn.00422ac0
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x494]
mov byte [ebp - 0x469], al
mov byte [ebp - 4], 5
test esi, esi
je 0x413d20
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x413d20
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x413d1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x469]
test al, al
je 0x413e86
lea eax, [ebp - 0x4a0]
push eax
call fcn.00422ac0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x540]
mov byte [ebp - 4], 7
call fcn.0040ca20
mov edi, eax
push str.RepeatFile:
push edi
mov byte [ebp - 4], 8
call fcn.0040cfe0
mov edx, dword [ebp - 0x478]
mov esi, 0x4f5800
mov edx, dword [edx]
test edx, edx
cmovne esi, edx
push esi
push edi
call fcn.00402690
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x540]
call fcn.00404370
lea ecx, [ebp - 0x4a0]
call fcn.00403e20
mov edi, dword [ebp - 0x478]
or ebx, 0xffffffff
jmp 0x413e86
lea eax, [ebp - 0x484]
push eax
call fcn.00422ac0
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x480]
mov byte [ebp - 0x469], al
mov byte [ebp - 4], 5
test esi, esi
je 0x413df6
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x413df6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x413df0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x469]
test al, al
je 0x413e74
lea eax, [ebp - 0x4a8]
push eax
call fcn.00422ac0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x5d8]
mov byte [ebp - 4], 0xa
call fcn.0040ca20
mov edi, eax
push str.AddFile:
push edi
mov byte [ebp - 4], 0xb
call fcn.0040cfe0
mov edx, dword [ebp - 0x470]
mov esi, 0x4f5800
test edx, edx
cmovne esi, edx
push esi
push edi
call fcn.00402690
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x5d8]
call fcn.00404370
lea ecx, [ebp - 0x4a8]
mov byte [ebp - 4], 5
call fcn.00403e20
mov edi, dword [ebp - 0x478]
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x47c]
lea eax, [ebp - 0x470]
push eax
call fcn.00423ac0
mov edx, dword [ebp - 0x470]
mov eax, ebx
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413eaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x474]
lea eax, [ebp - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x413bb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x413fb3
lea eax, [ebp - 0x484]
push eax
call fcn.00422ac0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, dword [ebp - 0x480]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x413f26
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x413f26
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x413f26
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, bl
je 0x413fb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x484]
push eax
call fcn.00422ac0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x540]
mov dword [ebp - 4], 1
call fcn.0040ca20
mov esi, eax
push str.FindFirstFile_failed__error_code_
push esi
mov byte [ebp - 4], 2
call fcn.0040cfe0
add esp, 8
mov ecx, esi
push ebx
call fcn.0040cd40
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x540]
call fcn.00404370
mov esi, dword [ebp - 0x480]
test esi, esi
je 0x413fb3
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x413fb3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x413fb3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045568a
mov esp, ebp
pop ebp
ret 0x14