Function at 0x402180
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cb2d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4b4200]
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 0x4021d8
cmp word [ebx], si
je 0x4021d8
nop dword [eax]
inc esi
cmp word [ebx + esi*2], 0
jne 0x4021d0
mov ecx, 2
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0046a3df
add esp, 4
mov edx, eax
mov dword [ebp - 0x1c], edx
test esi, esi
jle 0x402215
mov ecx, edx
sub ebx, edx
mov edi, esi
mov ax, word [ecx + ebx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edi, 1
jne 0x402205
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 0x40224d
cmp word [edx], si
je 0x402248
inc esi
cmp word [edx + esi*2], 0
jne 0x402240
mov dword [ebp - 0x18], esi
test esi, esi
setg byte [ebp - 0x14]
test esi, esi
jle 0x40227a
lea eax, [esi*2 - 2]
nop dword [eax]
cmp word [eax + edx], 0x5c
lea ecx, [eax + edx]
jne 0x40227a
dec esi
xor edi, edi
sub eax, 2
mov dword [ebp - 0x18], esi
mov word [ecx], di
test esi, esi
jne 0x402260
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x49eae8
lea ecx, [ebp - 0x1c]
call fcn.00406350
mov edi, dword [ebp - 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x4022a0
lea esi, [eax + 1]
jmp 0x402733
test edi, edi
jne 0x4022bf
push 2
call fcn.0046a3df
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 0x4022c2
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.00407240
push 0
push 1
push 1
push 1
push 0x49eaf0
lea ecx, [ebp - 0x28]
call fcn.00406350
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x402308
push eax
push 1
push 1
push 1
push 0x49ecc8
lea ecx, [ebp - 0x28]
call fcn.00406350
mov dword [ebp - 0x48], eax
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], ecx
test eax, eax
je 0x402428
lea eax, [ebx - 1]
test esi, esi
jne 0x402332
test edi, edi
je 0x40232f
cmp word [edi], cx
je 0x40232f
inc esi
cmp word [edi + esi*2], cx
jne 0x402328
mov dword [ebp - 0x18], esi
cmp esi, eax
setge byte [ebp - 0x14]
jl 0x402346
cmovl eax, esi
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x1c]
call fcn.00406f90
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 0x40265c
cmp dword [ebp - 0x48], 0
jne 0x4023a0
mov byte [ebp - 0x3c], 0
test esi, esi
je 0x4023a4
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 0x4023e8
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
sub esp, 8
push esi
call fcn.00407f00
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 0x4025f8
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402614
push 2
push 1
push 1
push 1
push 0x49ed80
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x14], 1
call fcn.00406350
mov edi, dword [ebp - 0x1c]
test eax, eax
jne 0x402532
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40246b
test edi, edi
je 0x402468
cmp word [edi], ax
je 0x402468
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x402460
mov dword [ebp - 0x18], eax
cmp eax, 2
jl 0x402532
cmp word [edi + 2], 0x3a
jne 0x402532
mov byte [ebp - 0x14], 0
test eax, eax
jne 0x40249b
cmp word [edi], ax
je 0x402498
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x402490
mov dword [ebp - 0x18], eax
xor ecx, ecx
nop dword [eax]
inc ecx
cmp word [ecx*2 + 0x49eafc], 0
jne 0x4024a0
add eax, ecx
mov ecx, 2
mov dword [ebp - 0x3c], eax
inc eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0046a3df
mov ebx, 0x49eafc
mov dword [ebp - 0x4c], eax
add esp, 4
mov edx, edi
mov ecx, eax
mov esi, 0x5c
sub ebx, eax
nop dword [eax]
mov word [ecx], si
add ecx, 2
movzx eax, word [ebx + ecx]
mov esi, eax
test ax, ax
jne 0x4024e0
movzx eax, word [edi]
mov esi, eax
test ax, ax
je 0x402514
nop dword [eax + eax]
movzx eax, ax
lea edx, [edx + 2]
mov word [ecx], ax
add ecx, 2
movzx eax, word [edx]
test ax, ax
jne 0x402500
xor eax, eax
push edi
mov word [ecx], ax
call fcn.00469dd3
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 0x40254d
push 2
call fcn.0046a3df
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 0x402353
test eax, eax
jne 0x402353
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402588
push eax
call fcn.00469dd3
add esp, 4
mov byte [ebp - 0x20], 0
xor esi, esi
nop
inc esi
cmp word [esi*2 + 0x49eaf0], 0
jne 0x402590
mov ecx, 2
mov dword [ebp - 0x24], esi
lea eax, [esi + 1]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0046a3df
add esp, 4
mov ebx, eax
mov dword [ebp - 0x28], ebx
test esi, esi
jle 0x4025e6
mov eax, 0x49eaf0
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 0x4025d3
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 0x402356
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
sub esp, 8
push esi
call fcn.00407f00
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 0x40261e
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.00407f00
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x40]
je 0x40267e
test eax, eax
je 0x40267e
lea eax, [ebp - 0x38]
mov edx, ecx
mov ecx, dword [ebp - 0x50]
push eax
call fcn.00402cf0
mov esi, eax
jmp 0x402709
cmp dword [ebp - 0x48], 0
je 0x40275e
or ecx, 4
mov dword [ebp - 0x44], ecx
test ebx, ebx
jne 0x4026a9
push 2
call fcn.0046a3df
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 0x4026c8
push 2
call fcn.0046a3df
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.004027a0
mov esi, eax
cmp esi, 1
jne 0x402709
cmp dword [ebp - 0x48], 0
jne 0x402709
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 0x402718
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x402726
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x402733
push ebx
call fcn.00469dd3
add esp, 4
test edi, edi
je 0x402740
push edi
call fcn.00469dd3
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.00469dc5
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40268e
lea eax, [ebp - 0x38]
mov edx, ecx
mov ecx, dword [ebp - 0x50]
push eax
call fcn.00402c60
jmp 0x4026dd