Function at 0x409170
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cacfc
mov eax, dword fs:[0]
push eax
mov eax, 0x7c74
call fcn.004a1410
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c68], eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x410]
sub edi, eax
mov dword [ebp - 0x7c5c], edi
xor ebx, ebx
mov edi, edi
movzx ecx, word [eax]
mov word [edi + eax], cx
add eax, 2
cmp cx, bx
jne 0x4091c0
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x410]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4091e5
mov edx, dword [0x4d2b30]
mov cx, word [0x4d2b34]
mov dword [eax], edx
mov word [eax + 4], cx
mov dword [ebp - 0x7c58], ebx
mov dword [ebp - 0x7c54], ebx
mov dword [ebp - 0x7c50], ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x40983d
lea edx, [ebp - 0x1660]
push edx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x7c64], eax
cmp eax, 0xffffffff
je 0x40983d
jmp 0x409250
test byte [ebp - 0x1660], 0x10
je 0x409821
lea eax, [ebp - 0x1634]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409266
sub eax, edx
sar eax, 1
cmp eax, 0x26
jne 0x409821
cmp word [ebp - 0x1634], 0x7b
jne 0x409821
mov eax, 0x2d
cmp word [ebp - 0x1622], ax
jne 0x409821
cmp word [ebp - 0x1618], ax
jne 0x409821
cmp word [ebp - 0x160e], ax
jne 0x409821
cmp word [ebp - 0x1604], ax
jne 0x409821
cmp word [ebp - 0x15ea], 0x7d
jne 0x409821
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x1634]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409306
cmp dx, bx
je 0x409302
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409306
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4092e0
xor eax, eax
jmp 0x40930b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x409821
movzx ecx, byte [esi + 4]
mov dword [0x4fbb18], ecx
cmp byte [esi + 4], bl
jne 0x409821
lea ecx, [ebp - 0x7c40]
call fcn.00432b90
lea ecx, [ebp - 0x7c80]
mov byte [ebp - 4], 1
call fcn.00404370
push 0x3fe
lea eax, [ebp - 0x100e]
xor edx, edx
push ebx
push eax
mov byte [ebp - 4], 2
mov word [ebp - 0x1010], dx
call fcn.0049eae0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov byte [ebp - 0x7c43], bl
mov byte [ebp - 0x7c41], bl
mov byte [ebp - 0x7c42], bl
jmp 0x409380
movzx ecx, word [eax]
mov word [eax + edi], cx
add eax, 2
cmp cx, bx
jne 0x409380
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x1634]
push ecx
lea edx, [ebp - 0x410]
push edx
call esi
xor eax, eax
jmp 0x4093b0
movzx ecx, word [ebp + eax - 0x410]
mov word [ebp + eax - 0x1010], cx
add eax, 2
cmp cx, bx
jne 0x4093b0
push 0x4d2b18
lea eax, [ebp - 0x410]
push eax
call esi
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x409435
mov eax, dword [ebp + 0xc]
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edi], cx
add eax, 2
cmp cx, bx
jne 0x4093f0
lea edx, [ebp - 0x1634]
push edx
lea eax, [ebp - 0x410]
push eax
call esi
push 0x4d2af8
lea ecx, [ebp - 0x410]
push ecx
call esi
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x409435
mov byte [ebp - 0x7c43], 1
push ebx
lea eax, [ebp - 0x7c80]
push eax
lea ecx, [ebp - 0x410]
push ecx
push str.Configuration.icf
lea ecx, [ebp - 0x7c40]
call fcn.00432240
cmp eax, ebx
jne 0x4096ce
lea edx, [ebp - 0x7c40]
push edx
lea ecx, [ebp - 0x6c00]
call fcn.0042db00
lea eax, [ebp - 0x7c80]
push eax
lea ecx, [ebp - 0x6c00]
mov byte [ebp - 4], 3
call fcn.0042fce0
test al, al
je 0x4096b3
lea ecx, [ebp - 0x6c00]
mov dword [ebp - 0x7c48], ebx
call fcn.004100c0
mov edi, eax
xor esi, esi
cmp edi, ebx
jbe 0x4096ad
lea esp, [esp]
mov eax, dword [ebp + 0x14]
movzx ecx, byte [eax + 4]
mov dword [0x4fbb18], ecx
cmp byte [eax + 4], bl
jne 0x4096ad
lea edx, [ebp - 0x7c48]
push edx
push esi
lea ecx, [ebp - 0x6c00]
call fcn.00419be0
cmp dword [ebp - 0x7c48], ebx
je 0x4096a4
push 0x3fe
lea ecx, [ebp - 0xc0e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x7c60], 0x200
mov word [ebp - 0xc10], ax
call fcn.0049eae0
push 0x3fe
lea eax, [ebp - 0x80e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x810], dx
call fcn.0049eae0
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x810]
add esp, 0x18
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x409533
lea ecx, [ebp - 0x1634]
push ecx
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x810]
cmp byte [ebp - 0x7c43], bl
je 0x4095aa
push 0x4d2af8
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x7c48]
add ecx, 0x404
push ecx
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x810]
mov word [ebp + eax - 0xc10], cx
add eax, 2
cmp cx, bx
jne 0x409590
jmp 0x40960a
push str.Packages_
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x7c48]
add ecx, 0x404
push ecx
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
jmp 0x4095e0
movzx ecx, word [ebp + eax - 0x810]
mov word [ebp + eax - 0xc10], cx
add eax, 2
cmp cx, bx
jne 0x4095e0
push str.Setup_
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0xc10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4096a4
mov ecx, dword [ebp - 0x7c48]
lea edx, [ebp - 0x7c60]
push edx
lea eax, [ebp - 0x1410]
push eax
push 0x4d2988
add ecx, 0x1052
push ecx
call sub.msi.dll_MsiGetPropertyW
cmp eax, ebx
jne 0x40968e
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x1410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x810]
push edx
call fcn.004a0f04
add esp, 8
test eax, eax
jne 0x409685
mov byte [ebp - 0x7c42], 1
jmp 0x4096a4
lea eax, [ebp - 0xc10]
push eax
jmp 0x40969c
cmp eax, 0x645
jne 0x4096a4
lea ecx, [ebp - 0xc10]
push ecx
call fcn.004062a0
add esp, 4
inc esi
cmp esi, edi
jb 0x4094b0
mov edi, dword [ebp - 0x7c5c]
lea ecx, [ebp - 0x6c00]
mov byte [ebp - 4], 2
call fcn.0042ef90
cmp byte [ebp - 0x7c42], bl
jne 0x409801
mov edx, dword [ebp - 0x7c54]
sub edx, dword [ebp - 0x7c58]
test edx, 0xfffffffc
jne 0x4096f1
lea eax, [ebp - 0x7c58]
push eax
call fcn.00408f10
add esp, 4
mov esi, dword [ebp - 0x7c58]
cmp esi, dword [ebp - 0x7c54]
je 0x4097f2
cmp byte [ebp - 0x7c41], bl
jne 0x4097e2
push 0x3fe
lea edx, [ebp - 0xc0e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0xc10], cx
call fcn.0049eae0
lea eax, [ebp - 0x1010]
push eax
call fcn.004a0d99
mov ecx, dword [esi]
add ecx, 0x400
push ecx
call fcn.004a0d99
add esp, 0x14
push 0x200
lea edx, [ebp - 0xc10]
push edx
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409770
sub eax, edx
mov edx, dword [esi]
sar eax, 1
push eax
lea ecx, [ebp - 0x1010]
push ecx
push edx
call fcn.004a0af1
add esp, 0xc
test eax, eax
je 0x4097cc
mov eax, dword [esi]
lea ecx, [ebp - 0x410]
add eax, 0x400
push ecx
push eax
call fcn.004a021c
add esp, 8
test eax, eax
jne 0x4097cc
mov eax, dword [esi]
lea edx, [ebp - 0xc10]
add eax, 0x400
push edx
push eax
call fcn.004a021c
add esp, 8
test eax, eax
je 0x4097d3
mov byte [ebp - 0x7c41], 1
add esi, 4
cmp esi, dword [ebp - 0x7c54]
jne 0x409703
cmp byte [ebp - 0x7c42], bl
jne 0x409801
cmp byte [ebp - 0x7c41], bl
jne 0x409801
lea eax, [ebp - 0x1010]
push eax
call fcn.004062a0
add esp, 4
lea ecx, [ebp - 0x7c80]
mov byte [ebp - 4], 1
call fcn.00404390
lea ecx, [ebp - 0x7c40]
mov byte [ebp - 4], bl
call fcn.00432c80
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x7c64]
lea ecx, [ebp - 0x1660]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409250
call fcn.00406460
mov esi, dword [ebp - 0x7c58]
mov edi, dword [ebp - 0x7c54]
cmp esi, edi
je 0x409875
mov eax, dword [esi]
push eax
call fcn.0049eb5a
add esi, 4
add esp, 4
cmp esi, edi
jne 0x409852
mov ecx, dword [ebp - 0x7c58]
push ebx
push edi
push ecx
call fcn.0049fb20
add esp, 0xc
mov edx, dword [ebp - 0x7c68]
push ebx
push ebx
push 0x55e
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x7c58]
cmp eax, ebx
je 0x40989c
push eax
call fcn.0049eb5a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret