Function at 0x40d820
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d81d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x4541e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 0xc]
mov ecx, str.c:Program_Files__x86_MicrosoftEdgeApplication_
mov esi, dword [ebp + 8]
test al, al
mov edx, str.c:Program_Files__x86_MicrosoftEdgeWebViewApplication_
mov dword [ebp - 0x14], esi
cmove edx, ecx
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d880
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401530
mov ecx, dword [ebp - 0x1c]
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 4], 0
cmp eax, 1
jb 0x40da99
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push 0x440308
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
call fcn.0040d4e0
push 0x250
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0041d260
add esp, 0xc
lea ecx, [ebp - 0x2b8]
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d920
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d9fb
test byte [ebp - 0x2b8], 0x10
je 0x40d9de
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d950
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00401530
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28c]
push 0x44030c
push eax
call fcn.0040e7b0
add esp, 0x18
cmp eax, 4
je 0x40da4f
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x40d9de
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d9d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da9e
push ecx
push edx
call fcn.0041ac6f
add esp, 8
lea eax, [ebp - 0x2b8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d920
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x60]
call fcn.00402d70
lea ecx, [ebp - 0x2c]
call fcn.00402d70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b2d9
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x1c]
mov eax, SysReAllocString
mov edi, dword [ebp - 0x38]
sub eax, edx
cmp eax, edi
jb 0x40daa3
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push edi
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
cmovae eax, dword [ebp - 0x48]
push eax
push edx
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push dword [ebp - 0x30]
call fcn.0040d4e0
lea ecx, [ebp - 0x48]
call fcn.00402d70
jmp 0x40da22
call fcn.00407b00
call fcn.004203af
call fcn.00407b00
int3