Function at 0x1004b98b
Capabilities:
Compare security identifiers
Get common file path

Disassembly:
mov eax, 0x10071fd4
call fcn.100704a8
sub esp, 0x54
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], ecx
inc esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov edi, edx
mov dword [ebp - 0x18], 0xcae7bf19
push 2
call fcn.1001a0d2
mov dword [ebp - 0x18], 0xfe3d2f55
xor ebx, ebx
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0xfffffff7
mov dword [ebp - 0x18], ebx
jmp 0x1004b9e3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax + ecx*4], 0x64939e63
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jl 0x1004b9d3
cmp dword [ebp - 0x14], ebx
jne 0x1004b9f1
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
dec eax
neg eax
sbb eax, eax
inc eax
sub eax, 0x6917900f
je 0x1004ba06
cmp dword [ebp - 0x14], ebx
jne 0x1004ba0d
mov eax, ebx
cmp dword [ebp - 0x14], ebx
je 0x1004ba0f
mov eax, esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0xf6b903cf
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
xor eax, eax
cmp dword [ecx + 4], ebx
setne al
xor edx, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
setne dl
xor ecx, ecx
imul edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
cmp edx, eax
mov eax, dword [ebp - 0x14]
setl cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x2c]
setge dl
neg edx
sub eax, edx
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
call fcn.10059948
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], 5
mov byte [ebp - 0xd], bl
pop ecx
cmp byte [ebp - 0xd], bl
je 0x1004ba9b
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x18], esi
jmp 0x1004bab7
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x1004bab4
push 0x824
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x18
jl 0x1004baa0
push 4
lea ecx, [ebp - 0x38]
call fcn.1001a0d2
mov dword [ebp - 4], ebx
push 4
mov dword [ebp - 0x14], 0xb79f6a71
mov dword [ebp - 0x14], ebx
pop edx
jmp 0x1004bae7
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x60], 0x4ec2e0cf
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edx
jl 0x1004bad9
mov dword [ebp - 0x14], ebx
jmp 0x1004bafe
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edx
jl 0x1004baf1
mov ebx, dword [ebp - 0x38]
mov dword [ebx + 0xc], 3
mov dword [ebp - 0x1c], 0xfffffffb
mov dword [ebp - 0x18], 0
jmp 0x1004bb2b
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x50], 0x3a92bd42
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jl 0x1004bb1d
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x1004bb45
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov eax, dword [ebx + 0xc]
cmp dword [ebp + eax*4 - 0x60], 0xffffffff
je 0x1004bb72
mov eax, dword [ebx + 0xc]
mov ecx, 0x6d0374c7
mov eax, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp + eax*4 - 0x60]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
cmp ecx, edx
je 0x1004bb72
xor eax, eax
jmp 0x1004bb74
mov eax, esi
dec dword [ebx + 0xc]
mov dword [ebp - 0x48], eax
jns 0x1004bb0d
mov dword [ebp - 0x14], 0xfffffffa
xor ebx, ebx
cmp dword [ebp - 0x14], 0xffffffe6
jne 0x1004bbff
mov dword [ebp - 0x1c], 0xffffffff
lea ecx, [ebp - 0x44]
push esi
call fcn.1001a0d2
mov dword [ebp - 0x18], ebx
jmp 0x1004bbb0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
mov dword [eax + ecx*4], 0xf087
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x1004bba0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp eax, edx
mov eax, dword [ebp - 0x1c]
setg cl
xor edx, edx
cmp ecx, 2
setl dl
xor ecx, ecx
add edx, 0x3b16aac8
cmp eax, edx
setge cl
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
push eax
mov dword [eax], ecx
call fcn.10059948
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
dec dword [ebp - 0x14]
pop ecx
jmp 0x1004bb85
push dword [ebp - 0x38]
call fcn.10059948
pop ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp dword [edi], ebx
jne 0x1004bc17
mov eax, dword [edi]
mov eax, dword [edi]
xor ecx, ecx
cmp eax, esi
sete cl
sub ecx, 0x6917900f
je 0x1004bc2c
cmp dword [edi], ebx
jne 0x1004bc32
cmp dword [edi], ebx
jne 0x1004bc32
mov esi, ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ecx]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov eax, dword [edi]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x20]
mov dword [eax], 0xf6b903cf
mov eax, dword [edi]
mov eax, dword [edi]
mov eax, dword [edi]
mov eax, dword [ecx]
xor ecx, ecx
cmp dword [eax + 4], ebx
mov eax, dword [ebp + 8]
setne cl
xor edx, edx
mov dword [eax], ecx
mov eax, dword [esi]
cmp ecx, eax
mov ecx, dword [esi]
mov eax, dword [edi]
setne dl
imul ecx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [edi]
setl dl
xor ebx, ebx
cmp edx, eax
mov eax, dword [edi]
pop edi
setge bl
xor ecx, ecx
neg ebx
cmp eax, ebx
sete cl
mov dword [esi], ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret