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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4277b1
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x436024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
xor ebx, ebx
cmp dword [0x4366c0], ebx
mov dword [ebp - 0x6a0], edi
mov dword [ebp - 0x694], eax
mov dword [ebp - 0x684], esi
mov dword [ebp - 0x698], ecx
jne 0x40dbe2
mov eax, edi
lea edx, [eax + 2]
jmp 0x40d910
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d910
sub eax, edx
sar eax, 1
cmp edi, ebx
mov dword [ebp - 0x69c], eax
je 0x40dbe2
cmp eax, ebx
jbe 0x40dbe2
cmp esi, ebx
je 0x40dbe2
mov eax, edi
lea esi, [ebp - 0x67c]
call fcn.00419060
mov edx, dword [eax]
mov eax, dword [ebp - 0x684]
mov ecx, dword [eax + 4]
push edx
push str._r_n_s_r_n_r_n
push ecx
call dword [sym.imp.MSVCR80.dll_fprintf]
mov eax, dword [ebp - 0x67c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d987
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov ecx, edi
lea edx, [ebp - 0x428]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x40d992
mov ecx, dword [ebp - 0x69c]
cmp word [edi + ecx*2 - 2], 0x5c
je 0x40d9d4
lea edi, [ebp - 0x428]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40d9c0
mov edx, dword [0x42e33c]
mov dword [edi], edx
lea edi, [ebp - 0x428]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40d9e0
mov eax, dword [0x42eb70]
lea ecx, [ebp - 0x678]
push ecx
lea edx, [ebp - 0x428]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x680], eax
jne 0x40da1e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40dbe2
call fcn.0040e630
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x688], ebx
mov byte [ebp - 4], 1
xor eax, eax
cmp eax, ebx
jne 0x40dcbd
cmp dword [0x4366c0], ebx
jne 0x40dcbd
mov esi, dword [ebp - 0x6a0]
mov ecx, esi
lea edx, [ebp - 0x220]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x40da57
mov eax, dword [ebp - 0x69c]
cmp word [esi + eax*2 - 2], 0x5c
je 0x40da94
lea edi, [ebp - 0x220]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40da80
mov ecx, dword [0x42e33c]
mov dword [edi], ecx
lea eax, [ebp - 0x64c]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40daa0
lea edi, [ebp - 0x220]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40dab6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x678]
shr esi, 4
and esi, 1
je 0x40db7f
mov ecx, 0x42e4c0
lea eax, [ebp - 0x64c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40db16
cmp dx, bx
je 0x40db12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40db16
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40daf0
xor eax, eax
jmp 0x40db1b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40db5f
mov ecx, 0x42e4c4
lea eax, [ebp - 0x64c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40db56
cmp dx, bx
je 0x40db52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40db56
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40db30
xor eax, eax
jmp 0x40db5b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40db7f
mov eax, dword [ebp - 0x680]
lea edx, [ebp - 0x678]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
neg eax
sbb eax, eax
add eax, 1
jmp 0x40da35
mov eax, dword [ebp - 0x694]
cmp eax, ebx
je 0x40dbfe
cmp dword [ebp + 0x10], esi
je 0x40dbfe
mov ecx, dword [ebp - 0x684]
mov edx, dword [ebp - 0x660]
push ecx
mov ecx, dword [ebp - 0x664]
push edx
push ecx
lea edx, [ebp - 0x64c]
push edx
lea ecx, [ebp - 0x220]
push ecx
call eax
cmp eax, ebx
jne 0x40dbfe
mov edx, dword [ebp - 0x680]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ebx, [ebp - 0x690]
call fcn.00406e90
mov eax, dword [ebp - 0x68c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042575e
mov esp, ebp
pop ebp
ret
cmp esi, ebx
je 0x40dc9d
cmp dword [ebp + 0xc], ebx
je 0x40dc9d
mov esi, dword [ebp - 0x698]
mov eax, esi
call fcn.00406570
test al, al
jne 0x40dc33
push esi
lea ecx, [ebp - 0x220]
call fcn.0040d650
add esp, 4
cmp eax, ebx
jne 0x40dc9d
lea ecx, [ebp - 0x67c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00405e20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
lea edx, [ebp - 0x67c]
push edx
push ecx
push eax
call fcn.0040e650
lea ecx, [ebp - 0x690]
mov esi, eax
call fcn.00407c50
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x67c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dc9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x680]
lea ecx, [ebp - 0x678]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
neg eax
sbb eax, eax
add eax, 1
jmp 0x40da35
mov eax, dword [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x68c]
mov ebx, dword [eax]
mov dword [ebp - 0x6a0], eax
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea esi, [ebp - 0x690]
test esi, esi
je 0x40dcee
mov eax, esi
cmp esi, eax
je 0x40dcf0
call edi
cmp ebx, dword [ebp - 0x6a0]
je 0x40de31
test esi, esi
jne 0x40dd02
call edi
cmp ebx, dword [esi + 4]
jne 0x40dd09
call edi
mov esi, dword [ebx + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40dd33
cmp eax, dword [esi]
jne 0x40dd33
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40dd70
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40dd4c
jmp fcn.00401770
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x67c], esi
mov byte [ebp - 4], 3
cmp dword [esi - 4], 1
jle 0x40dd99
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [ebp - 0x67c]
push edx
call fcn.00401780
mov esi, dword [ebp - 0x67c]
mov eax, dword [ebp - 0x698]
mov ecx, dword [ebp - 0x684]
mov edx, dword [ebp - 0x694]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push esi
call fcn.0040d8a0
add esp, 0x18
test esi, esi
jne 0x40ddc7
xor eax, eax
jmp 0x40dde1
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ddd0
sub eax, edx
sar eax, 1
js 0x40de27
cmp eax, dword [esi - 8]
jg 0x40de27
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40de0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x690]
cmp ebx, dword [eax + 4]
jne 0x40de20
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
jmp 0x40dcd8
push 0x80070057
call fcn.004018a0
lea ebx, [ebp - 0x690]
call fcn.00406e90
mov ecx, dword [ebp - 0x68c]
push ecx
jmp 0x40dbda