Function at 0x40238b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5a8
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x40ec14]
mov dword [ebp - 0x590], eax
push edi
mov edi, ecx
mov dword [ebp - 0x594], edi
test esi, esi
jne 0x4025a2
push 0x119
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
mov dword [0x40ec14], esi
pop ecx
test esi, esi
je 0x4023fa
mov ebx, dword [ebp + 0xc]
imul eax, ebx, 0x10c
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x40240e
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051e0
leave
ret 0xc
mov edi, dword [ebp - 0x590]
lea eax, [ebp - 0x20c]
or dword [esi + 8], 0xffffffff
mov ecx, 0x100
push ecx
push eax
push ecx
lea eax, [ebp - 0x10c]
mov byte [esi + 0x10], 0
push eax
push ecx
lea eax, [ebp - 0x30c]
mov dword [esi + 4], esi
push eax
push 3
lea eax, [ebp - 0x598]
mov dword [esi], esi
push eax
push dword [edi]
call dword [sym.imp.msvcrt.dll__splitpath_s]
lea eax, [ebp - 0x598]
mov esi, 0x106
push eax
mov eax, dword [0x40ec14]
add eax, 0x10
push esi
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
lea eax, [ebp - 0x30c]
push eax
mov eax, dword [0x40ec14]
add eax, 0x10
push esi
push eax
call dword [sym.imp.msvcrt.dll_strcat_s]
mov esi, dword [edi]
add esp, 0x3c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40248a
sub esi, ecx
lea eax, [ebp - 0x10c]
push eax
inc esi
push esi
push dword [edi]
call dword [sym.imp.msvcrt.dll_strcpy_s]
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [edi]
call dword [sym.imp.msvcrt.dll_strcat_s]
xor edi, edi
add esp, 0x18
inc edi
cmp ebx, edi
jle 0x40253c
mov ecx, 0x100
lea eax, [ebp - 0x20c]
push ecx
push eax
push ecx
lea eax, [ebp - 0x10c]
push eax
push ecx
lea eax, [ebp - 0x30c]
push eax
push 3
lea eax, [ebp - 0x598]
push eax
mov eax, dword [ebp - 0x590]
push dword [eax + edi*4]
call dword [sym.imp.msvcrt.dll__splitpath_s]
mov edx, dword [ebp - 0x590]
add esp, 0x24
mov esi, dword [edx + edi*4]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402502
sub esi, ecx
lea eax, [ebp - 0x10c]
push eax
inc esi
push esi
push dword [edx + edi*4]
call dword [sym.imp.msvcrt.dll_strcpy_s]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x590]
push esi
push dword [eax + edi*4]
call dword [sym.imp.msvcrt.dll_strcat_s]
add esp, 0x18
inc edi
cmp edi, ebx
jl 0x4024be
mov esi, dword [0x40ec14]
test ebx, ebx
jle 0x402567
xor ecx, ecx
mov edx, ebx
mov eax, dword [esi + 0xc]
or dword [ecx + eax], 0xffffffff
lea ecx, [ecx + 0x10c]
mov eax, dword [esi + 0xc]
mov byte [ecx + eax - 0x106], 0
sub edx, 1
jne 0x40254a
test esi, esi
je 0x4023fa
mov edi, dword [ebp - 0x594]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x4025a7
push 0x401204
mov ecx, edi
call fcn.004022b1
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileA]
mov esi, dword [0x40ec14]
mov dword [esi + 8], eax
jmp 0x4025c3
mov ebx, dword [ebp + 0xc]
jmp 0x402575
lea ecx, [ebp - 0x44c]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileA]
mov esi, dword [0x40ec14]
test eax, eax
je 0x402807
cmp dword [esi + 8], 0xffffffff
je 0x402807
test byte [ebp - 0x44c], 0x10
je 0x4026c7
cmp dword [ebp + 0x10], 0
je 0x402882
lea ecx, [ebp - 0x420]
cmp byte [ecx], 0x2e
jne 0x4025fb
movzx eax, byte [ecx + 1]
test al, al
je 0x402882
lea edx, [ebp - 0x420]
mov edi, 0x401208
xor ecx, ecx
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x40261c
inc ecx
cmp ecx, 3
jne 0x402608
jmp 0x402882
push 0x119
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x402882
imul eax, ebx, 0x10c
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [edi + 0xc], eax
pop ecx
test eax, eax
jne 0x402653
push edi
call dword [sym.imp.msvcrt.dll_free]
jmp 0x402881
lea eax, [ebp - 0x420]
push eax
lea esi, [edi + 0x10]
push 0x106
push esi
call dword [sym.imp.msvcrt.dll_strcpy_s]
push 0x40120c
push 0x106
push esi
call dword [sym.imp.msvcrt.dll_strcat_s]
mov edx, dword [0x40ec14]
add esp, 0x18
or dword [edi + 8], 0xffffffff
mov eax, dword [edx]
mov dword [edi], eax
mov dword [edi + 4], edx
test ebx, ebx
jle 0x4026b3
xor ecx, ecx
mov esi, ebx
mov eax, dword [edi + 0xc]
or dword [ecx + eax], 0xffffffff
lea ecx, [ecx + 0x10c]
mov eax, dword [edi + 0xc]
mov byte [ecx + eax - 0x106], 0
sub esi, 1
jne 0x402696
mov dword [edx], edi
mov esi, edi
mov eax, dword [edi]
mov dword [0x40ec14], esi
mov dword [eax + 4], edi
jmp 0x402882
mov ecx, dword [esi + 0xc]
mov eax, ebx
mov dword [ebp - 0x5a4], ecx
test ebx, ebx
jle 0x402882
imul edi, ebx, 0x10c
add edi, ecx
mov dword [ebp - 0x5a0], edi
xor ebx, ebx
sub edi, 0x10c
dec eax
mov dword [ebp - 0x59c], eax
cmp dword [edi], ebx
setne bl
cmp dword [edi], 0xffffffff
jne 0x402737
mov ecx, dword [ebp - 0x590]
mov ebx, dword [ebp - 0x594]
push dword [ecx + eax*4]
mov ecx, ebx
call fcn.004022b1
lea eax, [ebp - 0x58c]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileA]
xor ebx, ebx
mov dword [edi], eax
cmp eax, 0xffffffff
mov byte [edi + 4], 0
setne bl
je 0x40277a
jmp 0x402756
cmp byte [edi + 4], 0
je 0x40277a
lea eax, [ebp - 0x58c]
push eax
push dword [edi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileA]
mov ebx, eax
mov byte [edi + 4], 0
test ebx, ebx
je 0x402796
lea eax, [ebp - 0x560]
push eax
push 0x104
lea esi, [edi + 6]
push esi
call dword [sym.imp.msvcrt.dll_strcpy_s]
mov al, byte [ebp - 0x58c]
add esp, 0xc
and al, 0x10
mov byte [esi - 1], al
test ebx, ebx
je 0x402796
lea eax, [edi + 6]
cmp byte [eax - 1], 0
je 0x4027ba
mov eax, dword [ebp - 0x59c]
mov byte [edi + 4], 1
jmp 0x4026fc
cmp dword [edi], 0
je 0x4027ab
cmp dword [edi], 0xffffffff
je 0x4027a8
push dword [edi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
and dword [edi], 0
mov eax, dword [ebp - 0x5a0]
add eax, 0xfffffefa
mov byte [eax - 2], 0
test ebx, ebx
je 0x4027f1
lea ecx, [ebp - 0x420]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4027e4
test dl, dl
je 0x4027e0
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4027e4
add ecx, 2
add eax, 2
test dl, dl
jne 0x4027c4
xor eax, eax
jmp 0x4027e9
sbb eax, eax
or eax, 1
test eax, eax
je 0x402892
mov eax, dword [ebp - 0x59c]
test eax, eax
jg 0x4026e2
mov esi, dword [0x40ec14]
jmp 0x402882
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x40281c
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov esi, dword [0x40ec14]
mov eax, dword [esi + 4]
mov edi, esi
mov esi, eax
mov dword [0x40ec14], esi
cmp eax, edi
je 0x402838
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi]
mov dword [eax + 4], esi
jmp 0x402840
xor esi, esi
mov dword [0x40ec14], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [edi + 0xc]
test eax, eax
jle 0x402872
mov esi, eax
cmp dword [ebx], 0
je 0x40285e
cmp dword [ebx], 0xffffffff
je 0x40285e
push dword [ebx]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
add ebx, 0x10c
sub esi, 1
jne 0x40284c
mov ebx, dword [edi + 0xc]
mov esi, dword [0x40ec14]
push ebx
call dword [sym.imp.msvcrt.dll_free]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
test esi, esi
je 0x4023fa
mov ebx, dword [ebp + 0xc]
jmp 0x40256f
imul eax, dword [ebp - 0x59c], 0x10c
mov edx, dword [ebp - 0x5a4]
mov ecx, dword [ebp - 0x594]
mov byte [eax + edx + 4], 1
lea eax, [ebp - 0x420]
push eax
call fcn.004022b1
xor eax, eax
inc eax
jmp 0x4023fd