Function at 0x40d280
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41428d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x41d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebx + 0xc]
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2c0], eax
call fcn.00407840
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.0040d9e0
test al, al
jne 0x40d311
lea ecx, [ebp - 0x5c]
call fcn.0040daa0
test al, al
jne 0x40d2ff
mov esi, dword [ebp - 0x4c]
cmp esi, 0x104
jb 0x40d314
xor dl, dl
lea ecx, [ebp - 0x5c]
call fcn.0040cd00
test al, al
je 0x40d661
mov esi, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
cmova eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2bc], eax
movups xmmword [ebp - 0x2c], xmm0
cmp esi, 0x7ffffffe
ja 0x40d6bd
mov ecx, 0xa
cmp esi, 7
ja 0x40d363
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
jmp 0x40d3b3
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x40d376
mov eax, 0x7ffffffe
jmp 0x40d37c
cmp eax, 0xa
cmovb eax, ecx
lea edx, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], eax
call fcn.004057b0
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x18], ecx
lea ecx, [esi*2 + 2]
push ecx
push dword [ebp - 0x2bc]
mov dword [ebp - 0x2c], eax
push eax
mov dword [ebp - 0x1c], esi
call fcn.00411530
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 7
jbe 0x40d3bf
mov edi, dword [edi]
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.004068f0
push 0x250
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.00411ac0
add esp, 0xc
lea ecx, [ebp - 0x2b0]
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push 0
push 0
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x2b8], eax
cmp eax, 0xffffffff
je 0x40d617
nop
test byte [ebp - 0x2b0], 0x10
je 0x40d5ee
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x284]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d440
sub eax, edx
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00405130
mov byte [ebp - 4], 2
lea esi, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
seta cl
cmova esi, edi
mov byte [ebp - 0x2b1], cl
cmp eax, 1
jne 0x40d4af
mov ecx, 0x417af0
mov edx, eax
sub esi, ecx
nop word [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40d4a6
add ecx, 2
sub edx, 1
jne 0x40d490
jmp 0x40d5ad
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2b1]
test cl, cl
lea esi, [ebp - 0x44]
cmovne esi, edi
cmp eax, 2
jne 0x40d4de
mov ecx, 0x418280
mov edx, eax
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40d4db
add ecx, 2
sub edx, 1
jne 0x40d4c5
jmp 0x40d5ad
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c0]
mov esi, dword [edx + 4]
cmp esi, dword [edx + 8]
je 0x40d59e
cmp byte [ebp - 0x2b1], 0
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
cmovne ecx, edi
mov dword [ebp - 0x2c4], ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp eax, 0x7ffffffe
ja 0x40d6bd
cmp eax, 7
ja 0x40d53d
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
add dword [edx + 4], 0x18
jmp 0x40d5ad
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x40d54e
mov eax, 0x7ffffffe
jmp 0x40d559
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
lea edx, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], eax
call fcn.004057b0
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2bc]
mov dword [esi + 0x14], ecx
mov dword [esi], eax
lea ecx, [edx*2 + 2]
mov dword [esi + 0x10], edx
push ecx
push dword [ebp - 0x2c4]
push eax
call fcn.00411530
mov edx, dword [ebp - 0x2c0]
add esp, 0xc
add dword [edx + 4], 0x18
jmp 0x40d5ad
lea eax, [ebp - 0x44]
mov ecx, edx
push eax
push esi
call fcn.00407c50
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
cmp eax, 7
jbe 0x40d5e8
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40d5de
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d68d
push ecx
push edi
call fcn.00410250
add esp, 8
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40d60b
mov eax, dword [ebp - 0x2b8]
jmp 0x40d410
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40d64d
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d643
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d68d
push ecx
push edx
call fcn.00410250
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x40d69d
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d693
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d693
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00410250
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410242
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00401490
int3