Function at 0x401fe0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x358
push ebx
mov ebx, dword [esp + 0x360]
test ebx, ebx
push esi
mov esi, eax
mov dword [esp + 8], 0
je 0x402286
cmp byte [ebx], 0
je 0x402286
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402010
sub eax, edx
push edi
mov edi, eax
mov eax, esi
mov dword [esp + 0x10], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402025
sub eax, edx
lea eax, [eax + edi + 1]
cmp eax, 0x104
jb 0x402066
mov edi, dword [esp + 0x378]
test edi, edi
je 0x40205a
push esi
push ebx
push str.Search_directory_exceeded_MAX_PATH___Ignoring__s_s._n
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x358
ret
lea edx, [esp + 0x14]
mov eax, ebx
sub edx, ebx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402070
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402081
sub eax, edx
cmp byte [esp + eax + 0x13], 0x5c
je 0x4020a8
lea edi, [esp + 0x14]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402096
mov cx, word [0x469b10]
mov word [edi], cx
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x14]
mov byte [esp + eax + 0x25c], cl
inc eax
test cl, cl
jne 0x4020b0
mov eax, esi
mov edx, esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020c4
lea edi, [esp + 0x25c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4020d5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebp
mov ecx, eax
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x264]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402257
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov bl, 0x10
jmp 0x402120
test byte [esp + 0x120], bl
jne 0x40223d
mov al, byte [esp + 0x14c]
test al, al
je 0x40223d
lea eax, [esp + 0x14c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402146
mov ecx, dword [esp + 0x14]
sub eax, edx
lea edx, [eax + ecx + 1]
cmp edx, 0x104
jge 0x40220e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x370]
mov edi, dword [esp + 0x374]
mov eax, dword [edi]
inc edx
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
add edx, dword [esp + 0x10]
cmp edx, eax
jle 0x4021cd
add eax, 0x64
mov dword [edi], eax
imul eax, eax, 0x104
push eax
mov eax, dword [esp + 0x37c]
mov ecx, dword [eax]
push ecx
call fcn.00459a66
mov edx, eax
mov eax, dword [esp + 0x380]
add esp, 8
test edx, edx
mov dword [eax], edx
je 0x402266
mov edi, dword [edi]
sub edi, 0x64
imul edi, edi, 0x104
xor eax, eax
mov ecx, 0x1964
add edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x370]
lea ecx, [esp + 0x14c]
push ecx
mov ecx, dword [eax]
imul ecx, ecx, 0x104
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x380]
add ecx, dword [edx]
push 0x4697b0
push ecx
call fcn.00458ee7
mov eax, dword [esp + 0x380]
mov ecx, dword [eax]
add esp, 0x10
inc ecx
mov dword [eax], ecx
jmp 0x40223d
mov edi, dword [esp + 0x37c]
test edi, edi
je 0x40223d
mov ecx, dword [esp + 0x36c]
lea eax, [esp + 0x14c]
push eax
push ecx
push str.Filename_exceeded_MAX_PATH___Ignoring__s_s._n
push edi
call fcn.0045917e
push edi
call fcn.00459d78
add esp, 0x14
lea edx, [esp + 0x120]
push edx
push esi
call ebp
test eax, eax
jne 0x402120
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x358
ret
mov eax, dword [esp + 0x370]
pop ebp
mov dword [eax], 0
mov dword [edi], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x358
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x358
ret