Function at 0x4060d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov al, byte [edi]
test al, al
jne 0x406326
cmp dword [edi + 0x2a8], 0
je 0x406587
test al, al
jne 0x406326
mov esi, dword [edi + 0x2a4]
mov eax, dword [edi + 0x298]
add esi, dword [edi + 0x2a8]
xor ebx, ebx
test eax, eax
je 0x40614b
mov eax, dword [eax]
test eax, eax
jne 0x406149
push 3
lea ecx, [esp + 0x1c]
call fcn.0048cc02
lea ecx, [esp + 0x18]
call fcn.0048cc2a
jmp 0x40614b
mov ebx, dword [eax]
dec esi
test ebx, ebx
je 0x406174
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40616e
push 3
lea ecx, [esp + 0x18]
call fcn.0048cc02
lea ecx, [esp + 0x14]
call fcn.0048cc2a
xor eax, eax
jmp 0x40617a
mov ebx, dword [ebx]
test ebx, ebx
jne 0x406178
xor eax, eax
jmp 0x40617a
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
cmp ecx, esi
ja 0x406183
sub esi, ecx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi*4]
push 0xffffffffffffffff
push 0
lea ebx, [edi + 0x258]
push edx
mov ecx, ebx
call fcn.00402710
mov eax, dword [edi + 0x2a8]
test eax, eax
je 0x4061f6
mov ecx, dword [edi + 0x2a4]
lea eax, [eax + ecx - 1]
mov ecx, dword [edi + 0x2a0]
cmp ecx, eax
ja 0x4061bb
sub eax, ecx
mov edx, dword [edi + 0x29c]
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x14], 8
jb 0x4061d5
mov eax, dword [esi]
push eax
call fcn.0046d64b
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
dec dword [edi + 0x2a8]
jne 0x4061f6
mov dword [edi + 0x2a4], ecx
push 0xffffffffffffffff
xor esi, esi
push esi
xor edx, edx
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], esi
mov word [esp + 0x28], dx
call fcn.00402710
cmp dword [edi + 0x28c], esi
jne 0x4062b1
push 1
xor eax, eax
mov ebx, 7
push 0x49b454
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], esi
mov word [esp + 0x40], ax
call fcn.00402ed0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x24]
call fcn.00401a30
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00402710
mov esi, 8
cmp dword [esp + 0x84], esi
jb 0x406283
mov eax, dword [esp + 0x70]
push eax
call fcn.0046d64b
add esp, 4
xor ecx, ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], 0
mov word [esp + 0x70], cx
cmp dword [esp + 0x4c], esi
jb 0x4062ef
mov edx, dword [esp + 0x38]
push edx
call fcn.0046d64b
add esp, 4
jmp 0x4062ef
lea eax, [edi + 0x27c]
push eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x24]
call fcn.00401a30
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00402710
cmp dword [esp + 0x84], 8
jb 0x4062ea
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0046d64b
add esp, 4
mov esi, 8
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x4062fd
lea ecx, [esp + 0x1c]
lea eax, [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi + 0x254], eax
mov byte [edi], 1
cmp dword [esp + 0x30], esi
jb 0x406352
mov edx, dword [esp + 0x1c]
push edx
call fcn.0046d64b
add esp, 4
jmp 0x406352
lea eax, [edi + 4]
push eax
mov eax, dword [edi + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406352
mov ecx, dword [edi + 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
cmp dword [edi + 0x254], 0xffffffff
jne 0x4063fc
xor edx, edx
lea esi, [edi + 0x27c]
lea eax, [esp + 0x1c]
mov byte [edi], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], dx
cmp esi, eax
je 0x4060f6
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x4063a0
mov ecx, dword [esi]
push ecx
call fcn.0046d64b
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
cmp dword [esp + 0x30], ebx
jae 0x4063e3
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0046db60
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x4060f6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x4060f6
xor esi, esi
xor eax, eax
lea ebx, [edi + 0x30]
mov word [esp + 0x38], ax
mov eax, ebx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406420
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x40]
call fcn.00402ed0
push 0xffffffffffffffff
xor ecx, ecx
push esi
lea edx, [esp + 0x40]
mov word [esp + 0x5c], cx
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], esi
call fcn.00402710
cmp dword [esp + 0x4c], 8
jb 0x406472
mov eax, dword [esp + 0x38]
push eax
call fcn.0046d64b
add esp, 4
push edi
lea esi, [esp + 0x58]
call fcn.0040e090
test al, al
je 0x40649d
cmp dword [esp + 0x68], 8
jb 0x4060f6
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0046d64b
add esp, 4
jmp 0x4060f6
xor esi, esi
xor edx, edx
mov eax, ebx
mov word [esp + 0x38], dx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4064b7
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x40]
call fcn.00402ed0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x74]
push ecx
lea ecx, [edi + 0x258]
call fcn.00401a30
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x60]
call fcn.00402710
mov ebx, 8
cmp dword [esp + 0x84], ebx
jb 0x40650e
mov edx, dword [esp + 0x70]
push edx
call fcn.0046d64b
add esp, 4
xor eax, eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], esi
mov word [esp + 0x70], ax
cmp dword [esp + 0x4c], ebx
jb 0x40653a
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0046d64b
add esp, 4
test byte [edi + 4], 0x10
je 0x406562
cmp byte [edi + 0x274], 0
je 0x406559
lea edx, [esp + 0x54]
lea eax, [edi + 0x298]
push edx
call fcn.00407590
test byte [edi + 0x278], 2
jmp 0x406569
test byte [edi + 0x278], 1
jne 0x4065b5
cmp dword [esp + 0x68], ebx
jb 0x4060f6
mov eax, dword [esp + 0x54]
push eax
call fcn.0046d64b
add esp, 4
jmp 0x4060f6
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x10]
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x5c]
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push eax
mov ecx, edi
mov word [edi], dx
call fcn.00402710
cmp dword [esp + 0x68], ebx
jb 0x4065ea
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0046d64b
add esp, 4
mov ecx, dword [esp + 0x8c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 4