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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
cmp dword [ebp + 0x664], 0
mov eax, dword [ebp + 0x668]
push esi
mov esi, dword [ebp + 0x660]
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], eax
mov dword [ebp + 0x674], esi
jne 0x438f3f
cmp dword [ebp + 0x66c], 2
jne 0x438f3f
mov ecx, dword [ebp + 0x658]
cmp byte [ecx + 1], 0x3a
jne 0x438f3f
mov word [ebp + 0x348], 0x2e
mov dword [ebp + 0x664], 1
mov byte [esp + 0x40], 0
mov ecx, dword [ebp + 0x664]
mov eax, 0x208
sub eax, esi
lea edx, [esi + ebp + 0x140]
mov dword [esp + 0x24], eax
cmp ecx, eax
jae 0x439279
inc ecx
push ecx
lea eax, [ebp + 0x348]
push eax
push edx
call fcn.0049b620
add esp, 0xc
lea eax, [ebp + 0x140]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov ebx, eax
cmp ebx, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
je 0x438fb1
nop
mov eax, dword [esp + 0x3c]
mov esi, ebp
call fcn.0044e4a0
test al, al
je 0x438fad
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
test edi, edi
jne 0x438f90
mov esi, dword [esp + 0x44]
mov eax, dword [0x4b7a70]
mov dword [esp + 0x20], eax
mov dword [eax + 0x10], ebp
test edi, edi
je 0x43910f
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x14]
cmp byte [ecx], 0x75
jne 0x438ffc
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push edx
push 2
call fcn.00431e00
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
cmp eax, ecx
je 0x438fd1
jmp 0x439017
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
push eax
push 3
call fcn.00431e00
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
test eax, eax
je 0x439043
cmp esi, 6
jne 0x439288
cmp eax, dword [esp + 0x10]
je 0x439051
mov edx, dword [esp + 0x34]
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
cmp esi, 1
je 0x439051
cmp esi, 6
jne 0x4392b0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x439070
lea edi, [esp + 0x18]
call fcn.00438700
test al, al
jne 0x4392ac
lea ebx, [ebx]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
test edi, edi
je 0x4390f7
test byte [ebp], 0x10
je 0x4390a2
cmp dword [esp + 0x3c], 1
je 0x439070
cmp byte [ebp + 0x2c], 0x2e
jne 0x4390a9
mov al, byte [ebp + 0x2d]
test al, al
je 0x439070
cmp al, 0x2e
jne 0x4390a9
cmp byte [ebp + 0x2e], 0
jmp 0x4390a7
cmp dword [esp + 0x3c], 2
je 0x439070
lea eax, [ebp + 0x2c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4390b0
mov ecx, dword [ebp + 0x674]
sub eax, edx
mov esi, eax
add ecx, esi
cmp ecx, 0x208
jae 0x439070
mov ecx, dword [ebp + 0x674]
lea edx, [esi + 1]
push edx
lea eax, [ebp + 0x2c]
push eax
lea edx, [ecx + ebp + 0x140]
push edx
call fcn.0049b620
mov eax, dword [ebp + 0x674]
add esp, 0xc
add eax, esi
mov dword [ebp + 0x660], eax
mov eax, dword [esp + 0x20]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
test edi, edi
jne 0x438fc5
mov esi, dword [esp + 0x44]
cmp ebx, 0xffffffff
je 0x43911b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x40], 0
je 0x439279
lea eax, [esi + ebp + 0x140]
mov word [eax], 0x2a
push ebp
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x439279
mov eax, dword [esp + 0x1c]
lea ebx, [eax + ebp + 0x44c]
mov eax, 0x208
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
test byte [ebp], 0x10
je 0x43925a
cmp byte [ebp + 0x2c], 0x2e
lea esi, [ebp + 0x2c]
jne 0x439191
mov al, byte [ebp + 0x2d]
test al, al
je 0x43925a
cmp al, 0x2e
jne 0x439191
cmp byte [ebp + 0x2e], 0
je 0x43925a
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x439194
sub esi, ecx
lea ecx, [esi + 1]
cmp ecx, dword [esp + 0x24]
jae 0x43925a
mov edx, dword [esp + 0x44]
push esi
lea eax, [ebp + 0x2c]
push eax
lea edi, [edx + ebp + 0x140]
push edi
call fcn.0049b620
mov eax, dword [esp + 0x50]
lea ecx, [esi + eax + 1]
mov byte [esi + edi], 0x5c
mov byte [edi + esi + 1], 0
lea eax, [ebp + 0x130]
mov edi, eax
add esp, 0xc
mov dword [ebp + 0x660], ecx
lea edx, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x4391e5
sub edi, edx
jne 0x4391f5
lea eax, [ebp + 0x2c]
mov edi, esi
lea edx, [edi + 1]
cmp edx, dword [esp + 0x20]
jae 0x43925a
push edi
push eax
push ebx
call fcn.0049b620
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
add esp, 0xc
push ebp
lea ecx, [edi + eax + 1]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x38]
mov word [edi + ebx], 0x5c
mov edi, dword [esp + 0x3c]
mov dword [ebp + 0x668], ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push edi
push eax
call fcn.00438ee0
mov esi, eax
cmp esi, 1
jne 0x4392c3
cmp byte [edi], 0
jne 0x43926e
mov ecx, dword [esp + 0x34]
cmp dword [ecx], 0
jne 0x43926e
mov edx, dword [esp + 0x18]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x439165
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
cmp eax, dword [esp + 0x10]
jne 0x43902a
mov ecx, dword [esp + 0x30]
push ebx
mov byte [ecx], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
mov esi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c