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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa84], ecx
mov dword [ebp - 0xa78], esi
test esi, esi
je 0x407b6a
cmp word [esi], 0
je 0x407b6a
lea eax, [ebp - 0xa7c]
push eax
push 0x52ee8c
push 1
push 0
push 0x52ef10
mov dword [ebp - 0xa7c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407b6a
mov eax, dword [ebp - 0xa7c]
lea edx, [ebp - 0xa80]
push edx
mov dword [ebp - 0xa80], 0
mov ecx, dword [eax]
push 0x52ef00
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x407b5c
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61a]
push edx
mov word [ebp - 0x61c], cx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x61c]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4077a5
lea eax, [ebp - 0x61c]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4077c0
mov ecx, dword [0x4c7784]
mov edx, dword [0x4c7788]
mov dword [eax], ecx
mov cx, word [0x4c778c]
mov dword [eax + 4], edx
lea edx, [ebp - 0xa74]
mov word [eax + 8], cx
push edx
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa88], eax
cmp eax, 0xffffffff
je 0x407b4e
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push 0x1f4
call fcn.0043baf0
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407850
sub eax, edx
sar eax, 1
mov dword [ebp - 0xa8c], eax
push edi
jmp 0x407870
mov ecx, 0x4c7bb8
lea eax, [ebp - 0xa48]
jmp 0x407880
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4078a6
test dx, dx
je 0x4078a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4078a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407880
xor eax, eax
jmp 0x4078ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407b2a
mov ecx, 0x4c7bb0
lea eax, [ebp - 0xa48]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4078e6
test dx, dx
je 0x4078e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4078e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4078c0
xor eax, eax
jmp 0x4078eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407b2a
test byte [ebp - 0xa74], 0x10
je 0x4079bb
cmp byte [ebp + 0xc], 0
je 0x4079bb
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x20c]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407932
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407950
mov eax, dword [0x4c7780]
mov dword [edi], eax
lea eax, [ebp - 0xa48]
mov edx, eax
jmp 0x407970
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407970
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x407986
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]
push 1
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0xa84]
call fcn.004076f0
jmp 0x407b24
lea eax, [ebp - 0xa48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4079c4
sub eax, edx
sar eax, 1
cmp eax, 4
jbe 0x407b2a
lea edx, [ebp + eax*2 - 0xa50]
push 0x4c7ba4
push edx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x407b2a
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x20c]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407a20
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
jmp 0x407a40
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407a40
mov edx, dword [0x4c7780]
lea eax, [ebp - 0xa48]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407a60
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x407a76
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xa80]
and ecx, 3
push 0
lea edx, [ebp - 0x20c]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
js 0x407b24
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x822]
push edx
mov word [ebp - 0x824], cx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0xa7c]
mov ecx, dword [eax]
add esp, 0xc
push 2
push 0
push 0x104
lea edx, [ebp - 0x824]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp - 0xa8c]
push ecx
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x407b24
mov edx, dword [ebp - 0xa78]
lea ecx, [ebp - 0xa48]
push ecx
mov ecx, dword [ebp - 0xa84]
push edx
call fcn.004075b0
mov esi, dword [ebp - 0xa78]
mov edi, dword [ebp - 0xa88]
lea eax, [ebp - 0xa74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407870
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, dword [ebp - 0xa80]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xa7c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 8