Function at 0x402420
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x42338b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push ebx
push ebp
push esi
push edi
mov edi, 0x432ab8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x364]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 0x15
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x364]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42a31c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x368]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x402660
xor ebx, ebx
push ebp
mov ecx, 0x432418
call fcn.00401160
add ebp, 2
cmp ebp, 0x1e
jle 0x4024da
mov ebp, 0x1e
push 5
lea edx, [esp + 0x4c]
push str.setup
push edx
call fcn.00422e00
add esp, 0xc
test eax, eax
je 0x402645
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x43], 0x31
jne 0x402645
or ecx, 0xffffffff
lea edi, [esp + 0x48]
xor eax, eax
lea edx, [esp + 0x15c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x432ab8
mov byte [esp + ecx + 0x43], 0x2a
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x15c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x42a310
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x15c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x260]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x260]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
sub edx, 5
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
lea eax, [esp + 0x260]
mov byte [ecx], bl
push eax
lea ecx, [esp + 0x18]
call fcn.00413e2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], ebx
push ecx
call fcn.00404aa0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0xffffffff
call fcn.00413e8c
lea edx, [esp + 0x260]
lea eax, [esp + 0x15c]
push edx
push eax
call fcn.00402c30
mov esi, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4024c2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x464
ret