Function at 0x414110
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 0x10000
push 1
mov ebx, 0x4b99e0
call fcn.004b7854
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x414163
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0x7fff
mov eax, dword [ebp - 4]
test eax, eax
je 0x414179
add eax, 8
push eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x414186
add eax, 8
push eax
call sub.comdlg32.dll_GetFileTitleW
cmp dword [ebp - 0x10], esp
je 0x4141a8
push 0x67
push 0x416a5ae
push 6
call fcn.004b785a
add esp, 0xc
cwde
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41436b
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4141c5
add eax, 8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp dword [ebp - 0x10], esp
je 0x4141e7
push 0xf6
push 0x416a5ae
push 6
call fcn.004b785a
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x4b7d00
call fcn.004b7854
add esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x414350
call fcn.004143a0
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
mov eax, str.HideFileExt
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvanced
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push reloc.WS2_32.dll_accept
call fcn.0041454c
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x414261
push ebx
call fcn.004b784e
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x414271
push ebx
call fcn.004b784e
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x414350
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x41428a
add eax, 8
push eax
call sub.SHLWAPI.dll_PathFindExtensionW
cmp dword [ebp - 0x10], esp
je 0x4142ac
push 0x207
push 0x416a5ae
push 6
call fcn.004b785a
add esp, 0xc
push eax
call fcn.004147b4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4142c9
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x5d3c00
xor ecx, ecx
test eax, eax
je 0x4142db
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x4142ec
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x414303
dec eax
test ecx, ecx
je 0x414303
call fcn.00406e1c
add esp, 0xc
test eax, eax
je 0x414350
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41431b
add eax, 8
push eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x414326
add eax, 8
push eax
mov eax, 0xa
call fcn.004b7860
add esp, 8
cmp dword [ebp - 0x10], esp
je 0x414350
push 0x252
push 0x416a5ae
push 6
call fcn.004b785a
add esp, 0xc
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.0040a820
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x414375
mov eax, 0x5d3c00
jmp 0x414375
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x414386
push ebx
call fcn.004b784e
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x414396
push ebx
call fcn.004b784e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4