Function at 0x18057996
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x1826b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x278], ebx
mov cl, byte [ebx]
call fcn.1807699c
cmp byte [ebx], 0
je 0x180579dd
call fcn.180175e4
lea eax, [ebp - 0x270]
push eax
call fcn.180179c8
xor edi, edi
inc edi
and dword [ebp - 0x25c], 0
jmp 0x180579fa
call fcn.180175e4
lea eax, [ebp - 0x26c]
push eax
call fcn.180177fa
xor edi, edi
mov dword [ebp - 0x25c], 2
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.18009fcf
cmp dword [ebp - 0x25c], 0
lea esi, [eax + 0x10]
je 0x18057a1e
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.18006a60
test edi, edi
je 0x18057a30
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.18006a60
cmp dword [esi - 0xc], 0
jne 0x18057a40
mov ebx, 0x8000ffff
jmp 0x18057c74
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.180c7aa0
add esp, 0xc
lea ecx, [ebp - 0x25c]
push esi
call fcn.18006fb5
push 0x18232b24
lea ecx, [ebp - 0x25c]
call fcn.1800cd5b
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
jne 0x18057aae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18057c66
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18057c66
push str.MicrosoftEdgeUpdateDownload
lea ecx, [ebp - 0x264]
call fcn.18006fb5
mov eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x264]
push dword [eax - 0xc]
call fcn.18007094
mov edi, dword [sym.imp.SHLWAPI.dll_PathStripPathW]
push eax
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x264]
call fcn.18009dcb
push str.MicrosoftEdgeUpdateInstall
lea ecx, [ebp - 0x260]
call fcn.18006fb5
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
push dword [eax - 0xc]
call fcn.18007094
push eax
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x260]
call fcn.18009dcb
push esi
lea ecx, [ebp - 0x268]
call fcn.18006fb5
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x268]
call fcn.1800cd5b
test byte [ebp - 0x258], 0x10
lea eax, [ebp - 0x22c]
mov edi, dword [ebp - 0x268]
jne 0x18057b56
push str.MicrosoftEdgeUpdate.exe
jmp 0x18057bb7
push 0x18232b2c
push eax
call fcn.180d4914
pop ecx
pop ecx
test eax, eax
je 0x18057bca
lea eax, [ebp - 0x22c]
push 0x18232ad0
push eax
call fcn.180d4914
pop ecx
pop ecx
test eax, eax
je 0x18057bca
push dword [ebx + 4]
lea eax, [ebp - 0x22c]
push eax
call fcn.180d4aa0
pop ecx
pop ecx
test eax, eax
je 0x18057bca
push dword [ebp - 0x264]
lea eax, [ebp - 0x22c]
push eax
call fcn.180d4aa0
pop ecx
pop ecx
test eax, eax
je 0x18057bca
push dword [ebp - 0x260]
lea eax, [ebp - 0x22c]
push eax
call fcn.180d4aa0
pop ecx
pop ecx
test eax, eax
je 0x18057bca
mov ecx, edi
call fcn.1800c0d9
lea ecx, [edi - 0x10]
call fcn.18006a60
mov edi, dword [ebp - 0x274]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18057b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
je 0x18057c0a
test ebx, ebx
jle 0x18057c43
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18057c43
call fcn.180175e4
mov ebx, str.HKLMSoftwareMicrosoftEdgeUpdate_
mov edx, 0x182400a4
mov ecx, ebx
call fcn.180156da
call fcn.180175e4
mov eax, dword [ebp - 0x278]
cmp byte [eax], 0
jne 0x18057c35
mov ebx, str.HKCUSoftwareMicrosoftEdgeUpdate_
mov edx, 0x182400ac
mov ecx, ebx
call fcn.180156da
xor ebx, ebx
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.18006a60
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.18006a60
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18006a60
lea ecx, [esi - 0x10]
call fcn.18006a60
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180b1200
leave
ret