Function at 0x4092a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c9bd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4b41e0]
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 dword [ebp - 0x44], edx
mov ebx, ecx
mov dword [ebp - 0x50], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor esi, esi
movq qword [ebp - 0x1c], xmm0
test ebx, ebx
je 0x4092f8
cmp word [ebx], si
je 0x4092f8
nop dword [eax]
inc esi
cmp word [ebx + esi*2], 0
jne 0x4092f0
xor ecx, ecx
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a22b
add esp, 4
mov edx, eax
mov dword [ebp - 0x1c], edx
test esi, esi
jle 0x409340
mov ecx, edx
sub ebx, edx
mov edi, esi
nop word [eax + eax]
mov ax, word [ebx + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edi, 1
jne 0x409330
xor eax, eax
mov word [edx + esi*2], ax
mov dword [ebp - 4], eax
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x20], 1
mov byte [ebp - 4], 1
test esi, esi
jne 0x40937d
cmp word [edx], si
je 0x409378
nop dword [eax + eax]
inc esi
cmp word [edx + esi*2], 0
jne 0x409370
mov dword [ebp - 0x18], esi
test esi, esi
setg byte [ebp - 0x14]
test esi, esi
jle 0x4093aa
lea eax, [esi*2 - 2]
nop dword [eax]
cmp word [eax + edx], 0x5c
lea ecx, [eax + edx]
jne 0x4093aa
dec esi
xor edi, edi
sub eax, 2
mov dword [ebp - 0x18], esi
mov word [ecx], di
test esi, esi
jne 0x409390
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x49eab0
lea ecx, [ebp - 0x1c]
call fcn.00402320
mov edi, dword [ebp - 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x4093d0
lea esi, [eax + 1]
jmp 0x409864
test edi, edi
jne 0x4093ef
push 2
call fcn.0046a22b
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
mov dword [ebp - 0x18], esi
mov word [edi], ax
jmp 0x4093f2
mov esi, dword [ebp - 0x18]
push 0
lea eax, [ebx + 1]
mov byte [ebp - 0x14], 1
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0
push 1
push 1
push 1
push 0x49eb04
lea ecx, [ebp - 0x28]
call fcn.00402320
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x409438
push eax
push 1
push 1
push 1
push 0x49eb08
lea ecx, [ebp - 0x28]
call fcn.00402320
mov dword [ebp - 0x48], eax
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], ecx
test eax, eax
je 0x409558
lea eax, [ebx - 1]
test esi, esi
jne 0x409462
test edi, edi
je 0x40945f
cmp word [edi], cx
je 0x40945f
inc esi
cmp word [edi + esi*2], cx
jne 0x409458
mov dword [ebp - 0x18], esi
cmp esi, eax
setge byte [ebp - 0x14]
jl 0x409476
cmovl eax, esi
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x1c]
call fcn.00402f80
mov edi, dword [ebp - 0x1c]
xor esi, esi
mov ebx, dword [ebp - 0x28]
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 2
push 0x800
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
test cl, 2
je 0x40978d
cmp dword [ebp - 0x48], 0
jne 0x4094d0
mov byte [ebp - 0x3c], 0
test esi, esi
je 0x4094d4
mov byte [ebp - 0x3c], 3
push 0x44
push 0x40
mov dword [ebp - 0x2c], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push 1
mov dword [ebp - 0x54], esi
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov byte [ebp - 4], 3
test esi, esi
je 0x409518
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
sub esp, 8
push esi
call fcn.00403e40
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call eax
push 0x44
push 0x40
mov dword [ebp - 0x2c], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push 0x16
mov dword [ebp - 0x54], esi
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov byte [ebp - 4], 4
test esi, esi
jne 0x409729
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x409745
push 2
push 1
push 1
push 1
push 0x49eabc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x14], 1
call fcn.00402320
mov edi, dword [ebp - 0x1c]
test eax, eax
jne 0x40965f
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40959b
test edi, edi
je 0x409598
cmp word [edi], ax
je 0x409598
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x409590
mov dword [ebp - 0x18], eax
cmp eax, 2
jl 0x40965f
cmp word [edi + 2], 0x3a
jne 0x40965f
mov byte [ebp - 0x14], 0
test eax, eax
jne 0x4095cb
cmp word [edi], ax
je 0x4095c8
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x4095c0
mov dword [ebp - 0x18], eax
xor ecx, ecx
nop dword [eax]
inc ecx
cmp word [ecx*2 + 0x49eac4], 0
jne 0x4095d0
add eax, ecx
mov edx, 2
mov dword [ebp - 0x3c], eax
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a22b
mov ebx, 0x49eac4
mov dword [ebp - 0x4c], eax
add esp, 4
mov edx, edi
mov ecx, eax
mov esi, 0x5c
sub ebx, eax
nop
mov word [ecx], si
add ecx, 2
movzx eax, word [ecx + ebx]
mov esi, eax
test ax, ax
jne 0x409610
movzx eax, word [edi]
mov esi, eax
test ax, ax
je 0x409641
nop dword [eax + eax]
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x409630
xor eax, eax
push edi
mov word [ecx], ax
call fcn.00469e73
mov edi, dword [ebp - 0x4c]
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 1
test edi, edi
jne 0x40967a
push 2
call fcn.0046a22b
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov word [edi], ax
push edi
mov byte [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
and eax, 0x400
and esi, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x409483
test eax, eax
jne 0x409483
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4096b5
push eax
call fcn.00469e73
add esp, 4
mov byte [ebp - 0x20], 0
xor esi, esi
nop dword [eax + eax]
inc esi
cmp word [esi*2 + 0x49eb04], 0
jne 0x4096c0
xor ecx, ecx
mov dword [ebp - 0x24], esi
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a22b
add esp, 4
mov ebx, eax
mov dword [ebp - 0x28], ebx
test esi, esi
jle 0x409717
mov eax, 0x49eb04
mov ecx, ebx
sub eax, ebx
mov edx, esi
mov dword [ebp - 0x3c], eax
mov ebx, eax
mov ax, word [ebx + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x409704
mov ebx, dword [ebp - 0x28]
xor eax, eax
mov byte [ebp - 0x20], 1
mov word [ebx + esi*2], ax
mov esi, dword [ebp - 0x40]
jmp 0x409486
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
sub esp, 8
push esi
call fcn.00403e40
mov byte [ebp - 4], 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40974f
push eax
call esi
push 0x44
push 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
push ecx
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
sub esp, 8
push dword [ebp - 0x34]
call fcn.00403e40
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x40]
je 0x4097af
test eax, eax
je 0x4097af
lea eax, [ebp - 0x38]
mov edx, ecx
mov ecx, dword [ebp - 0x50]
push eax
call fcn.00409e70
mov esi, eax
jmp 0x40983a
cmp dword [ebp - 0x48], 0
je 0x40988f
or ecx, 4
mov dword [ebp - 0x44], ecx
test ebx, ebx
jne 0x4097da
push 2
call fcn.0046a22b
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov word [ebx], ax
mov byte [ebp - 0x20], 1
test edi, edi
jne 0x4097f9
push 2
call fcn.0046a22b
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov word [edi], ax
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push eax
push edx
mov edx, ebx
mov byte [ebp - 0x14], 1
mov ecx, edi
call fcn.004098d0
mov esi, eax
cmp esi, 1
jne 0x40983a
cmp dword [ebp - 0x48], 0
jne 0x40983a
cmp dword [ebp - 0x40], 0
mov edx, 0x10
push 0
push dword [ebp - 0x50]
mov eax, 4
push 5
cmovne eax, edx
push eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x409849
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x409857
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x409864
push ebx
call fcn.00469e73
add esp, 4
test edi, edi
je 0x409871
push edi
call fcn.00469e73
add esp, 4
mov eax, esi
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.00469e65
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4097bf
lea eax, [ebp - 0x38]
mov edx, ecx
mov ecx, dword [ebp - 0x50]
push eax
call fcn.00409de0
jmp 0x40980e