Function at 0x41665c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], edx
xor edi, edi
mov dword [ebp - 0x1c], esi
test ebx, ebx
je 0x41669c
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x416690
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0043d715
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push eax
push 0x9479
call ebx
mov eax, dword [ebp + 8]
push str.Program_FilesWindowsApps_
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x416989
push 0x4021
push 7
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x100001
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jne 0x416989
xor edx, edx
mov dword [ebp - 0x18], eax
push edx
push edx
push 0xff
push 2
push 0x248
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x24], ecx
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp + 0x20], eax
push ecx
push edx
push edx
push edx
push eax
jmp 0x416963
test dword [ebp - 0x244], 0x400
je 0x416734
test dword [ebp - 0x23c], 0x20000000
jne 0x416942
mov eax, dword [ebp - 0x240]
xor ecx, ecx
mov word [ebp + eax - 0x238], cx
test byte [ebp - 0x244], 0x10
je 0x4167f6
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
call fcn.0044cd96
test al, al
jne 0x416942
push str.Temp
mov eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x416942
sub esp, 0x18
mov eax, dword [ebp - 0x240]
lea esi, [ebp + 0x1c]
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], ax
lea edx, [ebp + 8]
lea eax, [ebp - 0x238]
push 6
pop ecx
mov edi, esp
push dword [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push ecx
mov esi, esp
lea ecx, [ebp - 0x20]
push 0x49a9c0
push eax
call fcn.0043baed
pop ecx
mov edx, eax
mov ecx, esi
call fcn.0043baed
mov edx, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0041665c
mov ecx, dword [ebp - 0x20]
add esp, 0x2c
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.0043d912
cmp edi, 0x4c7
je 0x416980
jmp 0x416942
test dword [ebp - 0x244], 0x45300
jne 0x416942
cmp dword [ebp - 0x250], ecx
jne 0x416942
mov eax, dword [ebp - 0x254]
add eax, 0xffff6000
cmp eax, 0x31f6000
ja 0x416942
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.0043baed
mov esi, dword [ebp + 0xc]
pop ecx
test ebx, ebx
je 0x41687a
cmp dword [esi - 4], 1
jle 0x416856
push dword [esi - 0xc]
lea ecx, [ebp + 0xc]
call fcn.0043d715
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
xor ecx, ecx
push ecx
push esi
push 0x9479
call ebx
push dword [ebp + 0x10]
xor eax, eax
push eax
push eax
push 0x948e
call ebx
test eax, eax
jne 0x416973
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x260]
jb 0x41693a
mov ecx, dword [ebp + 0x14]
ja 0x41689a
cmp ecx, dword [ebp - 0x264]
jbe 0x41693a
cmp eax, dword [ebp - 0x270]
jb 0x41693a
ja 0x4168b4
cmp ecx, dword [ebp - 0x274]
jbe 0x41693a
push str.SS0EU.DLL
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41693a
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp word [eax], cx
je 0x416913
add eax, 2
mov dword [ebp - 0xc], eax
movzx eax, word [eax]
cmp eax, 0x39
ja 0x4168f4
cmp eax, 0x30
jae 0x41693a
push 0x40b86c
push 4
push 3
lea eax, [ebp - 0xc]
push 0x4ac11c
push eax
call dword [sym.imp.msvcrt.dll_bsearch]
add esp, 0x14
test eax, eax
jne 0x41693a
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00434814
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [eax]
add ecx, 0x14
call fcn.004316c8
lea ecx, [esi - 0x10]
call fcn.0043d912
xor ecx, ecx
lea eax, [ebp - 0x27c]
push ecx
push ecx
push 0xff
push 2
push 0x248
push eax
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
test eax, eax
je 0x416718
jmp 0x416980
lea ecx, [esi - 0x10]
mov edi, 0x4c7
call fcn.0043d912
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0043d912
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret