Function at 0x438f30
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 0x438f8f
cmp dword [ebp + 0x66c], 2
jne 0x438f8f
mov ecx, dword [ebp + 0x658]
cmp byte [ecx + 1], 0x3a
jne 0x438f8f
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 0x4392c9
inc ecx
push ecx
lea eax, [ebp + 0x348]
push eax
push edx
call fcn.0049b8f0
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 0x439001
nop
mov eax, dword [esp + 0x3c]
mov esi, ebp
call fcn.0044e4e0
test al, al
je 0x438ffd
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
test edi, edi
jne 0x438fe0
mov esi, dword [esp + 0x44]
mov eax, dword [0x4b7a70]
mov dword [esp + 0x20], eax
mov dword [eax + 0x10], ebp
test edi, edi
je 0x43915f
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x14]
cmp byte [ecx], 0x75
jne 0x43904c
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push edx
push 2
call fcn.00431e50
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 0x439021
jmp 0x439067
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
push eax
push 3
call fcn.00431e50
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
test eax, eax
je 0x439093
cmp esi, 6
jne 0x4392d8
cmp eax, dword [esp + 0x10]
je 0x4390a1
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 0x4390a1
cmp esi, 6
jne 0x439300
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4390c0
lea edi, [esp + 0x18]
call fcn.00438750
test al, al
jne 0x4392fc
lea ebx, [ebx]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
test edi, edi
je 0x439147
test byte [ebp], 0x10
je 0x4390f2
cmp dword [esp + 0x3c], 1
je 0x4390c0
cmp byte [ebp + 0x2c], 0x2e
jne 0x4390f9
mov al, byte [ebp + 0x2d]
test al, al
je 0x4390c0
cmp al, 0x2e
jne 0x4390f9
cmp byte [ebp + 0x2e], 0
jmp 0x4390f7
cmp dword [esp + 0x3c], 2
je 0x4390c0
lea eax, [ebp + 0x2c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439100
mov ecx, dword [ebp + 0x674]
sub eax, edx
mov esi, eax
add ecx, esi
cmp ecx, 0x208
jae 0x4390c0
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.0049b8f0
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 0x439015
mov esi, dword [esp + 0x44]
cmp ebx, 0xffffffff
je 0x43916b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x40], 0
je 0x4392c9
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 0x4392c9
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 0x4392aa
cmp byte [ebp + 0x2c], 0x2e
lea esi, [ebp + 0x2c]
jne 0x4391e1
mov al, byte [ebp + 0x2d]
test al, al
je 0x4392aa
cmp al, 0x2e
jne 0x4391e1
cmp byte [ebp + 0x2e], 0
je 0x4392aa
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4391e4
sub esi, ecx
lea ecx, [esi + 1]
cmp ecx, dword [esp + 0x24]
jae 0x4392aa
mov edx, dword [esp + 0x44]
push esi
lea eax, [ebp + 0x2c]
push eax
lea edi, [edx + ebp + 0x140]
push edi
call fcn.0049b8f0
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 0x439235
sub edi, edx
jne 0x439245
lea eax, [ebp + 0x2c]
mov edi, esi
lea edx, [edi + 1]
cmp edx, dword [esp + 0x20]
jae 0x4392aa
push edi
push eax
push ebx
call fcn.0049b8f0
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.00438f30
mov esi, eax
cmp esi, 1
jne 0x439313
cmp byte [edi], 0
jne 0x4392be
mov ecx, dword [esp + 0x34]
cmp dword [ecx], 0
jne 0x4392be
mov edx, dword [esp + 0x18]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4391b5
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 0x43907a
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