Function at 0x411660
Capabilities:
Enumerate files on windows
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x160], eax
movzx eax, word [0x260dd88]
push ebx
push esi
mov esi, dword [0x260de70]
xor ecx, ecx
cmp byte [eax + esi + 0x4b9000], 0xff
lea ebx, [eax + esi + 0x4b9000]
setne cl
push edi
mov dword [esp + 0x1c], ebx
dec ecx
and ecx, 7
add ecx, eax
lea esi, [ecx + esi + 0x4b9000]
call fcn.00405680
movzx edi, word [eax + 0x20c]
movzx edx, word [eax + 0x20a]
mov dword [esp + 0x18], eax
shl edi, 4
add edi, edx
xor eax, eax
cmp byte [ebx], 0xff
mov dword [esp + 0x14], edi
setne al
dec eax
and eax, 7
lea ebx, [eax + edi + 0x4b9000]
call fcn.004064d0
movzx ecx, word [0x4b8be8]
push ecx
mov esi, edi
mov dword [esp + 0x24], eax
call fcn.004057b0
mov esi, eax
mov eax, dword [esi + 0xc]
add esp, 4
mov dword [esp + 0x24], esi
cmp eax, 0xffffffff
je 0x411719
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0xc], 0xffffffff
mov eax, dword [esp + 0x20]
call fcn.004074f0
mov edx, dword [esp + 0x18]
add edx, 0x214
mov dword [esp + 0x18], edx
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x411730
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0xff
jne 0x411749
movzx eax, byte [eax + 6]
jmp 0x41174e
mov eax, 0x20
cmp al, 8
sete byte [esp + 0x13]
mov byte [esi + 8], al
test al, 8
je 0x41177c
mov eax, dword [esp + 0x18]
call fcn.00407550
mov ecx, dword [esp + 0x20]
mov edi, eax
call fcn.00406400
mov edi, dword [esp + 0x14]
test al, al
jne 0x41177c
and byte [esi + 8], 0xf7
cmp byte [esp + 0x13], 0
jne 0x411801
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x411801
jmp 0x4117a0
movzx eax, byte [esi + 8]
mov cl, byte [esp + 0x28]
test al, 8
je 0x4117b1
test cl, 0x10
je 0x4117dd
test al, 2
jne 0x4117ba
test cl, 2
jne 0x4117dd
test al, 4
jne 0x4117c3
test cl, 4
jne 0x4117dd
test al, 0x10
jne 0x4117cc
test cl, 0x10
jne 0x4117dd
lea edi, [esp + 0x28]
call fcn.00407d50
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x411801
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4117a0
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0xc], 0xffffffff
cmp dword [esi + 0xc], 0xffffffff
je 0x4118c7
mov ecx, dword [esp + 0x1c]
cmp byte [ecx], 0xff
jne 0x411836
mov dl, byte [esp + 0x28]
xor eax, eax
mov byte [edi + 0x4b9000], 0xff
mov dword [edi + 0x4b9001], eax
and dl, 0x3f
mov byte [edi + 0x4b9005], al
mov byte [edi + 0x4b9006], dl
call fcn.004839f3
lea ecx, [esp + 0x28]
mov byte [ebx], al
call fcn.00406750
push eax
push ebx
call fcn.00406640
mov al, byte [esp + 0x30]
and al, 0x3f
add esp, 8
lea esi, [esp + 0x28]
mov byte [ebx + 0xc], al
mov byte [ebx + 0xd], 0
call fcn.00407db0
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea ecx, [ebx + 0xf]
push ecx
lea edx, [ebx + 0x11]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [ebx + 0xe], 0
call esi
lea edi, [ebx + 0x17]
push edi
lea ecx, [ebx + 0x13]
push ecx
lea edx, [esp + 0x3c]
push edx
call esi
push edi
lea eax, [ebx + 0x19]
push eax
lea ecx, [esp + 0x44]
push ecx
call esi
mov ecx, dword [esp + 0x48]
xor edx, edx
xor eax, eax
mov word [ebx + 0x1b], dx
mov word [ebx + 0x15], ax
mov dword [ebx + 0x1d], ecx
mov byte [0x260dd80], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00482caa
mov esp, ebp
pop ebp
ret
test byte [esi + 8], 8
je 0x411987
mov edx, dword [esp + 0x1c]
cmp byte [edx], 0xff
jne 0x4118f6
xor eax, eax
mov byte [edi + 0x4b9000], 0xff
mov dword [edi + 0x4b9001], eax
mov byte [edi + 0x4b9005], al
mov byte [edi + 0x4b9006], 8
call fcn.004839f3
mov byte [ebx], al
mov eax, dword [esp + 0x18]
call fcn.00407550
push eax
push ebx
call fcn.00406640
add esp, 8
lea esi, [esp + 0x28]
mov byte [ebx + 0xc], 8
mov byte [ebx + 0xd], 0
call fcn.00407db0
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea eax, [ebx + 0xf]
push eax
lea ecx, [ebx + 0x11]
push ecx
lea edx, [esp + 0x34]
push edx
mov byte [ebx + 0xe], 0
call esi
lea edi, [ebx + 0x17]
push edi
lea eax, [ebx + 0x13]
push eax
lea ecx, [esp + 0x3c]
push ecx
call esi
push edi
lea edx, [ebx + 0x19]
push edx
lea eax, [esp + 0x44]
push eax
call esi
mov eax, dword [esp + 0x24]
xor ecx, ecx
xor edx, edx
mov word [ebx + 0x1b], cx
mov word [ebx + 0x15], dx
mov dword [ebx + 0x1d], ecx
and byte [eax + 8], 0xf7
mov byte [0x260dd80], cl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00482caa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov byte [0x260dd80], 0xff
call fcn.00482caa
mov esp, ebp
pop ebp
ret