Function at 0x401cc0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x40d54
call fcn.0040b8d0
mov eax, dword [esp + 0x40d58]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
je 0x401cfa
lea edx, [esp + 0xd64]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401cf0
lea eax, [esp + 0xd64]
mov ebx, eax
mov dword [esp + 0x10], eax
neg ebx
lea esp, [esp]
mov eax, dword [esp + 0x10]
lea edx, [esp + ebx + 0x964]
jmp 0x401d20
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401d20
lea edi, [esp + 0x964]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401d32
mov cx, word [0x41924c]
mov word [edi], cx
lea edi, [esp + 0x964]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401d50
mov edx, dword [0x4192f4]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x968]
push ecx
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x401ff9
shl esi, 0xa
mov ebp, esi
lea edx, [esp + 0x164]
sub ebp, edx
lea ebp, [esp + ebp + 0xd64]
mov edx, dword [esp + 0x24]
shr edx, 4
and edx, 1
xor eax, eax
mov cl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x564], cl
inc eax
test cl, cl
jne 0x401da1
test edx, edx
mov esi, dword [0x421044]
lea eax, [esp + 0x564]
je 0x401ed7
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401dea
test cl, cl
je 0x401de6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401dea
add eax, 2
add esi, 2
test cl, cl
jne 0x401dc6
xor eax, eax
jmp 0x401def
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fd2
mov esi, dword [0x421040]
lea eax, [esp + 0x564]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401e28
test cl, cl
je 0x401e24
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401e28
add eax, 2
add esi, 2
test cl, cl
jne 0x401e04
xor eax, eax
jmp 0x401e2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fd2
mov eax, dword [esp + 0x10]
lea edx, [esp + ebx + 0x164]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401e40
lea eax, [esp + 0x164]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e54
sub eax, edx
cmp byte [esp + eax + 0x163], 0x5c
je 0x401e81
lea edi, [esp + 0x164]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401e70
mov ax, word [0x41924c]
mov word [edi], ax
lea eax, [esp + 0x564]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e90
lea edi, [esp + 0x164]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401ea1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [esp + 0x14]
add ebp, 0x400
lea eax, [esp + 0x164]
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x401ec8
jmp 0x401fd2
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401efb
test cl, cl
je 0x401ef7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401efb
add eax, 2
add esi, 2
test cl, cl
jne 0x401ed7
xor eax, eax
jmp 0x401f00
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fd2
mov esi, dword [0x421040]
lea eax, [esp + 0x564]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401f39
test cl, cl
je 0x401f35
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401f39
add eax, 2
add esi, 2
test cl, cl
jne 0x401f15
xor eax, eax
jmp 0x401f3e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fd2
mov eax, dword [esp + 0x10]
lea edx, [esp + ebx + 0x164]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401f51
lea eax, [esp + 0x164]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f65
sub eax, edx
cmp byte [esp + eax + 0x163], 0x5c
je 0x401f91
lea edi, [esp + 0x164]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401f80
mov ax, word [0x41924c]
mov word [edi], ax
lea eax, [esp + 0x564]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401fa0
lea edi, [esp + 0x164]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401fb1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401d95
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
inc eax
add edi, 0x400
lea ecx, [esi + 1]
sub ebx, 0x400
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
jl 0x401d10
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40d54
ret