Function at 0x402c60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42edb0
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x43d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x24]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov edi, dword [ebp + 8]
cmp ecx, 8
mov byte [ebp - 4], 1
cmovae eax, edi
cmp word [eax + 2], 0x3a
jne 0x402d0b
cmp ecx, 8
lea edx, [ebp + 8]
cmovae edx, edi
cmp word [edx], 0
jne 0x402ce6
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404d10
jmp 0x402d6c
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x402cf0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402cf0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404d10
jmp 0x402d6c
lea eax, [ebp - 0x58]
push eax
call fcn.00402f20
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x402d4b
cmp dword [ebp - 0x14], 8
jb 0x402d2e
push dword [ebp - 0x28]
call fcn.00406592
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403860
cmp dword [ebp - 0x44], 8
jb 0x402d5c
push dword [ebp - 0x58]
call fcn.00406592
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404810
push str..Dll
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00401170
add esp, 0xc
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x2ac], ebx
cmp ebx, 0xffffffff
je 0x402ead
nop
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401170
add esp, 0xc
mov edi, eax
mov ecx, dword [esi + 4]
mov byte [ebp - 4], 3
cmp edi, ecx
jae 0x402e05
mov eax, dword [esi]
cmp eax, edi
ja 0x402e05
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ecx, dword [esi + 8]
jne 0x402dfb
push 1
mov ecx, esi
call fcn.00404290
mov eax, dword [esi]
lea ecx, [edi + edi*2]
lea edi, [eax + ecx*8]
jmp 0x402e13
cmp ecx, dword [esi + 8]
jne 0x402e13
push 1
mov ecx, esi
call fcn.00404290
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x402e71
mov dword [ebx + 0x14], 7
xor eax, eax
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp dword [edi + 0x14], 8
jae 0x402e48
mov eax, dword [edi + 0x10]
inc eax
je 0x402e52
add eax, eax
push eax
push edi
push ebx
call fcn.004066e0
add esp, 0xc
jmp 0x402e52
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
add dword [esi + 4], 0x18
cmp dword [ebp - 0x44], 8
mov byte [ebp - 4], 2
jb 0x402e8a
push dword [ebp - 0x58]
call fcn.00406592
add esp, 4
mov ebx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402db0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2c], 8
jb 0x402ebe
push dword [ebp - 0x40]
call fcn.00406592
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], eax
jb 0x402edf
push dword [ebp - 0x28]
call fcn.00406592
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
jb 0x402f00
push dword [ebp + 8]
call fcn.00406592
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407566
mov esp, ebp
pop ebp
ret