Function at 0x40d080
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 0x4140cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x41d010]
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 dword [ebp - 0x2b8], edi
mov eax, dword [ebx + 0xc]
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x2c4], eax
call fcn.004075e0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.0040d820
test al, al
jne 0x40d117
lea ecx, [ebp - 0x5c]
call fcn.0040d8e0
test al, al
jne 0x40d105
mov esi, dword [ebp - 0x4c]
cmp esi, 0x104
jb 0x40d11a
xor dl, dl
lea ecx, [ebp - 0x5c]
call fcn.0040cb80
test al, al
je 0x40d4ac
mov esi, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2bc], eax
movups xmmword [ebp - 0x2c], xmm0
cmp esi, 0x7ffffffe
ja 0x40d508
mov dword [ebp - 0x18], 7
mov ecx, 0xa
cmp esi, 8
jae 0x40d16e
push 0x10
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
push eax
call fcn.004113a0
jmp 0x40d1b6
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x40d182
mov edi, 0x7ffffffe
jmp 0x40d187
cmp edi, ecx
cmovb edi, ecx
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404cf0
lea ecx, [esi*2 + 2]
mov dword [ebp - 0x2c], eax
push ecx
push dword [ebp - 0x2bc]
mov dword [ebp - 0x1c], esi
push eax
mov dword [ebp - 0x18], edi
call fcn.004113a0
mov edi, dword [ebp - 0x2b8]
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x40d1c5
mov edi, dword [edi]
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00406690
push 0x250
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.00411930
add esp, 0xc
lea ecx, [ebp - 0x2b0]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae 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 - 0x2c0], eax
cmp eax, 0xffffffff
je 0x40d462
nop word [eax + eax]
test byte [ebp - 0x2b0], 0x10
je 0x40d439
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 0x40d250
sub eax, edx
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00404f70
mov byte [ebp - 4], 2
lea esi, [ebp - 0x44]
mov eax, dword [ebp - 0x30]
cmp eax, 8
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x2bc], eax
setae dl
mov eax, dword [ebp - 0x34]
cmovae esi, edi
mov byte [ebp - 0x2b1], dl
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x2b8], eax
cmp eax, 1
jne 0x40d2d8
mov ecx, 0x417ac0
mov edx, eax
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40d2cc
add ecx, 2
sub edx, 1
jne 0x40d2b0
mov ecx, dword [ebp - 0x2bc]
jmp 0x40d3fb
mov eax, dword [ebp - 0x2b8]
mov dl, byte [ebp - 0x2b1]
test dl, dl
lea esi, [ebp - 0x44]
cmovne esi, edi
cmp eax, 2
jne 0x40d318
mov ecx, 0x418250
mov edx, eax
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40d30c
add ecx, 2
sub edx, 1
jne 0x40d2f0
mov ecx, dword [ebp - 0x2bc]
jmp 0x40d3fb
mov eax, dword [ebp - 0x2b8]
mov dl, byte [ebp - 0x2b1]
mov ecx, dword [ebp - 0x2c4]
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 8]
je 0x40d3eb
test dl, dl
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
cmovne ecx, edi
mov dword [ebp - 0x2c8], ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp eax, 0x7ffffffe
ja 0x40d508
mov dword [esi + 0x14], 7
cmp eax, 8
jae 0x40d384
push 0x10
push ecx
push esi
mov dword [esi + 0x10], eax
call fcn.004113a0
mov eax, dword [ebp - 0x2c4]
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
add dword [eax + 4], 0x18
jmp 0x40d3fb
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x40d398
mov edi, 0x7ffffffe
jmp 0x40d3a3
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00404cf0
mov ecx, dword [ebp - 0x2b8]
mov dword [esi + 0x10], ecx
mov dword [esi], eax
mov dword [esi + 0x14], edi
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c8]
push eax
call fcn.004113a0
mov eax, dword [ebp - 0x2c4]
add esp, 0xc
mov edi, dword [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2bc]
add dword [eax + 4], 0x18
jmp 0x40d3fb
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00407a00
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x40d433
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40d429
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4d8
push ecx
push edi
call fcn.004100a0
add esp, 8
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2b0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40d456
mov eax, dword [ebp - 0x2c0]
jmp 0x40d220
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x40d498
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d48e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4d8
push ecx
push edx
call fcn.004100a0
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, 8
jb 0x40d4e8
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d4de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d4de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004100a0
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.00410092
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00401490
int3