Function at 0x409210
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47de4d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4b5200]
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 0x409268
cmp word [ebx], si
je 0x409268
nop dword [eax]
inc esi
cmp word [ebx + esi*2], 0
jne 0x409260
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.0046b90c
add esp, 4
mov edx, eax
mov dword [ebp - 0x1c], edx
test esi, esi
jle 0x4092b0
mov ecx, edx
sub ebx, edx
mov edi, esi
nop word [eax + eax]
mov ax, word [ecx + ebx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edi, 1
jne 0x4092a0
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 0x4092ed
cmp word [edx], si
je 0x4092e8
nop dword [eax + eax]
inc esi
cmp word [edx + esi*2], 0
jne 0x4092e0
mov dword [ebp - 0x18], esi
test esi, esi
setg byte [ebp - 0x14]
test esi, esi
jle 0x40931a
lea eax, [esi*2 - 2]
nop dword [eax]
cmp word [eax + edx], 0x5c
lea ecx, [eax + edx]
jne 0x40931a
dec esi
xor edi, edi
sub eax, 2
mov dword [ebp - 0x18], esi
mov word [ecx], di
test esi, esi
jne 0x409300
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x49faa8
lea ecx, [ebp - 0x1c]
call fcn.00402380
mov edi, dword [ebp - 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x409340
lea esi, [eax + 1]
jmp 0x4097d4
test edi, edi
jne 0x40935f
push 2
call fcn.0046b90c
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 0x409362
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.004031c0
push 0
push 1
push 1
push 1
push 0x49fafc
lea ecx, [ebp - 0x28]
call fcn.00402380
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4093a8
push eax
push 1
push 1
push 1
push 0x49fb00
lea ecx, [ebp - 0x28]
call fcn.00402380
mov dword [ebp - 0x48], eax
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], ecx
test eax, eax
je 0x4094c8
lea eax, [ebx - 1]
test esi, esi
jne 0x4093d2
test edi, edi
je 0x4093cf
cmp word [edi], cx
je 0x4093cf
inc esi
cmp word [edi + esi*2], cx
jne 0x4093c8
mov dword [ebp - 0x18], esi
cmp esi, eax
setge byte [ebp - 0x14]
jl 0x4093e6
cmovl eax, esi
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x1c]
call fcn.00402fd0
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 0x4096fd
cmp dword [ebp - 0x48], 0
jne 0x409440
mov byte [ebp - 0x3c], 0
test esi, esi
je 0x409444
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 0x409488
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
sub esp, 8
push esi
call fcn.00403e90
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 0x409699
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4096b5
push 2
push 1
push 1
push 1
push 0x49fab4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x14], 1
call fcn.00402380
mov edi, dword [ebp - 0x1c]
test eax, eax
jne 0x4095cf
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40950b
test edi, edi
je 0x409508
cmp word [edi], ax
je 0x409508
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x409500
mov dword [ebp - 0x18], eax
cmp eax, 2
jl 0x4095cf
cmp word [edi + 2], 0x3a
jne 0x4095cf
mov byte [ebp - 0x14], 0
test eax, eax
jne 0x40953b
cmp word [edi], ax
je 0x409538
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x409530
mov dword [ebp - 0x18], eax
xor ecx, ecx
nop dword [eax]
inc ecx
cmp word [ecx*2 + 0x49fabc], 0
jne 0x409540
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.0046b90c
mov ebx, 0x49fabc
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 [ebx + ecx]
mov esi, eax
test ax, ax
jne 0x409580
movzx eax, word [edi]
mov esi, eax
test ax, ax
je 0x4095b1
nop dword [eax + eax]
mov word [ecx], ax
lea edx, [edx + 2]
movzx eax, word [edx]
add ecx, 2
test ax, ax
jne 0x4095a0
xor eax, eax
push edi
mov word [ecx], ax
call fcn.0046b303
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 0x4095ea
push 2
call fcn.0046b90c
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 0x4093f3
test eax, eax
jne 0x4093f3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x409625
push eax
call fcn.0046b303
add esp, 4
mov byte [ebp - 0x20], 0
xor esi, esi
nop dword [eax + eax]
inc esi
cmp word [esi*2 + 0x49fafc], 0
jne 0x409630
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.0046b90c
add esp, 4
mov ebx, eax
mov dword [ebp - 0x28], ebx
test esi, esi
jle 0x409687
mov eax, 0x49fafc
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 0x409674
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 0x4093f6
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
sub esp, 8
push esi
call fcn.00403e90
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 0x4096bf
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.00403e90
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x40]
je 0x40971f
test eax, eax
je 0x40971f
lea eax, [ebp - 0x38]
mov edx, ecx
mov ecx, dword [ebp - 0x50]
push eax
call fcn.00409d90
mov esi, eax
jmp 0x4097aa
cmp dword [ebp - 0x48], 0
je 0x4097ff
or ecx, 4
mov dword [ebp - 0x44], ecx
test ebx, ebx
jne 0x40974a
push 2
call fcn.0046b90c
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 0x409769
push 2
call fcn.0046b90c
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.00409840
mov esi, eax
cmp esi, 1
jne 0x4097aa
cmp dword [ebp - 0x48], 0
jne 0x4097aa
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 0x4097b9
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4097c7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x4097d4
push ebx
call fcn.0046b303
add esp, 4
test edi, edi
je 0x4097e1
push edi
call fcn.0046b303
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.0046b2f5
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40972f
lea eax, [ebp - 0x38]
mov edx, ecx
mov ecx, dword [ebp - 0x50]
push eax
call fcn.00409d00
jmp 0x40977e