Function at 0x4161d2
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 0x416212
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x416206
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0043c727
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 0x4164ff
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 0x4164ff
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 0x4164d9
test dword [ebp - 0x244], 0x400
je 0x4162aa
test dword [ebp - 0x23c], 0x20000000
jne 0x4164b8
mov eax, dword [ebp - 0x240]
xor ecx, ecx
mov word [ebp + eax - 0x238], cx
test byte [ebp - 0x244], 0x10
je 0x41636c
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
call fcn.0044bd57
test al, al
jne 0x4164b8
push str.Temp
mov eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4164b8
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 0x498824
push eax
call fcn.0043ab55
pop ecx
mov edx, eax
mov ecx, esi
call fcn.0043ab55
mov edx, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004161d2
mov ecx, dword [ebp - 0x20]
add esp, 0x2c
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp edi, 0x4c7
je 0x4164f6
jmp 0x4164b8
test dword [ebp - 0x244], 0x45300
jne 0x4164b8
cmp dword [ebp - 0x250], ecx
jne 0x4164b8
mov eax, dword [ebp - 0x254]
add eax, 0xffff6000
cmp eax, 0x31f6000
ja 0x4164b8
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.0043ab55
mov esi, dword [ebp + 0xc]
pop ecx
test ebx, ebx
je 0x4163f0
cmp dword [esi - 4], 1
jle 0x4163cc
push dword [esi - 0xc]
lea ecx, [ebp + 0xc]
call fcn.0043c727
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 0x4164e9
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x260]
jb 0x4164b0
mov ecx, dword [ebp + 0x14]
ja 0x416410
cmp ecx, dword [ebp - 0x264]
jbe 0x4164b0
cmp eax, dword [ebp - 0x270]
jb 0x4164b0
ja 0x41642a
cmp ecx, dword [ebp - 0x274]
jbe 0x4164b0
push str.SS0EU.DLL
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4164b0
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 0x416489
add eax, 2
mov dword [ebp - 0xc], eax
movzx eax, word [eax]
cmp eax, 0x39
ja 0x41646a
cmp eax, 0x30
jae 0x4164b0
push 0x40b610
push 4
push 3
lea eax, [ebp - 0xc]
push 0x4aa10c
push eax
call dword [sym.imp.msvcrt.dll_bsearch]
add esp, 0x14
test eax, eax
jne 0x4164b0
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.004339d4
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [eax]
add ecx, 0x14
call fcn.00430953
lea ecx, [esi - 0x10]
call fcn.0043c924
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 0x41628e
jmp 0x4164f6
lea ecx, [esi - 0x10]
mov edi, 0x4c7
call fcn.0043c924
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0043c924
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret