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

Disassembly:
mov eax, 0x4258
call fcn.1000e3d0
push ebx
push ebp
push esi
mov ebp, ecx
mov ebx, dword [esp + 0x426c]
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], 0
rep stosd dword es:[edi], eax
test ebx, ebx
mov dword [esp + 0x10], ebp
stosw word es:[edi], ax
je 0x100036ea
push 0
mov ecx, ebp
call fcn.1000cf20
test eax, eax
je 0x100036ea
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4258
ret 8
mov eax, dword [esp + 0x426c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x268]
push eax
push ecx
call esi
lea edx, [ebp + 0x4038]
lea eax, [esp + 0x268]
push edx
push eax
call esi
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x268]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x100038c8
cmp word [esp + 0x44], 0x2e
jne 0x1000376c
mov ax, word [esp + 0x46]
cmp ax, 0x2e
jne 0x10003763
cmp word [esp + 0x48], 0
je 0x1000388d
jmp 0x1000376c
test ax, ax
je 0x1000388d
lea esi, [ebp + 0x1c]
mov ecx, esi
call fcn.10002110
cmp eax, 0x40000
jb 0x100037af
mov ecx, esi
call fcn.10002110
push eax
mov ecx, esi
call fcn.10001f70
mov ecx, dword [ebp + 0x6040]
push eax
call fcn.1000e330
test eax, eax
je 0x100038a2
mov ecx, ebp
call fcn.100035e0
test eax, eax
je 0x100038a2
push 0
push 0x4013
mov ecx, esi
call fcn.10001fd0
mov ebp, eax
test ebp, ebp
je 0x100038a2
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
xor eax, eax
xor esi, esi
or eax, edx
or ecx, esi
mov dword [ebp + 2], eax
mov dword [ebp + 6], ecx
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0xa], eax
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0xe], ecx
mov bl, byte [esp + 0x18]
test bl, 0x10
setne dl
lea eax, [esp + 0x44]
inc edx
push eax
mov byte [ebp + 0x12], dl
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, eax
add esp, 4
inc ebx
lea esi, [esp + 0x44]
lea edi, [ebp + 0x13]
lea edx, [ebx + ebx]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x4270]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x10003858
mov esi, dword [esp + 0x426c]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
inc eax
lea edi, [ebp + ebx*2 + 0x13]
lea ecx, [eax + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10003869
lea ecx, [edx + ebp + 0x13]
mov edx, dword [0x10014394]
mov eax, 2
mov dword [ecx], edx
add eax, ebx
lea eax, [eax + eax + 0x13]
mov word [ebp], ax
and eax, 0xffff
push eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x1c]
call fcn.100020a0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x100038b8
jmp 0x10003742
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4258
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x4270]
jmp 0x100038ed
test ebx, ebx
je 0x100038a9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x100038eb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4258
ret 8
call esi
test ebx, ebx
je 0x100039c2
mov edx, dword [esp + 0x426c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edx
lea eax, [esp + 0x26c]
push 0x1001438c
push eax
call ebx
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x268]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100039c2
cmp word [esp + 0x44], 0x2e
jne 0x10003962
mov ax, word [esp + 0x46]
cmp ax, 0x2e
jne 0x1000395d
cmp word [esp + 0x48], 0
je 0x100039a3
jmp 0x10003962
test ax, ax
je 0x100039a3
test byte [esp + 0x18], 0x10
je 0x100039a3
mov ecx, dword [esp + 0x426c]
lea eax, [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x270]
push str._s_s_
push edx
call ebx
mov eax, dword [esp + 0x4280]
add esp, 0x10
lea ecx, [esp + 0x268]
push eax
push ecx
mov ecx, ebp
call fcn.10003690
test eax, eax
je 0x100039b5
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x100039bb
jmp 0x10003940
push esi
jmp 0x100038a3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4258
ret 8