Function at 0x410438
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x410852
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 1
push 0
mov eax, dword [edi + 0xc8]
xor ecx, ecx
mov edx, 0x184
call fcn.00408de8
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_DragQueryPoint
mov eax, dword [0x42bb98]
cmp eax, 2
jne 0x4104b6
cmp dword [ebp - 0x28], 0x129
setge al
neg al
sbb eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4104cb
imul eax, eax, 0x129
shr eax, 1
cmp eax, dword [ebp - 0x28]
setle al
neg al
sbb eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_DragQueryFileA
mov esi, eax
test esi, esi
je 0x4104f9
cmp dword [ebp - 0x10], 0
je 0x410507
cmp esi, 1
jne 0x410507
cmp dword [0x42bb94], 0
je 0x410507
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_DragFinish
jmp 0x410834
mov eax, dword [0x43befc]
cmp esi, eax
jl 0x410512
mov esi, eax
mov eax, 0x400
call fcn.004024ec
mov ebx, eax
mov eax, esi
dec eax
test eax, eax
jl 0x41081d
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
push 0x400
push ebx
call sub.kernel32.dll_RtlZeroMemory
push 0x104
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_DragQueryFileA
cmp esi, 1
sete al
neg al
sbb eax, eax
push eax
cmp esi, 1
sete al
neg al
sbb ecx, ecx
mov edx, ebx
mov eax, edi
call fcn.00410870
mov edx, eax
sub edx, 0x10
je 0x41058b
dec edx
sub edx, 2
jb 0x4105bf
je 0x4105de
dec edx
je 0x410803
jmp 0x410811
cmp esi, 1
jne 0x4105a7
cmp dword [ebp - 0x10], 0
jne 0x4105a7
or ecx, 0xffffffff
mov edx, ebx
mov eax, edi
call fcn.00413534
jmp 0x410811
push ebx
mov eax, dword [edi + 0xc8]
xor ecx, ecx
mov edx, 0x180
call fcn.00408de8
jmp 0x410811
cmp dword [ebp - 0x14], 0
jne 0x410811
push 0
mov ecx, eax
mov edx, ebx
mov eax, edi
call fcn.00411124
mov dword [ebp - 0x14], eax
jmp 0x410811
mov eax, dword [0x42ba98]
push dword [eax*4 + 0x41af14]
mov eax, dword [0x42ba98]
push dword [eax*4 + 0x41af5c]
mov eax, dword [0x42ba98]
push dword [eax*4 + 0x41af1c]
mov eax, dword [0x42ba98]
push dword [eax*4 + 0x41af0c]
push dword [0x41a0a4]
lea eax, [ebp - 0x274]
mov edx, 5
call fcn.00403b14
mov eax, dword [ebp - 0x274]
call fcn.00403c3c
mov edx, eax
mov eax, dword [edi + 8]
call fcn.00408e00
mov ecx, 0x104
mov edx, ebx
mov eax, edi
call fcn.00410be8
mov dword [ebp - 0x18], eax
push 0x104
lea eax, [ebp - 0x130]
push eax
call sub.kernel32.dll_RtlZeroMemory
mov eax, dword [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x130]
push eax
call sub.kernel32.dll_RtlMoveMemory
lea eax, [ebp - 0x278]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.00403a3c
mov eax, dword [ebp - 0x278]
mov edx, dword [ebp - 0x18]
call fcn.00407320
test eax, eax
jne 0x4106d9
lea eax, [ebp - 0x27c]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.00403a3c
mov edx, dword [ebp - 0x27c]
mov eax, 0x41086c
call fcn.00403cd4
test eax, eax
je 0x4106cb
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x130], 0x2f
jmp 0x4106d6
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x130], 0x5c
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x130], 0x2a
mov dword [ebp - 0x20], 0xffffffff
lea edx, [ebp - 0x130]
mov eax, edi
call fcn.00410cf0
test eax, eax
je 0x410712
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x130]
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jae 0x4107f8
lea eax, [ebp - 0x280]
lea edx, [ebp - 0x244]
mov ecx, 0x104
call fcn.00403a3c
mov eax, dword [ebp - 0x280]
mov cl, 0x2e
mov edx, 1
call fcn.00407294
test eax, eax
jne 0x4107d7
lea edx, [ebp - 0x244]
mov ecx, 0x104
mov eax, edi
call fcn.00410be8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
cmp eax, 0x104
jge 0x4107d7
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x18]
lea eax, [ebp + eax - 0x130]
push eax
call sub.kernel32.dll_RtlMoveMemory
mov eax, 0x104
sub eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
lea eax, [ebp + eax - 0x130]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0
lea edx, [ebp - 0x130]
xor ecx, ecx
mov eax, edi
call fcn.00410870
cmp eax, 0x10
jne 0x4107d7
lea eax, [ebp - 0x130]
push eax
mov eax, dword [edi + 0xc8]
xor ecx, ecx
mov edx, 0x180
call fcn.00408de8
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x41071c
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_FindClose
xor edx, edx
mov eax, edi
call fcn.00415dec
jmp 0x410811
cmp esi, 1
jne 0x410811
mov edx, ebx
mov eax, edi
call fcn.004123d8
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x410534
mov eax, ebx
call fcn.0040250c
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_DragFinish
mov eax, edi
call fcn.00408ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410859
lea eax, [ebp - 0x280]
mov edx, 4
call fcn.004038f4
ret