Function at 0x4f79b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577f6d
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x24
call fcn.00406410
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x4f7a19
mov byte [ebp - 0x2d9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406210
mov al, byte [ebp - 0x2d9]
jmp 0x4f7eca
push 0x11b8
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2e4], 0
je 0x4f7a4e
push 1
mov ecx, dword [ebp - 0x2e4]
call fcn.0045b450
mov dword [ebp - 0x30c], eax
jmp 0x4f7a58
mov dword [ebp - 0x30c], 0
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2e0], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2e0]
mov dword [ebp - 0x2b8], ecx
lea ecx, [ebp + 0xc]
call fcn.00406410
push eax
push 0x58bea4
mov edx, dword [ebp - 0x2b8]
add edx, 0x850
push edx
call fcn.004f9080
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
lea ecx, [ebp - 0x50]
call fcn.00408ba7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00406240
sub eax, 1
push eax
lea ecx, [ebp - 0x50]
call fcn.00408bcd
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x4f7ad0
push 0x5c
lea ecx, [ebp - 0x50]
call fcn.00466410
push 0x58beac
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00437480
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406410
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0xffffffff
jne 0x4f7b47
mov byte [ebp - 0x2e5], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00406210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00406210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406210
mov al, byte [ebp - 0x2e5]
jmp 0x4f7eca
mov edx, 1
test edx, edx
je 0x4f7bf5
movzx eax, word [ebp - 0x280]
cmp eax, 0x2e
je 0x4f7bd6
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2d4]
call fcn.00408ba7
mov byte [ebp - 4], 4
lea edx, [ebp - 0x280]
push edx
lea ecx, [ebp - 0x2d4]
call fcn.00437730
lea ecx, [ebp - 0x2d4]
call fcn.00406410
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0041a130
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2ec]
push eax
mov ecx, dword [ebp - 0x2b8]
add ecx, 0x878
call fcn.004368d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ec]
call fcn.0044fc20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d4]
call fcn.00406210
lea ecx, [ebp - 0x2ac]
push ecx
mov edx, dword [ebp - 0x2b4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4f7bf0
jmp 0x4f7bf5
jmp 0x4f7b47
mov eax, dword [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
add ecx, 0x40
call fcn.00406410
push eax
push 0x58beb4
mov ecx, dword [ebp - 0x2b8]
add ecx, 8
push ecx
call fcn.004f9050
add esp, 0xc
mov edx, dword [ebp - 0x2b8]
movzx eax, word [edx + 8]
test eax, eax
jne 0x4f7c75
mov ecx, dword [ebp - 0x2b8]
add ecx, 8
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x2d8], eax
mov edx, dword [ebp - 0x2d8]
movzx eax, word [edx]
test eax, eax
je 0x4f7c75
push 8
mov ecx, dword [ebp - 0x2d8]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x2b8]
add edx, 0x850
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 0x2b8]
mov dword [eax + 0x224], 1
push 0x28
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2f4], 0
je 0x4f7cb9
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x2f4]
call fcn.004f84d0
mov dword [ebp - 0x310], eax
jmp 0x4f7cc3
mov dword [ebp - 0x310], 0
mov edx, dword [ebp - 0x310]
mov dword [ebp - 0x2f0], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0045d9e0
mov byte [ebp - 4], 7
push 0x70
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2fc], 0
je 0x4f7d1f
lea ecx, [ebp - 0x18]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x2fc]
call fcn.004551e0
mov dword [ebp - 0x314], eax
jmp 0x4f7d29
mov dword [ebp - 0x314], 0
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x2f8], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2f8]
push edx
lea ecx, [ebp - 0x14]
call fcn.0045d9e0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004dfdf0
mov ecx, eax
call fcn.004560a0
lea ecx, [ebp - 0x54]
call fcn.0045f300
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x54]
call fcn.00476080
push eax
mov ecx, dword [ebp - 0x2b8]
call fcn.0045b610
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4f7de8
mov byte [ebp - 0x2fd], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x54]
call fcn.00496090
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00496090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00496090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00406210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00406210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406210
mov al, byte [ebp - 0x2fd]
jmp 0x4f7eca
lea ecx, [ebp - 0x18]
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x54]
call fcn.004dfdf0
mov ecx, eax
call fcn.00461020
lea ecx, [ebp - 0x14]
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x54]
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x18]
call fcn.004dfdf0
mov ecx, eax
call fcn.004f8840
mov ecx, dword [ebp - 0x2b8]
add ecx, 0x850
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x304], esp
push ecx
mov ecx, edx
call fcn.004061d0
mov dword [ebp - 0x318], eax
lea ecx, [ebp - 0x18]
call fcn.004dfdf0
mov ecx, eax
call fcn.004f8880
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x2b0], eax
xor ecx, ecx
cmp dword [ebp - 0x2b0], 0
sete cl
mov byte [ebp - 0x305], cl
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x54]
call fcn.00496090
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
call fcn.00496090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00496090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00406210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00406210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406210
mov al, byte [ebp - 0x305]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret